anv: Use pipeline type to decide whether or not lower multiview
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 3 Mar 2020 18:10:05 +0000 (10:10 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 12 Mar 2020 20:18:54 +0000 (13:18 -0700)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4040>

src/intel/vulkan/anv_pipeline.c

index c16050bc3f5907a228ce0592129ea5cab16f70e8..eeeb9f324ed5d89bb180f20ea36b7f5856c716a6 100644 (file)
@@ -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));