radeonsi: assert that invalid FS inputs aren't present

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802>
This commit is contained in:
Marek Olšák 2025-11-22 13:22:21 -05:00 committed by Marge Bot
parent e5b1c568b9
commit affaf36685

View file

@ -102,6 +102,10 @@ static void scan_io_usage(const nir_shader *nir, struct si_shader_info *info,
semantic = nir_intrinsic_io_semantics(intr).location;
if (nir->info.stage == MESA_SHADER_FRAGMENT && is_input) {
assert(semantic != VARYING_SLOT_POS);
assert(semantic != VARYING_SLOT_FACE);
assert(semantic != VARYING_SLOT_LAYER);
/* Gather color PS inputs. We can only get here after lowering colors in monolithic
* shaders. This must match what we do for nir_intrinsic_load_color0/1.
*/