zink: don't flatten 64bit arrays during rewrite

dunno what I was thinking here

Fixes: 5b2f850425 ("zink: rewrite 64bit shader i/o as 32bit")

SoroushIMG <soroush.kashani@imgtec.com>

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18728>
This commit is contained in:
Mike Blumenkrantz 2022-09-21 12:18:26 -04:00 committed by Marge Bot
parent 52edd8f764
commit 17e3df4cd2

View file

@ -1567,7 +1567,7 @@ rewrite_64bit_type(nir_shader *nir, const struct glsl_type *type, nir_variable *
{
if (glsl_type_is_array(type)) {
const struct glsl_type *child = glsl_get_array_element(type);
unsigned elements = glsl_get_aoa_size(type);
unsigned elements = glsl_array_size(type);
unsigned stride = glsl_get_explicit_stride(type);
return glsl_array_type(rewrite_64bit_type(nir, child, var), elements, stride);
}