zink: always use shader sizes for clip/cull dist variables
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28466>
This commit is contained in:
committed by
Marge Bot
parent
316470920a
commit
404e9f1134
@@ -5217,11 +5217,13 @@ rework_io_vars(nir_shader *nir, nir_variable_mode mode)
|
||||
break;
|
||||
case VARYING_SLOT_CLIP_DIST0:
|
||||
case VARYING_SLOT_CLIP_DIST1:
|
||||
max_components = s.num_slots;
|
||||
max_components = nir->info.clip_distance_array_size;
|
||||
assert(max_components);
|
||||
break;
|
||||
case VARYING_SLOT_CULL_DIST0:
|
||||
case VARYING_SLOT_CULL_DIST1:
|
||||
max_components = s.num_slots;
|
||||
max_components = nir->info.cull_distance_array_size;
|
||||
assert(max_components);
|
||||
break;
|
||||
case VARYING_SLOT_TESS_LEVEL_OUTER:
|
||||
max_components = 4;
|
||||
|
||||
Reference in New Issue
Block a user