radeonsi: emit TA_BC_BASE_ADDR_HI for border color on CIK
[mesa.git] / src / gallium / drivers / radeonsi / r600_resource.h
index 4cacf6274c7bf0245d86c8301537b9784c78cf91..f7b60ed33bafc78d8c4520296108a2b557f41584 100644 (file)
@@ -36,7 +36,7 @@ struct r600_transfer {
        /* Buffer transfer. */
        struct pipe_transfer            *buffer_transfer;
        unsigned                        offset;
-       struct pipe_resource            *staging_texture;
+       struct pipe_resource            *staging;
 };
 
 struct r600_resource_texture {
@@ -48,8 +48,8 @@ struct r600_resource_texture {
        enum pipe_format                real_format;
 
        unsigned                        pitch_override;
-       unsigned                        depth;
-       unsigned                        dirty_db;
+       unsigned                        is_depth;
+       unsigned                        dirty_db_mask; /* each bit says if that miplevel is dirty */
        struct r600_resource_texture    *flushed_depth_texture;
        boolean                         is_flushing_texture;
        struct radeon_surface           surface;
@@ -68,10 +68,9 @@ struct pipe_resource *si_texture_from_handle(struct pipe_screen *screen,
                                             const struct pipe_resource *base,
                                             struct winsys_handle *whandle);
 
-void r600_init_flushed_depth_texture(struct pipe_context *ctx,
-                                    struct pipe_resource *texture);
-void r600_texture_depth_flush(struct pipe_context *ctx,
-                             struct pipe_resource *texture);
+bool r600_init_flushed_depth_texture(struct pipe_context *ctx,
+                                    struct pipe_resource *texture,
+                                    struct r600_resource_texture **staging);
 
 
 struct r600_context;