zink: always enable fixed shader-caps
This is required for a bunch of stuff that can occur in any Vulkan shader stage, not just these few. So let's always emit this cap. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10371>
This commit is contained in:
@@ -3576,15 +3576,11 @@ nir_to_spirv(struct nir_shader *s, const struct zink_so_info *so_info, bool spir
|
||||
if (!ctx.glsl_types)
|
||||
goto fail;
|
||||
|
||||
switch (s->info.stage) {
|
||||
case MESA_SHADER_VERTEX:
|
||||
case MESA_SHADER_FRAGMENT:
|
||||
case MESA_SHADER_COMPUTE:
|
||||
spirv_builder_emit_cap(&ctx.builder, SpvCapabilityShader);
|
||||
spirv_builder_emit_cap(&ctx.builder, SpvCapabilityImageBuffer);
|
||||
spirv_builder_emit_cap(&ctx.builder, SpvCapabilitySampledBuffer);
|
||||
break;
|
||||
spirv_builder_emit_cap(&ctx.builder, SpvCapabilityShader);
|
||||
spirv_builder_emit_cap(&ctx.builder, SpvCapabilityImageBuffer);
|
||||
spirv_builder_emit_cap(&ctx.builder, SpvCapabilitySampledBuffer);
|
||||
|
||||
switch (s->info.stage) {
|
||||
case MESA_SHADER_TESS_CTRL:
|
||||
case MESA_SHADER_TESS_EVAL:
|
||||
spirv_builder_emit_cap(&ctx.builder, SpvCapabilityTessellation);
|
||||
@@ -3601,8 +3597,7 @@ nir_to_spirv(struct nir_shader *s, const struct zink_so_info *so_info, bool spir
|
||||
spirv_builder_emit_cap(&ctx.builder, SpvCapabilityGeometryPointSize);
|
||||
break;
|
||||
|
||||
default:
|
||||
unreachable("invalid stage");
|
||||
default: ;
|
||||
}
|
||||
|
||||
ctx.info = &s->info;
|
||||
|
||||
Reference in New Issue
Block a user