[GPU] Reuse base+index*stride in vfetch_mini instead of reloading the index GPR
The wheel shader in 4D530910 does vfetch_full to r0 with the index from r0.x, and then vfetch_mini. Thanks @Gliniak for the finding :3 Also small formatting cleanup in commented-out code.
This commit is contained in:
@@ -328,13 +328,12 @@ void ParsedVertexFetchInstruction::Disassemble(StringBuffer* out) const {
|
||||
if (!is_mini_fetch) {
|
||||
out->Append(", ");
|
||||
DisassembleSourceOperand(operands[0], out);
|
||||
out->Append(", ");
|
||||
out->AppendFormat("vf{}", 95 - operands[1].storage_index);
|
||||
out->AppendFormat(", vf{}", 95 - operands[1].storage_index);
|
||||
if (attributes.is_index_rounded) {
|
||||
out->Append(", RoundIndex=true");
|
||||
}
|
||||
}
|
||||
|
||||
if (attributes.is_index_rounded) {
|
||||
out->Append(", RoundIndex=true");
|
||||
}
|
||||
if (attributes.exp_adjust) {
|
||||
out->AppendFormat(", ExpAdjust={}", attributes.exp_adjust);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user