zink: drop some more vla usage

MSVC doesn't like them, so let's get rid of more of them.

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11380>
This commit is contained in:
Erik Faye-Lund
2021-06-15 08:15:42 -07:00
committed by Marge Bot
parent c14af0065e
commit 3179ce61e9
@@ -3047,7 +3047,7 @@ emit_tex(struct ntv_context *ctx, nir_tex_instr *tex)
}
if (proj && coord_components > 0) {
SpvId constituents[coord_components + 1];
SpvId constituents[NIR_MAX_VEC_COMPONENTS + 1];
if (coord_components == 1)
constituents[0] = coord;
else {