mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-17 17:52:11 +01:00
[dxso] Fix gradient instructions for cube maps
We need 3 components in that case. Based on MSDN documentation, texldd does not support 3D textures so there's no need to worry about those. Fixes validation errors in Payday.
This commit is contained in:
parent
d48b33bf95
commit
50c6974f3a
@ -2732,7 +2732,7 @@ void DxsoCompiler::emitControlFlowGenericLoop(
|
||||
}
|
||||
|
||||
if (opcode == DxsoOpcode::TexLdd) {
|
||||
DxsoRegMask gradMask(true, true, false, false);
|
||||
DxsoRegMask gradMask(true, true, sampler.dimensions == 3, false);
|
||||
imageOperands.flags |= spv::ImageOperandsGradMask;
|
||||
imageOperands.sGradX = emitRegisterLoad(ctx.src[2], gradMask).id;
|
||||
imageOperands.sGradY = emitRegisterLoad(ctx.src[3], gradMask).id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user