nir/opt_varyings: fix max_slot for color varying compaction

It should be in units of slots. This was unlikely to break anything.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32424>
This commit is contained in:
Marek Olšák
2024-12-01 13:30:20 -05:00
committed by Marge Bot
parent 69b1853ecf
commit d20e07dbad
+1 -1
View File
@@ -4198,7 +4198,7 @@ fs_assign_slots(struct linkage_info *linkage,
if (assign_colors) {
slot_index = VARYING_SLOT_COL0 * 8; /* starting slot */
max_slot = VARYING_SLOT_COL1 * 8 + 8;
max_slot = VARYING_SLOT_COL1 + 1;
} else {
slot_index = VARYING_SLOT_VAR0 * 8; /* starting slot */
max_slot = VARYING_SLOT_MAX;