mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 07:58:16 +02:00
nv50: don't eliminate loads to dedicated values
This commit is contained in:
parent
fa67cabe7a
commit
2c695d38e6
1 changed files with 4 additions and 6 deletions
|
|
@ -639,12 +639,10 @@ nv_pass_reload_elim(struct nv_pass_reld_elim *ctx, struct nv_basic_block *b)
|
|||
break;
|
||||
|
||||
if (it) {
|
||||
#if 1
|
||||
nvcg_replace_value(ctx->pc, ld->def[0], it->value);
|
||||
#else
|
||||
ld->opcode = NV_OP_MOV;
|
||||
nv_reference(ctx->pc, &ld->src[0], it->value);
|
||||
#endif
|
||||
if (ld->def[0]->reg.id >= 0)
|
||||
it->value = ld->def[0];
|
||||
else
|
||||
nvcg_replace_value(ctx->pc, ld->def[0], it->value);
|
||||
} else {
|
||||
if (ctx->alloc == LOAD_RECORD_POOL_SIZE)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue