r600g/compute: always CONTEXT_CONTROL packet at start of CS
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Oct 2012 15:30:31 +0000 (11:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Oct 2012 13:32:33 +0000 (09:32 -0400)
commit480e1463057c70ca1b197cbba5a9b1c153d8b052
tree3b84c4f5e0dd084a0abea6c8d07c312b496d996e
parent4a9341498582891761e91599729adf6f2e2728a8
r600g/compute: always CONTEXT_CONTROL packet at start of CS

It's required.  The CP uses this to properly allocate new
contexts.  Also do a CS partial flush since we are updating
CONFIG regs which are single state.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r600/evergreen_compute.c
src/gallium/drivers/r600/evergreend.h