Mesa (master): radv: don't create dummy fs when compiling compute stage

Timothy Arceri tarceri at kemper.freedesktop.org
Wed Oct 18 11:48:05 UTC 2017


Module: Mesa
Branch: master
Commit: e5e9e21e9fec3552b9e6a3db45ece64fcf0bc9d1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e5e9e21e9fec3552b9e6a3db45ece64fcf0bc9d1

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Wed Oct 18 13:58:36 2017 +1100

radv: don't create dummy fs when compiling compute stage

Fixes: d1c9f30d7ff7 "radv: add radv_create_shaders() helper"

Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 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 559862678e..0b95d008c0 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");




More information about the mesa-commit mailing list