diff options
author | Dave Airlie <[email protected]> | 2012-11-06 15:31:41 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-11-09 09:24:40 +1000 |
commit | 7356579540cf22743ce93a080a41bc2dc2bb150b (patch) | |
tree | 5f6844b547a529804412157f41b0c2fd5e4b565e /src/gallium/drivers/r600/r600_pipe.h | |
parent | 2fcaf4eae890930fc591df2dc9ad4f6422e8eed0 (diff) |
r600g: clarify const buffer numbering and handling
For cube map arrays I'll need another driver private constant
buffer, and looking forward to UBOs. So clean up with some
defines, that can be modified when adding cube map array and ubos
later.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 7f1902564cc..2287d6371ff 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -36,7 +36,13 @@ #define R600_NUM_ATOMS 36 -#define R600_MAX_CONST_BUFFERS 2 +#define R600_MAX_USER_CONST_BUFFERS 1 +#define R600_MAX_DRIVER_CONST_BUFFERS 1 +#define R600_MAX_CONST_BUFFERS (R600_MAX_USER_CONST_BUFFERS + R600_MAX_DRIVER_CONST_BUFFERS) + +/* start driver buffers after user buffers */ +#define R600_UCP_CONST_BUFFER (R600_MAX_USER_CONST_BUFFERS) + #define R600_MAX_CONST_BUFFER_SIZE 4096 #ifdef PIPE_ARCH_BIG_ENDIAN |