mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
zink: emit ImageCubeArray cap when accessing arrayed cube dimension images
required by spec Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9987>
This commit is contained in:
parent
ccbaf31f3c
commit
3d55998504
1 changed files with 4 additions and 1 deletions
|
|
@ -730,11 +730,14 @@ emit_image(struct ntv_context *ctx, struct nir_variable *var)
|
|||
}
|
||||
|
||||
SpvDim dimension = type_to_dim(glsl_get_sampler_dim(type), &is_ms);
|
||||
bool arrayed = glsl_sampler_type_is_array(type);
|
||||
if (dimension == SpvDimCube && arrayed)
|
||||
spirv_builder_emit_cap(&ctx->builder, SpvCapabilityImageCubeArray);
|
||||
|
||||
SpvId result_type = get_glsl_basetype(ctx, glsl_get_sampler_result_type(type));
|
||||
SpvId image_type = spirv_builder_type_image(&ctx->builder, result_type,
|
||||
dimension, false,
|
||||
glsl_sampler_type_is_array(type),
|
||||
arrayed,
|
||||
is_ms, is_sampler ? 1 : 2,
|
||||
get_image_format(var->data.image.format));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue