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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user