diff options
author | Christoph Bumiller <e0425955@student.tuwien.ac.at> | 2010-07-24 21:17:21 +0200 |
---|---|---|
committer | Christoph Bumiller <e0425955@student.tuwien.ac.at> | 2010-07-24 21:20:40 +0200 |
commit | 1d1bb206122b719d6959eceddd511a0294816a9a (patch) | |
tree | 5bbe273bdaabcc577676dd4c4d657f724bd94858 /src/gallium/drivers/nv50/nv50_pc_emit.c | |
parent | d7aac107e64e1c4c1af30806817a2888e7a4a96c (diff) |
nv50: don't produce MOV immediate to output reg in store opt
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_pc_emit.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_pc_emit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/nv50/nv50_pc_emit.c b/src/gallium/drivers/nv50/nv50_pc_emit.c index b917d23232..51304670a1 100644 --- a/src/gallium/drivers/nv50/nv50_pc_emit.c +++ b/src/gallium/drivers/nv50/nv50_pc_emit.c @@ -539,26 +539,26 @@ emit_mov(struct nv_pc *pc, struct nv_instruction *i) pc->emit[1] |= DREG(i->def[0])->id << 4; } else if (SFILE(i, 0) == NV_FILE_IMM) { - if (i->opcode == NV_OP_LDA) + if (i->opcode == NV_OP_LDA) { emit_ld(pc, i); - else { + } else { pc->emit[0] = 0x10008001; pc->emit[1] = 0x00000003; - emit_form_IMM(pc, i, 0); + emit_form_IMM(pc, i, 0); } } else { pc->emit[0] = 0x10000000; pc->emit[0] |= DREG(i->def[0])->id << 2; pc->emit[0] |= SREG(i->src[0])->id << 9; - if (!i->is_long) + if (!i->is_long) { pc->emit[0] |= 0x8000; - else { + } else { pc->emit[0] |= 0x00000001; pc->emit[1] = 0x0403c000; - set_pred(pc, i); + set_pred(pc, i); } } |