From: Dave Airlie Date: Sun, 12 Jul 2009 11:35:24 +0000 (+1000) Subject: r300: fix clear mask to not use sw if not necessary X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dfecf217fa0d7677bdd3445e32a7bb0d022a599b;p=mesa.git r300: fix clear mask to not use sw if not necessary --- 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 */