OSDN Git Service

r600g: Handle CONFIG regs properly
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 9 Jun 2011 20:26:50 +0000 (16:26 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 9 Jun 2011 20:26:50 +0000 (16:26 -0400)
commit8681ebcf7f1daf0a346ea7d41013d5af02e3c7c7
treef55125ca34b10341cfb31abe437e4a33f4e8b166
parent6861a701772eac3a6a7d3136d03efa7ac7e5c026
r600g: Handle CONFIG regs properly

CONFIG regs (byte offsets 0x8000-0xac00) are single state and the pipeline
must be flushed and hw idle when they are changed.  Border color regs
are in the CONFIG range and this is why a flush is required when changing
them.  CONTEXT regs (byte offset 0x28000+) are multi-state and those do
not require flushes when changing them.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/gallium/winsys/r600/drm/evergreen_hw_context.c
src/gallium/winsys/r600/drm/r600_hw_context.c