radv: Set active_stages after getting cached shaders
Fixes: 7d45d22fdd
("radv: switch to using radv_create_shaders()")
Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
f557673237
commit
2cccc74f56
|
@ -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) &&
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!modules[MESA_SHADER_FRAGMENT] && !modules[MESA_SHADER_COMPUTE]) {
|
if (!modules[MESA_SHADER_FRAGMENT] && !modules[MESA_SHADER_COMPUTE]) {
|
||||||
nir_builder fs_b;
|
nir_builder fs_b;
|
||||||
|
|
Loading…
Reference in New Issue