From 5016fe2d47a08ce2cd7c597e67862086e7d63b64 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 25 Jun 2012 17:56:01 +0000 Subject: r600g: Add start_compute_cs atom to struct r600_context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The start_compute_cs atom initializes some config and context registers to the values needed for running compute shaders. When a compute shader is dispatched, this atom is emitted after the start_cs_cmd atom, which initializes registers that are common to both 3D and compute. Reviewed-by: Marek Olšák --- src/gallium/drivers/r600/r600_pipe.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/r600/r600_pipe.c') diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index c4df3a6f0fd..675834ed048 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -251,6 +251,7 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void case CAYMAN: evergreen_init_state_functions(rctx); evergreen_init_atom_start_cs(rctx); + evergreen_init_atom_start_compute_cs(rctx); if (evergreen_context_init(rctx)) goto fail; rctx->custom_dsa_flush = evergreen_create_db_flush_dsa(rctx); -- cgit v1.2.3