1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-02 02:52:11 +01:00

[dxvk] Fix nonsensical layout check in ensureImageCompatibility

Derp, this fixes some unnecessary barriers.
This commit is contained in:
Philip Rebohle 2024-10-28 13:30:52 +01:00
parent 0fd00087e9
commit 9aed82c00a

View File

@ -1492,7 +1492,7 @@ namespace dxvk {
// Check if we need to insert a barrier and update image properties
bool isAccessAndLayoutCompatible = (image->info().stages & usageInfo.stages) == usageInfo.stages
&& (image->info().access & usageInfo.access) == usageInfo.access
&& (usageInfo.layout && image->info().layout == usageInfo.layout);
&& (!usageInfo.layout || image->info().layout == usageInfo.layout);
// If everything matches already, no need to do anything. Only ensure
// that the stable adress bit is respected if set for the first time.