radv: Only create noop-fs for graphics pipelines
authorDaniel Schürmann <daniel@schuermann.dev>
Fri, 13 May 2022 14:14:34 +0000 (16:14 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 22 Jul 2022 15:31:23 +0000 (15:31 +0000)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17301>

src/amd/vulkan/radv_pipeline.c

index 17a554d..a1b08f8 100644 (file)
@@ -4651,7 +4651,7 @@ radv_create_shaders(struct radv_pipeline *pipeline, struct radv_pipeline_layout
       goto done;
    }
 
-   if (!stages[MESA_SHADER_FRAGMENT].entrypoint && !stages[MESA_SHADER_COMPUTE].entrypoint) {
+   if (pipeline->type == RADV_PIPELINE_GRAPHICS && !stages[MESA_SHADER_FRAGMENT].entrypoint) {
       nir_builder fs_b = radv_meta_init_shader(device, MESA_SHADER_FRAGMENT, "noop_fs");
 
       stages[MESA_SHADER_FRAGMENT] = (struct radv_pipeline_stage) {