Commit a3708cf 1 parent 4096ba9 commit a3708cf Copy full SHA for a3708cf
File tree 1 file changed +8
-2
lines changed
renderdoc/driver/shaders/dxil
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3287,14 +3287,20 @@ void Program::MakeRDDisassemblyString(const DXBC::Reflection *reflection)
3287
3287
func.blocks [curBlock]->id );
3288
3288
DisassemblyAddNewLine (1 );
3289
3289
3290
+ uint32_t lastNonNopDisassemblyLine = 0 ;
3291
+
3290
3292
for (size_t funcIdx = 0 ; funcIdx < func.instructions .size (); funcIdx++)
3291
3293
{
3292
3294
Instruction &inst = *func.instructions [funcIdx];
3293
3295
3294
- inst.disassemblyLine = m_DisassemblyInstructionLine;
3295
-
3296
3296
if (IsDXCNop (inst))
3297
+ {
3298
+ inst.disassemblyLine = lastNonNopDisassemblyLine;
3297
3299
continue ;
3300
+ }
3301
+
3302
+ inst.disassemblyLine = m_DisassemblyInstructionLine;
3303
+ lastNonNopDisassemblyLine = inst.disassemblyLine ;
3298
3304
3299
3305
rdcstr resultTypeStr;
3300
3306
if (!inst.type ->isVoid ())
You can’t perform that action at this time.
0 commit comments