From e5e9e21e9fec3552b9e6a3db45ece64fcf0bc9d1 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 18 Oct 2017 13:58:36 +1100 Subject: [PATCH] radv: don't create dummy fs when compiling compute stage Fixes: d1c9f30d7ff7 "radv: add radv_create_shaders() helper" Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 559862678e7..0b95d008c07 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1600,7 +1600,7 @@ void radv_create_shaders(struct radv_pipeline *pipeline, (!modules[MESA_SHADER_GEOMETRY] || pipeline->gs_copy_shader)) return; - if (!modules[MESA_SHADER_FRAGMENT]) { + if (!modules[MESA_SHADER_FRAGMENT] && !modules[MESA_SHADER_COMPUTE]) { nir_builder fs_b; nir_builder_init_simple_shader(&fs_b, NULL, MESA_SHADER_FRAGMENT, NULL); fs_b.shader->info.name = ralloc_strdup(fs_b.shader, "noop_fs"); -- 2.30.2