diff options
author | Marek Olšák <[email protected]> | 2013-03-02 17:14:51 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-03-11 13:43:36 +0100 |
commit | 65cbf895670d2afb44d320fcc9d607f3c6c582ef (patch) | |
tree | b59b6d21f7c5455cef2eea4daf3e659181313987 /src/gallium/drivers/r600/r600_pipe.h | |
parent | 63042af933eb97930077ad57b047ffa7abb0f6e0 (diff) |
r600g: atomize pixel shader
Reviewed-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 813012fd2de..ba0aaadec2e 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -34,7 +34,7 @@ #include "r600_public.h" #include "r600_resource.h" -#define R600_NUM_ATOMS 39 +#define R600_NUM_ATOMS 40 #define R600_TRACE_CS 0 @@ -805,6 +805,13 @@ static INLINE void r600_store_value(struct r600_command_buffer *cb, unsigned val cb->buf[cb->num_dw++] = value; } +static INLINE void r600_store_array(struct r600_command_buffer *cb, unsigned num, unsigned *ptr) +{ + assert(cb->num_dw+num <= cb->max_num_dw); + memcpy(&cb->buf[cb->num_dw], ptr, num * sizeof(ptr[0])); + cb->num_dw += num; +} + static INLINE void r600_store_config_reg_seq(struct r600_command_buffer *cb, unsigned reg, unsigned num) { assert(reg < R600_CONTEXT_REG_OFFSET); |