gallium: add pipe surface layout value (Roland Scheidegger)

This commit is contained in:
Keith Whitwell 2008-05-03 15:41:05 +01:00
parent 99df379b2c
commit 8e6a380798
2 changed files with 7 additions and 0 deletions

View 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
*/

View 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_* */