mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 17:18:30 +02:00
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:
parent
701ee4be91
commit
689a80704a
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue