intel/compiler: infer the number of operands using lsc_op_num_data_values
authorRohan Garg <rohan.garg@intel.com>
Thu, 30 Nov 2023 19:30:39 +0000 (20:30 +0100)
committerEric Engestrom <eric@engestrom.ch>
Fri, 8 Dec 2023 11:24:46 +0000 (11:24 +0000)
commit3913722a7faaed74d579199e4b86d2f14013572f
treed0cbf4f821a21daa5811edf7798be24bffed9549
parent4b4f608e105c34fec91e7e2b6fbe4f162435fb5e
intel/compiler: infer the number of operands using lsc_op_num_data_values

nir_emit_global_atomic should utilize lsc_op_num_data_values to
infer the number of operands for global atomic ops, following the same
pattern as nir_emit_surface_atomic

Fixes: 90a2137 ('intel/compiler: Use LSC opcode enum rather than legacy BRW_AOPs')
Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26432>
(cherry picked from commit db6aaa691d05ef017b803d11cce4e341d1a98882)
.pick_status.json
src/intel/compiler/brw_fs_nir.cpp