radeon: fix bad state emission causes kernel to do bad depth clear
authorDave Airlie <airlied@redhat.com>
Wed, 24 Feb 2010 07:19:09 +0000 (17:19 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 24 Feb 2010 07:19:09 +0000 (17:19 +1000)
commitb75d40736997911e00cab339a7f15ec9bc86e535
tree1d41daf152441e17a9001f557dc81588cc5acab2
parentdb9c151d77d02729d7387213c3f4ee96c65dd0cc
radeon: fix bad state emission causes kernel to do bad depth clear

The kernel lets you clear depth without getting a depth offset
from userspace, mesa used to emit state before clear, but that got
lost in the refactoring, which made the kernel bug show up. Fix
mesa driver to emit the state properly now.

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