mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-21 04:54:15 +01:00
[spirv] Emit the grad and const offset image ops in the correct order
Currently the grad and const offset image operand ids are emitted in the incorrect order. This causes incorrect code gen if both the grad and const offset image operands are used. This fixes the compilation error found when running TopSpin 2k25 through DXVK using the NVIDIA proprietary Vulkan driver.
This commit is contained in:
parent
8b9b46dfff
commit
33498eb512
@ -3892,15 +3892,15 @@ namespace dxvk {
|
||||
|
||||
if (op.flags & spv::ImageOperandsLodMask)
|
||||
m_code.putWord(op.sLod);
|
||||
|
||||
if (op.flags & spv::ImageOperandsConstOffsetMask)
|
||||
m_code.putWord(op.sConstOffset);
|
||||
|
||||
|
||||
if (op.flags & spv::ImageOperandsGradMask) {
|
||||
m_code.putWord(op.sGradX);
|
||||
m_code.putWord(op.sGradY);
|
||||
}
|
||||
|
||||
|
||||
if (op.flags & spv::ImageOperandsConstOffsetMask)
|
||||
m_code.putWord(op.sConstOffset);
|
||||
|
||||
if (op.flags & spv::ImageOperandsOffsetMask)
|
||||
m_code.putWord(op.gOffset);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user