diff options
Diffstat (limited to 'src/gallium/drivers/r600/r600_state_common.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_state_common.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index 2796b9d969d..481ab91c55d 100644 --- a/src/gallium/drivers/r600/r600_state_common.c +++ b/src/gallium/drivers/r600/r600_state_common.c @@ -34,19 +34,8 @@ #define R600_PRIM_RECTANGLE_LIST PIPE_PRIM_MAX -static void r600_emit_command_buffer(struct r600_context *rctx, struct r600_atom *atom) +void r600_init_command_buffer(struct r600_command_buffer *cb, unsigned num_dw) { - struct radeon_winsys_cs *cs = rctx->cs; - struct r600_command_buffer *cb = (struct r600_command_buffer*)atom; - - assert(cs->cdw + cb->atom.num_dw <= RADEON_MAX_CMDBUF_DWORDS); - memcpy(cs->buf + cs->cdw, cb->buf, 4 * cb->atom.num_dw); - cs->cdw += cb->atom.num_dw; -} - -void r600_init_command_buffer(struct r600_context *rctx, struct r600_command_buffer *cb, unsigned id, unsigned num_dw) -{ - r600_init_atom(rctx, &cb->atom, id, r600_emit_command_buffer, 0); cb->buf = CALLOC(1, 4 * num_dw); cb->max_num_dw = num_dw; } |