From: Timothy Arceri Date: Wed, 18 Oct 2017 02:58:36 +0000 (+1100) Subject: radv: don't create dummy fs when compiling compute stage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5e9e21e9fec3552b9e6a3db45ece64fcf0bc9d1;p=mesa.git radv: don't create dummy fs when compiling compute stage Fixes: d1c9f30d7ff7 "radv: add radv_create_shaders() helper" Reviewed-by: Bas Nieuwenhuizen --- 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");