one shot fix: src_barrier conv before/deconv after ResolveImage #193

Closed
xbzk wants to merge 1 commit from fix/UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout into master
Member

Satisfies vulkan requirement upon using vkCmdResolveImage. Optimizes image transfer and fixes the rain of UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout in a non intrusive way: Barrier is converted prior to ResolveImage, than is converted back to it's original form. Maybe this is not needed but has no perormance impact either.

Games with immediate impact:

Ninja Gaiden ragebound.

How to test:

In another build, enable gpu debugging, run the game and catch logs containing UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout. There will be exhaustive errors like that, heavily impacting game/log performance.
In this build the error rain is gone.
Since it is a vulkan recommendation, and the barrier is comverted back right after, it should only promove optimization with no drawbacks for other games.

Satisfies vulkan requirement upon using vkCmdResolveImage. Optimizes image transfer and fixes the rain of UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout in a non intrusive way: Barrier is converted prior to ResolveImage, than is converted back to it's original form. Maybe this is not needed but has no perormance impact either. Games with immediate impact: Ninja Gaiden ragebound. How to test: In another build, enable gpu debugging, run the game and catch logs containing UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout. There will be exhaustive errors like that, heavily impacting game/log performance. In this build the error rain is gone. Since it is a vulkan recommendation, and the barrier is comverted back right after, it should only promove optimization with no drawbacks for other games.
Owner

may conflict with #180

may conflict with #180
crueter force-pushed fix/UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout from 32d364656d
All checks were successful
eden-license / license-header (pull_request) Successful in 15s
to 42d584e44f
All checks were successful
eden-license / license-header (pull_request) Successful in 38s
2025-08-05 00:03:14 +02:00
Compare
Author
Member

in fact, the solution is there in #180. PR closed!

in fact, the solution is there in #180. PR closed!
xbzk closed this pull request 2025-08-25 21:50:15 +02:00
All checks were successful
eden-license / license-header (pull_request) Successful in 38s
Required
Details

Pull request closed

Sign in to join this conversation.
No description provided.