projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db9c151
)
radeon: fix bad state emission causes kernel to do bad depth clear
author
Dave Airlie
<airlied@redhat.com>
Wed, 24 Feb 2010 07:19:09 +0000
(17:19 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 24 Feb 2010 07:19:09 +0000
(17:19 +1000)
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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_ioctl.c
b/src/mesa/drivers/dri/radeon/radeon_ioctl.c
index
c7ea452
..
d429f15
100644
(file)
--- 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__ );