intel/brw: Avoid getting a stride of 0 for nir_intrinsic_exclusive_scan

Ref: 671745b616 ("intel/fs: Don't allow 0 stride on MOV destination")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28821>
This commit is contained in:
Jordan Justen 2024-04-12 16:52:12 -07:00 committed by Marge Bot
parent 90e12ed843
commit 4e5ed7ebd5
1 changed files with 1 additions and 1 deletions

View File

@ -7486,7 +7486,7 @@ fs_nir_emit_intrinsic(nir_to_brw_state &ntb,
allbld.ADD(idx, ntb.system_values[SYSTEM_VALUE_SUBGROUP_INVOCATION],
brw_imm_w(-1));
allbld.emit(SHADER_OPCODE_SHUFFLE, shifted, scan, idx);
allbld.group(1, 0).MOV(component(shifted, 0), identity);
allbld.group(1, 0).MOV(horiz_offset(shifted, 0), identity);
scan = shifted;
}