zink: emit SpvCapabilityImageMSArray for ms arrayed storage images

required by spec

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27827>
This commit is contained in:
Mike Blumenkrantz
2024-02-16 13:17:39 -05:00
committed by Marge Bot
parent 701ee4be91
commit 689a80704a
@@ -1166,6 +1166,8 @@ get_bare_image_type(struct ntv_context *ctx, struct nir_variable *var, bool is_s
bool arrayed = glsl_sampler_type_is_array(type);
if (dimension == SpvDimCube && arrayed)
spirv_builder_emit_cap(&ctx->builder, SpvCapabilityImageCubeArray);
if (arrayed && !is_sampler && is_ms)
spirv_builder_emit_cap(&ctx->builder, SpvCapabilityImageMSArray);
SpvId result_type = get_glsl_basetype(ctx, glsl_get_sampler_result_type(type));
return spirv_builder_type_image(&ctx->builder, result_type,