summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
index 021ee1f22b7..c2c33e20bf1 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
@@ -1275,6 +1275,7 @@ MemoryOpt::combineLd(Record *rec, Instruction *ld)
}
rec->size = size;
+ rec->insn->getSrc(0)->reg.size = size;
rec->insn->setType(typeOfSize(size));
delete_Instruction(prog, ld);
@@ -1333,6 +1334,7 @@ MemoryOpt::combineSt(Record *rec, Instruction *st)
delete_Instruction(prog, rec->insn);
rec->insn = st;
rec->size = size;
+ rec->insn->getSrc(0)->reg.size = size;
rec->insn->setType(typeOfSize(size));
return true;
}