diff --git a/.pick_status.json b/.pick_status.json index 5a3d3d344ec..023ca79498b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -265,7 +265,7 @@ "description": "intel/fs: Fix src and dst types of LOAD_PAYLOAD ACP entries during copy propagation.", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "41868bb6824c6106a55c8442006c1e2215abf567" }, diff --git a/src/intel/compiler/brw_fs_copy_propagation.cpp b/src/intel/compiler/brw_fs_copy_propagation.cpp index 9819b5dcbca..457d80f6972 100644 --- a/src/intel/compiler/brw_fs_copy_propagation.cpp +++ b/src/intel/compiler/brw_fs_copy_propagation.cpp @@ -1085,9 +1085,11 @@ fs_visitor::opt_copy_propagation_local(void *copy_prop_ctx, bblock_t *block, if (inst->src[i].file == VGRF || (inst->src[i].file == FIXED_GRF && inst->src[i].is_contiguous())) { + const brw_reg_type t = i < inst->header_size ? + BRW_REGISTER_TYPE_UD : inst->src[i].type; acp_entry *entry = rzalloc(copy_prop_ctx, acp_entry); - entry->dst = byte_offset(inst->dst, offset); - entry->src = inst->src[i]; + entry->dst = byte_offset(retype(inst->dst, t), offset); + entry->src = retype(inst->src[i], t); entry->size_written = size_written; entry->size_read = inst->size_read(i); entry->opcode = inst->opcode;