mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
nir: remove invalid assert affecting per-view variables
per-view variables can have arbitrary (but > 0) number of array levels Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Acked-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14263>
This commit is contained in:
parent
ce5a8bff77
commit
0d6f83cbf1
1 changed files with 0 additions and 6 deletions
|
|
@ -179,12 +179,6 @@ mark_whole_variable(nir_shader *shader, nir_variable *var,
|
|||
}
|
||||
|
||||
if (var->data.per_view) {
|
||||
/* TODO: Per view and Per Vertex are not currently used together. When
|
||||
* they start to be used (e.g. when adding Primitive Replication for GS
|
||||
* on Intel), verify that "peeling" the type twice is correct. This
|
||||
* assert ensures we remember it.
|
||||
*/
|
||||
assert(!nir_is_arrayed_io(var, shader->info.stage));
|
||||
assert(glsl_type_is_array(type));
|
||||
type = glsl_get_array_element(type);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue