radeon/r200/r300: don't clean non-emitted state.
authorDave Airlie <airlied@redhat.com>
Wed, 27 Jan 2010 01:46:26 +0000 (11:46 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 27 Jan 2010 02:48:47 +0000 (12:48 +1000)
commit395e08a839bca94b8c0cd7fca4b48bb06bc02952
tree0476e189d5743240cafcd2f4041027cbc73b5b7e
parente6df209490a265f35be255468d7b9123404ef14c
radeon/r200/r300: don't clean non-emitted state.

So if we don't actually emit an atom to the hw because we don't
need it in the current state (e.g. lighting related atoms when
lighting is off) then don't mark it as clean, because when
lighting gets switched on we won't emit it at all.

This fixes funky gears colors.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/radeon/radeon_common.c