diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2020-03-03 10:10:05 -0800 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2020-03-12 13:18:54 -0700 |
commit | 9b0682df82041fe1ba7136a97a74be7ba4c08de7 (patch) | |
tree | fab12522d61c6f0fc97b1ca7995d4db6cdc79ab3 /src/intel | |
parent | 613c9b78e3a9fa08bda2c671543d2ef0caba9dc2 (diff) |
anv: Use pipeline type to decide whether or not lower multiview
Reviewed-by: Jason Ekstrand <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4040>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index c16050bc3f5..eeeb9f324ed 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -663,7 +663,7 @@ anv_pipeline_lower_nir(struct anv_pipeline *pipeline, NIR_PASS_V(nir, anv_nir_lower_ycbcr_textures, layout); - if (nir->info.stage != MESA_SHADER_COMPUTE) + if (pipeline->type == ANV_PIPELINE_GRAPHICS) NIR_PASS_V(nir, anv_nir_lower_multiview, pipeline->subpass->view_mask); nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir)); |