anv/gfx12.5: Request subgroup size 8 for RT trampoline shader.

The 16-wide variant of the trampoline shader doesn't appear to work
and would be inadvertently enabled by this series on Gfx12.5.  Set the
required subgroup size to avoid changing current behavior.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32664>
This commit is contained in:
Francisco Jerez 2024-10-29 14:00:49 -07:00 committed by Marge Bot
parent 8102500b95
commit a736757275

View file

@ -3791,6 +3791,11 @@ anv_device_init_rt_shaders(struct anv_device *device)
nir_shader *trampoline_nir =
brw_nir_create_raygen_trampoline(device->physical->compiler, tmp_ctx);
if (device->info->ver >= 20)
trampoline_nir->info.subgroup_size = SUBGROUP_SIZE_REQUIRE_16;
else
trampoline_nir->info.subgroup_size = SUBGROUP_SIZE_REQUIRE_8;
struct brw_cs_prog_data trampoline_prog_data = {
.uses_btd_stack_ids = true,
};