anv: Use device->info.has_mesh_shading in key->mesh_input check

This is clearer than devinfo->verx10 >= 125.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41535>
This commit is contained in:
Kenneth Graunke 2026-04-12 00:51:35 -07:00 committed by Marge Bot
parent fe99b5a7d1
commit cee8d758ba

View file

@ -566,7 +566,7 @@ populate_fs_prog_key(struct brw_fs_prog_key *key,
key->mesh_input =
(link_stages & VK_SHADER_STAGE_VERTEX_BIT) ? INTEL_NEVER :
(link_stages & VK_SHADER_STAGE_MESH_BIT_EXT) ? INTEL_ALWAYS :
pdevice->info.verx10 >= 125 ? INTEL_SOMETIMES : INTEL_NEVER;
pdevice->info.has_mesh_shading ? INTEL_SOMETIMES : INTEL_NEVER;
if (state && state->ms) {
key->min_sample_shading = state->ms->min_sample_shading;