mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
v3d: writes to magic registers aren't RF writes after THREND
Shaders must not attempt to write to the register files in the last three instructions, but that doesn't include the magic registers: nop ; nop ; thrsw; ldtmu.- *** ERROR *** nop ; nop nop ; nop v2: Simplify validation rules. (Eric Anholt) v3: Adjust validation even more. (Eric Anholt) Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
1dce75c183
commit
a5df0fa0b1
1 changed files with 3 additions and 1 deletions
|
|
@ -258,8 +258,10 @@ qpu_validate_inst(struct v3d_qpu_validate_state *state, struct qinst *qinst)
|
|||
fail_instr(state, "RF write after THREND");
|
||||
}
|
||||
|
||||
if (v3d_qpu_sig_writes_address(devinfo, &inst->sig))
|
||||
if (v3d_qpu_sig_writes_address(devinfo, &inst->sig) &&
|
||||
!inst->sig_magic) {
|
||||
fail_instr(state, "RF write after THREND");
|
||||
}
|
||||
|
||||
/* GFXH-1625: No TMUWT in the last instruction */
|
||||
if (state->last_thrsw_ip - state->ip == 2 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue