zink: Fix reversed cap declarations for ImageBuffer

Fixes validation fails on
KHR-GLES31.core.texture_buffer.texture_buffer_texture_buffer_range.

Fixes: f55a4407ef ("zink: more accurately set {Sampled,Image}Buffer caps")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20308>
This commit is contained in:
Emma Anholt
2022-12-13 13:16:03 -08:00
committed by Marge Bot
parent bedb9b73db
commit 9dedbf66f6
@@ -990,9 +990,9 @@ get_bare_image_type(struct ntv_context *ctx, struct nir_variable *var, bool is_s
}
if (dimension == SpvDimBuffer) {
if (is_sampler)
spirv_builder_emit_cap(&ctx->builder, SpvCapabilityImageBuffer);
else
spirv_builder_emit_cap(&ctx->builder, SpvCapabilitySampledBuffer);
else
spirv_builder_emit_cap(&ctx->builder, SpvCapabilityImageBuffer);
}
bool arrayed = glsl_sampler_type_is_array(type);