diff options
author | José Fonseca <[email protected]> | 2007-11-06 14:43:20 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2007-11-06 14:52:39 +0000 |
commit | a06dcfd75b1591bc1db568798f82be721dcc807e (patch) | |
tree | a45bfc6d03e2d281797838e196148b414b01fa9c /src/mesa/pipe/p_defines.h | |
parent | fa1a66d7fc4fd7854de7958a48e4992edd154489 (diff) |
Allow custom pipe driver buffer usage flags.
Diffstat (limited to 'src/mesa/pipe/p_defines.h')
-rw-r--r-- | src/mesa/pipe/p_defines.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/pipe/p_defines.h b/src/mesa/pipe/p_defines.h index 119ea1bd775..cc0232cdcd8 100644 --- a/src/mesa/pipe/p_defines.h +++ b/src/mesa/pipe/p_defines.h @@ -177,11 +177,12 @@ /** * Buffer usage flags */ -#define PIPE_BUFFER_USAGE_PIXEL 0x1 -#define PIPE_BUFFER_USAGE_VERTEX 0x2 -#define PIPE_BUFFER_USAGE_INDEX 0x4 -#define PIPE_BUFFER_USAGE_CONSTANT 0x8 - +#define PIPE_BUFFER_USAGE_PIXEL (1 << 0) +#define PIPE_BUFFER_USAGE_VERTEX (1 << 1) +#define PIPE_BUFFER_USAGE_INDEX (1 << 2) +#define PIPE_BUFFER_USAGE_CONSTANT (1 << 3) +/** Pipe driver custam usage flags should be greater or equal to this value */ +#define PIPE_BUFFER_USAGE_CUSTOM (1 << 16) /** * Flush types: |