From dfecf217fa0d7677bdd3445e32a7bb0d022a599b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 12 Jul 2009 21:35:24 +1000 Subject: [PATCH] r300: fix clear mask to not use sw if not necessary --- src/mesa/drivers/dri/r300/r300_ioctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/r300/r300_ioctl.c b/src/mesa/drivers/dri/r300/r300_ioctl.c index 4ae0b4504c2..4e913dba297 100644 --- a/src/mesa/drivers/dri/r300/r300_ioctl.c +++ b/src/mesa/drivers/dri/r300/r300_ioctl.c @@ -646,6 +646,8 @@ static void r300Clear(GLcontext * ctx, GLbitfield mask) if (colorMask == ~0) tri_mask |= (mask & BUFFER_BITS_COLOR); + else + tri_mask |= (mask & (BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_BACK_LEFT)); /* HW stencil */ -- 2.30.2