tu: Add multiview lowering pass
[mesa.git] / src / freedreno / vulkan / tu_private.h
index 584931dc534b39584f12c419508d79f56ac8a74e..b466227e94190a62f5ee72b0a06eab6ec78a8672 100644 (file)
@@ -200,6 +200,7 @@ struct tu_physical_device
    /* gmem store/load granularity */
 #define GMEM_ALIGN_W 16
 #define GMEM_ALIGN_H 4
+   bool supports_multiview_mask;
 
    struct {
       uint32_t PC_UNKNOWN_9805;
@@ -1078,6 +1079,9 @@ struct tu_shader
    uint8_t active_desc_sets;
 };
 
+bool
+tu_nir_lower_multiview(nir_shader *nir, uint32_t mask, struct tu_device *dev);
+
 struct tu_shader *
 tu_shader_create(struct tu_device *dev,
                  gl_shader_stage stage,