From 0a0a04bdaa6faf1dd3e937f7087ae1c4f240c916 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 29 Nov 2022 15:40:43 +0100 Subject: [PATCH] tu: Use right enum for compute active_shader_stages This is VkShaderStageFlags, not VkPipelineStageFlags. Fixes preloading descriptors for compute dispatches. Fixes: d862a2ebcbf ("turnip: Only emit descriptor loads for active stages in the pipeline.") Part-of: --- src/freedreno/vulkan/tu_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c index 91e54bc875a..51cc85ca030 100644 --- a/src/freedreno/vulkan/tu_pipeline.c +++ b/src/freedreno/vulkan/tu_pipeline.c @@ -5170,7 +5170,7 @@ tu_compute_pipeline_create(VkDevice device, pipeline->executables_mem_ctx = ralloc_context(NULL); util_dynarray_init(&pipeline->executables, pipeline->executables_mem_ctx); - pipeline->active_stages = VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT; + pipeline->active_stages = VK_SHADER_STAGE_COMPUTE_BIT; struct tu_shader_key key = { }; tu_shader_key_init(&key, stage_info, dev);