Skip to content

Commit e7f0b0e

Browse files
committed
DXBC Debugger fix for CalculateLevelOfDetailUnclamped
The LOD result has already been swizzed into result.x
1 parent 3767d5d commit e7f0b0e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

renderdoc/driver/shaders/dxbc/dxbc_debug.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4181,7 +4181,8 @@ void ThreadState::StepNext(ShaderDebugState *state, DebugAPIWrapper *apiWrapper,
41814181
op.str.c_str(), lookupResult))
41824182
{
41834183
// should be a better way of doing this
4184-
if(destOperand.comps[1] == 0xff)
4184+
// LOD result is already in result.x
4185+
if((destOperand.comps[1] == 0xff) && (op.operation != OPCODE_LOD))
41854186
lookupResult.value.s32v[0] = lookupResult.value.s32v[destOperand.comps[0]];
41864187

41874188
SetDst(state, destOperand, op, lookupResult);

0 commit comments

Comments
 (0)