diff options
author | Alex Smith <[email protected]> | 2017-10-18 14:47:51 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-10-18 20:37:10 +0200 |
commit | 2cccc74f56c5c7a62442af4e06222862d90f5b33 (patch) | |
tree | 8445af85c7060bff943358a418d1a9f9415def94 /src/amd | |
parent | f5576732374b9e964394bd0c88fc3130f6453f15 (diff) |
radv: Set active_stages after getting cached shaders
Fixes: 7d45d22fdd2e ("radv: switch to using radv_create_shaders()")
Signed-off-by: Alex Smith <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index c93871bfbcf..7102d07a03a 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1597,8 +1597,13 @@ void radv_create_shaders(struct radv_pipeline *pipeline, } if (radv_create_shader_variants_from_pipeline_cache(device, cache, hash, pipeline->shaders) && - (!modules[MESA_SHADER_GEOMETRY] || pipeline->gs_copy_shader)) + (!modules[MESA_SHADER_GEOMETRY] || pipeline->gs_copy_shader)) { + for (unsigned i = 0; i < MESA_SHADER_STAGES; ++i) { + if (pipeline->shaders[i]) + pipeline->active_stages |= mesa_to_vk_shader_stage(i); + } return; + } if (!modules[MESA_SHADER_FRAGMENT] && !modules[MESA_SHADER_COMPUTE]) { nir_builder fs_b; |