diff options
author | Marek Olšák <[email protected]> | 2012-10-05 00:20:27 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-10-10 00:16:25 +0200 |
commit | d8ea64697bbdbc1c7987db00a55954e4cf094ad5 (patch) | |
tree | 58f3721f41cf9435655b4721f46bb695160ff65c /src/gallium/drivers/r600/evergreen_compute.c | |
parent | 1e7776ca2bc59a6978d9b933d23852d47078dfa8 (diff) |
r600g: remove the "atom" variable from r600_command_buffer
r600_command_buffer is not an atom.
The "atoms" have evolved into state slots (or groups of state slots) where
you can bind states. There is a fixed amount of atoms (state slots)
in the context.
The command buffers are nothing like that. They represent states, not state
slots.
We could probably give r600_atom a better name someday.
Reviewed-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_compute.c')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_compute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index 156e89ada49..402d4584d57 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -329,7 +329,7 @@ static void compute_emit_cs(struct r600_context *ctx, const uint *block_layout, * See evergreen_init_atom_start_compute_cs() in this file for the list * of registers initialized by the start_compute_cs_cmd atom. */ - r600_emit_atom(ctx, &ctx->start_compute_cs_cmd.atom); + r600_emit_command_buffer(ctx->cs, &ctx->start_compute_cs_cmd); ctx->flags |= R600_CONTEXT_CB_FLUSH; r600_flush_emit(ctx); @@ -625,7 +625,7 @@ void evergreen_init_atom_start_compute_cs(struct r600_context *ctx) /* since all required registers are initialised in the * start_compute_cs_cmd atom, we can EMIT_EARLY here. */ - r600_init_command_buffer(ctx, cb, 1, 256); + r600_init_command_buffer(cb, 256); cb->pkt_flags = RADEON_CP_PACKET3_COMPUTE_MODE; switch (ctx->family) { |