diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index 7b0e7f91e34..9d9078e6487 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -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);