Skip to content

Commit

Permalink
[dxso] Correct texture gradient arguments (float -> float2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Ashton committed May 4, 2019
1 parent ab57adc commit a63208b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dxso/dxso_compiler.cpp
Expand Up @@ -2165,7 +2165,7 @@ void DxsoCompiler::emitControlFlowGenericLoop(
}

if (opcode == DxsoOpcode::TexLdd) {
DxsoRegMask gradMask(true, false, false, false);
DxsoRegMask gradMask(true, true, false, false);
imageOperands.flags |= spv::ImageOperandsGradMask;
imageOperands.sGradX = emitRegisterLoad(ctx.src[2], gradMask).id;
imageOperands.sGradY = emitRegisterLoad(ctx.src[3], gradMask).id;
Expand Down

0 comments on commit a63208b

Please sign in to comment.