brw: Flip the TESS_LEVEL_INNER/OUTER vue map slot assignments

Our current legacy patch header layout handling doesn't actually care
which is which slot, and remaps everything to its correct spot anyway.

For using the newer "reversed" patch header layouts, it will be more
convenient to have outer as slot 0, and inner as slot 1, as that just
works with no special remapping needed for both quads and triangles
(but unfortunately isolines are still a pain).

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38482>
This commit is contained in:
Kenneth Graunke 2025-10-22 14:15:45 -07:00 committed by Marge Bot
parent e5c1d00faf
commit 1995c879a9

View file

@ -348,8 +348,8 @@ brw_compute_tess_vue_map(struct intel_vue_map *vue_map,
* described here, but pretending they're separate allows us to uniquely
* identify them by distinct slot locations.
*/
assign_vue_slot(vue_map, VARYING_SLOT_TESS_LEVEL_INNER, slot++);
assign_vue_slot(vue_map, VARYING_SLOT_TESS_LEVEL_OUTER, slot++);
assign_vue_slot(vue_map, VARYING_SLOT_TESS_LEVEL_INNER, slot++);
/* first assign per-patch varyings */
const int first_patch_slot = slot;