gallium: add pipe surface layout value (Roland Scheidegger)
authorKeith Whitwell <keith@tungstengraphics.com>
Sat, 3 May 2008 14:41:05 +0000 (15:41 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Sat, 3 May 2008 14:41:05 +0000 (15:41 +0100)
src/gallium/include/pipe/p_defines.h
src/gallium/include/pipe/p_state.h

index d5d341d689a2091403dab21b2dcf775e828829be..2e77fb42a826743a6eb75dd307d34100529f891c 100644 (file)
@@ -173,6 +173,12 @@ enum pipe_texture_target {
 #define PIPE_SURFACE        2  /**< user-created surfaces */
 
 
+/**
+ * Surface layout
+ */
+#define PIPE_SURFACE_LAYOUT_LINEAR  0
+
+
 /**
  * Surface status
  */
index 4936b7f5077525fc7083706f952c35518de27c17..571ea8c6e15abe172bc290933acd21ade2d4db79 100644 (file)
@@ -271,6 +271,7 @@ struct pipe_surface
    unsigned width;
    unsigned height;
    unsigned pitch;               /**< in pixels */
+   unsigned layout;              /**< PIPE_SURFACE_LAYOUT_x */
    unsigned offset;              /**< offset from start of buffer, in bytes */
    unsigned refcount;
    unsigned usage;              /**< PIPE_BUFFER_USAGE_*  */