mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
brw: Fix checking sources of wrong instruction in opt_address_reg_load
Fixes: 8ac7802ac8 ("brw: move final send lowering up into the IR")
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37019>
This commit is contained in:
parent
93996c07e2
commit
1c933b6511
1 changed files with 2 additions and 1 deletions
|
|
@ -40,7 +40,8 @@ opt_address_reg_load_local(brw_shader &s, bblock_t *block, const brw_def_analysi
|
|||
brw_builder ubld = brw_builder(&s).before(inst).uniform();
|
||||
brw_reg sources[3];
|
||||
for (unsigned i = 0; i < src_inst->sources; i++) {
|
||||
sources[i] = inst->src[i].file == VGRF ? component(src_inst->src[i], 0) : src_inst->src[i];
|
||||
const brw_reg src = src_inst->src[i];
|
||||
sources[i] = src.file == VGRF ? component(src, 0) : src;
|
||||
}
|
||||
ubld.emit(src_inst->opcode, inst->dst, sources, src_inst->sources);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue