Fixes validation fails on
KHR-GLES31.core.texture_buffer.texture_buffer_texture_buffer_range.
Fixes: f55a4407ef97 ("zink: more accurately set {Sampled,Image}Buffer caps")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20308>
}
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);