Commit 4a139370 authored by Andrii Simiklit's avatar Andrii Simiklit Committed by andrii simiklit

glsl-arrays-copy-size-mismatch: Add test case for nir_opt_find_array_copies

This test checks that nir_opt_find_array_copies
handles correctly cases where arrays have a different length.

copy_deref creation for arrays with different lengths
leads to assertion in places like:
   "assert(glsl_get_length(parent->type) ==
             glsl_get_length(leader_parent->type));"

v2: aoa was used
v3: increased the required glsl version to 1.2 due to GL_ARB_arrays_of_arrays
    ( Danylo Piliaiev <danylo.piliaiev@globallogic.com> )
Acked-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Danylo Piliaiev's avatarDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111286Signed-off-by: default avatarAndrii Simiklit <andrii.simiklit@globallogic.com>
parent f43cdc5e
Pipeline #108634 passed with stages
in 3 minutes and 47 seconds