zink: ntv formatting

Erik Faye-Lund <erik.faye-lund@collabora.com>

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8142>
This commit is contained in:
Mike Blumenkrantz
2020-12-17 11:26:32 -05:00
committed by Marge Bot
parent 02fd562e65
commit 26a955959e
@@ -236,8 +236,8 @@ get_glsl_type(struct ntv_context *ctx, const struct glsl_type *type)
if (glsl_type_is_array(type)) {
SpvId ret = spirv_builder_type_array(&ctx->builder,
get_glsl_type(ctx, glsl_get_array_element(type)),
emit_uint_const(ctx, 32, glsl_get_length(type)));
get_glsl_type(ctx, glsl_get_array_element(type)),
emit_uint_const(ctx, 32, glsl_get_length(type)));
uint32_t stride = glsl_get_explicit_stride(type);
if (!stride && glsl_type_is_scalar(glsl_get_array_element(type))) {
stride = MAX2(glsl_get_bit_size(glsl_get_array_element(type)) / 8, 1);