brw: fix uniform rebuild of sources
If you have something like this :
con 32 %66 = @load_reg (%62) (base=0, legacy_fabs=0, legacy_fneg=0)
con 32 %27 = @resource_intel (%22 (0xdeaddead), %66, %67, %17 (0x0)) (desc_set=2, binding=96, resource_intel=0, resource_block_intel=-1)
Just copying the brw_reg in ssa_values[] is not enough for the
load_reg intrinsic. We need to call get_nir_src() to force some logic
to create the register correct.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: b8209d69ff
("intel/fs: Add support for new-style registers")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30050>
This commit is contained in:

committed by
Marge Bot

parent
b0d22461b9
commit
67b778445a
@@ -6032,7 +6032,7 @@ fs_nir_emit_intrinsic(nir_to_brw_state &ntb,
|
||||
try_rebuild_source(ntb, bld, instr->src[1].ssa);
|
||||
}
|
||||
ntb.ssa_values[instr->def.index] =
|
||||
ntb.ssa_values[instr->src[1].ssa->index];
|
||||
get_nir_src(ntb, instr->src[1]);
|
||||
break;
|
||||
|
||||
case nir_intrinsic_load_reg:
|
||||
|
Reference in New Issue
Block a user