diff options
author | Keith Whitwell <[email protected]> | 2008-05-03 15:41:05 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-05-03 15:41:05 +0100 |
commit | 8e6a3807981bb96bb6747683dbc9f92ae7117dd2 (patch) | |
tree | 78912a6a59da28a9502bc226df8cea2e154841bc | |
parent | 99df379b2c5b8e4e2ee7e5f2af864daf0a9eb1f7 (diff) |
gallium: add pipe surface layout value (Roland Scheidegger)
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 6 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_state.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index d5d341d689a..2e77fb42a82 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -174,6 +174,12 @@ enum pipe_texture_target { /** + * Surface layout + */ +#define PIPE_SURFACE_LAYOUT_LINEAR 0 + + +/** * Surface status */ #define PIPE_SURFACE_STATUS_UNDEFINED 0 diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 4936b7f5077..571ea8c6e15 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -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_* */ |