ilo: construct depth/stencil command in create_surface()
[mesa.git] / src / gallium / drivers / ilo / ilo_gpe.h
index 3a3b35535bf988426679201a20880e0ef3500da1..fcbd5b888b6e359abf1290a7ccc0a99dd2ab1c0f 100644 (file)
@@ -216,12 +216,19 @@ struct ilo_surface_cso {
    bool is_rt;
    union {
       struct ilo_view_surface rt;
+      struct ilo_zs_surface {
+         uint32_t payload[10];
+         struct intel_bo *bo;
+         struct intel_bo *hiz_bo;
+         struct intel_bo *separate_s8_bo;
+      } zs;
    } u;
 };
 
 struct ilo_fb_state {
    struct pipe_framebuffer_state state;
 
+   struct ilo_zs_surface null_zs;
    unsigned num_samples;
 };
 
@@ -413,4 +420,12 @@ ilo_gpe_init_view_surface_for_texture(const struct ilo_dev_info *dev,
    }
 }
 
+void
+ilo_gpe_init_zs_surface(const struct ilo_dev_info *dev,
+                        const struct ilo_texture *tex,
+                        enum pipe_format format,
+                        unsigned level,
+                        unsigned first_layer, unsigned num_layers,
+                        struct ilo_zs_surface *zs);
+
 #endif /* ILO_GPE_H */