jay: Disable SIMD32 if ray queries are used

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42006>
This commit is contained in:
Calder Young 2026-06-02 17:23:24 -07:00 committed by Marge Bot
parent 773a0e71ce
commit 576fc784c9

View file

@ -354,6 +354,10 @@ jay_process_nir(const struct intel_device_info *devinfo,
if (stage == MESA_SHADER_FRAGMENT && nir->info.fs.color_is_dual_source)
do_simd32 = false;
/* SIMD splitting of ray queries is inefficient, avoid it when possible */
if (prog_data->base.ray_queries && nir->info.min_subgroup_size < 32)
do_simd32 = false;
unsigned simd_width = do_simd32 ? (nir->info.api_subgroup_size ?: 32) : 16;
brw_pass_tracker pt_ = {