From 17e3df4cd2757e79a4fd77f52a2d23ff9084578b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 21 Sep 2022 12:18:26 -0400 Subject: [PATCH] zink: don't flatten 64bit arrays during rewrite dunno what I was thinking here Fixes: 5b2f850425e ("zink: rewrite 64bit shader i/o as 32bit") SoroushIMG Part-of: --- src/gallium/drivers/zink/zink_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index 217b6c8c..f808f96 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -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); } -- 2.7.4