diff options
author | Dave Airlie <airlied@redhat.com> | 2010-02-24 17:19:09 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-24 17:19:09 +1000 |
commit | b75d40736997911e00cab339a7f15ec9bc86e535 (patch) | |
tree | 1d41daf152441e17a9001f557dc81588cc5acab2 /src/mesa/drivers/dri/radeon | |
parent | db9c151d77d02729d7387213c3f4ee96c65dd0cc (diff) |
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>
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_ioctl.c b/src/mesa/drivers/dri/radeon/radeon_ioctl.c index c7ea452156..d429f15fa5 100644 --- a/src/mesa/drivers/dri/radeon/radeon_ioctl.c +++ b/src/mesa/drivers/dri/radeon/radeon_ioctl.c @@ -481,6 +481,7 @@ static void radeonKernelClear(GLcontext *ctx, GLuint flags) } } + radeonEmitState(&rmesa->radeon); /* Send current state to the hardware */ rcommonFlushCmdBufLocked( &rmesa->radeon, __FUNCTION__ ); |