Add surface status/clear_value fields, PIPE_SURFACE_STATUS_x tokens
authorBrian <brian.paul@tungstengraphics.com>
Tue, 15 Jan 2008 21:18:17 +0000 (14:18 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 15 Jan 2008 21:18:17 +0000 (14:18 -0700)
src/mesa/pipe/p_defines.h
src/mesa/pipe/p_state.h

index c6d9c02bd91b133bfd2e4b2d47833b4dc5fbebc0..50bea691e7160f691e44758897fc032683492cc4 100644 (file)
@@ -169,6 +169,14 @@ enum pipe_texture_target {
 #define PIPE_SURFACE        2  /**< user-created surfaces */
 
 
+/**
+ * Surface status
+ */
+#define PIPE_SURFACE_STATUS_UNDEFINED  0
+#define PIPE_SURFACE_STATUS_DEFINED    1
+#define PIPE_SURFACE_STATUS_CLEAR      2
+
+
 /**
  * Buffer access flags
  */
index ccd2a5f9e2f2773430f57a8f1810bf38bc16be4c..46328d2a8f66f77ccf937820f882f1cb667748df 100644 (file)
@@ -243,6 +243,8 @@ struct pipe_surface
 {
    struct pipe_buffer_handle *buffer; /**< driver private buffer handle */
    enum pipe_format format;      /**< PIPE_FORMAT_x */
+   unsigned status;              /**< PIPE_SURFACE_STATUS_x */
+   unsigned clear_value;         /**< may be temporary */
    unsigned cpp;                 /**< bytes per pixel */
    unsigned width, height;
    unsigned pitch;               /**< in pixels */