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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user