brw: lower ifind_msb for Jay

I'm not sure brw wants the common lowering but Jay definitely does.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40835>
This commit is contained in:
Alyssa Rosenzweig 2026-04-07 14:26:30 -04:00 committed by Marge Bot
parent 3afd572d8f
commit 5c4cae2661

View file

@ -195,6 +195,7 @@ brw_compiler_create(void *mem_ctx, const struct intel_device_info *devinfo)
nir_divergence_single_prim_per_subgroup;
for (int i = 0; i < MESA_ALL_SHADER_STAGES; i++) {
bool jay = intel_use_jay(compiler->devinfo, i);
struct nir_shader_compiler_options *stage_options =
&compiler->nir_options[i];
*stage_options = compiler->nir_options[0];
@ -202,6 +203,8 @@ brw_compiler_create(void *mem_ctx, const struct intel_device_info *devinfo)
stage_options->unify_interfaces = i < MESA_SHADER_FRAGMENT;
stage_options->force_indirect_unrolling |= brw_nir_no_indirect_mask(i);
stage_options->has_find_msb_rev = jay;
stage_options->lower_ifind_msb = jay;
}
/* Build a list of storage format compatible in component bit size &