mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
vc4: Don't make a temporary for setting flags.
The register allocator doesn't really do anything about the temp, so it doesn't seem like it should matter. However, the scheduler would think that a new def is being created. This doesn't change anything yet, but it avoids a bunch of regressions in the next commit.
This commit is contained in:
parent
b4f45f319c
commit
7c9fc43915
1 changed files with 2 additions and 1 deletions
|
|
@ -495,7 +495,8 @@ qir_SF(struct vc4_compile *c, struct qreg src)
|
|||
!c->defs[src.index] ||
|
||||
last_inst != c->defs[src.index] ||
|
||||
qir_is_multi_instruction(last_inst)) {
|
||||
src = qir_MOV(c, src);
|
||||
struct qreg null = { QFILE_NULL, 0 };
|
||||
last_inst = qir_MOV_dest(c, null, src);
|
||||
last_inst = (struct qinst *)c->instructions.prev;
|
||||
}
|
||||
last_inst->sf = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue