mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
radeonsi/nir: Check for VARYING_SLOT_PRIMITIVE_ID not SYSTEM_VALUE
This function is called on load/store_input/output. It makes no sense
for it to get a SYSTEM_VALUE enum. This only doesn't explode because
SYSTEM_VALUE_PRIMITIVE_ID happens to be below VARYING_SLOT_VAR0 so it
doesn't interact with any actual varyings. The next commit is going to
add another system value which will push SYSTEM_VALUE_PRIMITIVE_ID up by
one so it will equal VARYING_SLOT_VAR0 and then the first FS input will
always get smashed to flat which isn't what we want.
Fixes: b59bb9c07a ("radeonsi: force flat for PrimID early in si_nir_scan_shader")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14198>
This commit is contained in:
parent
41cc6a4c7f
commit
732b234ddb
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ static void scan_io_usage(struct si_shader_info *info, nir_intrinsic_instr *intr
|
|||
|
||||
info->input[loc].semantic = semantic + i;
|
||||
|
||||
if (semantic == SYSTEM_VALUE_PRIMITIVE_ID)
|
||||
if (semantic == VARYING_SLOT_PRIMITIVE_ID)
|
||||
info->input[loc].interpolate = INTERP_MODE_FLAT;
|
||||
else
|
||||
info->input[loc].interpolate = interp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue