diff options
author | Timothy Arceri <[email protected]> | 2017-10-18 13:58:36 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-10-18 22:47:53 +1100 |
commit | e5e9e21e9fec3552b9e6a3db45ece64fcf0bc9d1 (patch) | |
tree | 9e3016a9bc5fc569f4ecfbb32d99ee07f06b67cf | |
parent | e6b9abf29484e4bd01b816d8d794065f1cf775f6 (diff) |
radv: don't create dummy fs when compiling compute stage
Fixes: d1c9f30d7ff7 "radv: add radv_create_shaders() helper"
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |