Skip to content

r300: set PVS_LAST_VTX_SRC_INST properly to last input read

Pavel Ondračka requested to merge ondracka/mesa:r300_PVS_LAST_VTX_SRC_INST into main

From docs:

The PVS Instruction which uses the Input Vertex Memory for the last
time. This value is used to free up the Input Vertex Slots ASAP.
This field must be set to a valid instruction.

Right now it is set to the last instruction, so set it properly to last input read instead. When the last read is inside a loop, set it on the outhermost ENDLOOP. This could in theory help performance, but none of my usual benchmarks including GLmark, Unigine Sanctuary or Lightsmark show any measurable performance difference.

Therefore the draft status is there as I'm not sure if it makes sense to commit anyway and hope that there is some app where this helps...

Suggested in: #6045 (closed)

Edited by Pavel Ondračka

Merge request reports