Mesa (radeon-rewrite): r300: fix stencil clears
Dave Airlie
airlied at kemper.freedesktop.org
Tue Mar 31 02:08:24 UTC 2009
Module: Mesa
Branch: radeon-rewrite
Commit: 5c7fc1cb8e59d1603df17db8c7c63a92441ac820
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c7fc1cb8e59d1603df17db8c7c63a92441ac820
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Mar 31 20:10:48 2009 +1000
r300: fix stencil clears
---
src/mesa/drivers/dri/r300/r300_ioctl.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/r300/r300_ioctl.c b/src/mesa/drivers/dri/r300/r300_ioctl.c
index 71661ee..1314550 100644
--- a/src/mesa/drivers/dri/r300/r300_ioctl.c
+++ b/src/mesa/drivers/dri/r300/r300_ioctl.c
@@ -558,6 +558,9 @@ static void r300KernelClear(GLcontext *ctx, GLuint flags)
if (rrbd && (flags & BUFFER_BIT_DEPTH))
bits |= CLEARBUFFER_DEPTH;
+ if (rrbd && (flags & BUFFER_BIT_STENCIL))
+ bits |= CLEARBUFFER_STENCIL;
+
if (flags & BUFFER_BIT_COLOR0) {
rrb = radeon_get_renderbuffer(&rfb->base, BUFFER_COLOR0);
r300ClearBuffer(r300, CLEARBUFFER_COLOR, rrb, NULL);
More information about the mesa-commit
mailing list