diff options
author | Tom Stellard <[email protected]> | 2012-06-25 17:56:01 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-07-09 13:41:17 +0000 |
commit | 5016fe2d47a08ce2cd7c597e67862086e7d63b64 (patch) | |
tree | bc1e28598b9080720db25bb53437bc196c490785 /src/gallium/drivers/r600/r600_pipe.c | |
parent | 38be0966c7e58fb3017c222cf416ae2bdc0bee3d (diff) |
r600g: Add start_compute_cs atom to struct r600_context
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |