mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 12:10:22 +01:00
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:
parent
e5b1c568b9
commit
affaf36685
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue