mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 09:30:36 +02:00
broadcom/vc5: Add validation that we don't violate GFXH-1633 requirements.
We don't use ldunifa yet, but we will eventually for UBOs.
This commit is contained in:
parent
089c32eefd
commit
77b4f30bae
1 changed files with 13 additions and 0 deletions
|
|
@ -124,6 +124,19 @@ qpu_validate_inst(struct v3d_qpu_validate_state *state, struct qinst *qinst)
|
|||
fail_instr(state, "LDUNIF after a LDVARY");
|
||||
}
|
||||
|
||||
/* GFXH-1633 */
|
||||
bool last_reads_ldunif = (state->last && (state->last->sig.ldunif ||
|
||||
state->last->sig.ldunifrf));
|
||||
bool last_reads_ldunifa = (state->last && (state->last->sig.ldunifa ||
|
||||
state->last->sig.ldunifarf));
|
||||
bool reads_ldunif = inst->sig.ldunif || inst->sig.ldunifrf;
|
||||
bool reads_ldunifa = inst->sig.ldunifa || inst->sig.ldunifarf;
|
||||
if ((last_reads_ldunif && reads_ldunifa) ||
|
||||
(last_reads_ldunifa && reads_ldunif)) {
|
||||
fail_instr(state,
|
||||
"LDUNIF and LDUNIFA can't be next to each other");
|
||||
}
|
||||
|
||||
int tmu_writes = 0;
|
||||
int sfu_writes = 0;
|
||||
int vpm_writes = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue