mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 22:00:37 +02:00
gallium: add pipe surface layout value (Roland Scheidegger)
This commit is contained in:
parent
99df379b2c
commit
8e6a380798
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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_* */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue