OSDN Git Service

r600g: Add start_compute_cs atom to struct r600_context
authorTom Stellard <thomas.stellard@amd.com>
Mon, 25 Jun 2012 17:56:01 +0000 (17:56 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 9 Jul 2012 13:41:17 +0000 (13:41 +0000)
commit5016fe2d47a08ce2cd7c597e67862086e7d63b64
treebc1e28598b9080720db25bb53437bc196c490785
parent38be0966c7e58fb3017c222cf416ae2bdc0bee3d
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 <maraeo@gmail.com>
src/gallium/drivers/r600/evergreen_compute.c
src/gallium/drivers/r600/evergreen_compute.h
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h