mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
nvc0: remove bad assert and emit TEMP movs instead
This commit is contained in:
parent
f9bb1c8b33
commit
95eef7a705
1 changed files with 1 additions and 2 deletions
|
|
@ -878,11 +878,10 @@ emit_store(struct bld_context *bld, const struct tgsi_full_instruction *inst,
|
|||
break;
|
||||
case TGSI_FILE_TEMPORARY:
|
||||
assert(idx < BLD_MAX_TEMPS);
|
||||
if (!res->insn)
|
||||
if (!res->insn || res->insn->bb != bld->pc->current_block)
|
||||
res = bld_insn_1(bld, NV_OP_MOV, res);
|
||||
|
||||
assert(res->reg.file == NV_FILE_GPR);
|
||||
assert(res->insn->bb = bld->pc->current_block);
|
||||
|
||||
if (bld->ti->require_stores)
|
||||
bld_lmem_store(bld, ptr, idx * 4 + chan, res);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue