mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-04 03:50:31 +01:00
i965/fs: fix copy propagation from load payload
We were not considering the case where the load payload is writing to a destination with a reg_offset > 0. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
cf375a3333
commit
789eecdb79
1 changed files with 1 additions and 1 deletions
|
|
@ -784,7 +784,7 @@ fs_visitor::opt_copy_propagate_local(void *copy_prop_ctx, bblock_t *block,
|
|||
if (inst->src[i].file == VGRF) {
|
||||
acp_entry *entry = ralloc(copy_prop_ctx, acp_entry);
|
||||
entry->dst = inst->dst;
|
||||
entry->dst.reg_offset = offset;
|
||||
entry->dst.reg_offset += offset;
|
||||
entry->src = inst->src[i];
|
||||
entry->regs_written = regs_written;
|
||||
entry->regs_read = inst->regs_read(i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue