r300: fix clear mask to not use sw if not necessary
authorDave Airlie <airlied@redhat.com>
Sun, 12 Jul 2009 11:35:24 +0000 (21:35 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 12 Jul 2009 11:37:46 +0000 (21:37 +1000)
src/mesa/drivers/dri/r300/r300_ioctl.c

index 4ae0b4504c2fb8f817b08d904392bd41d83014fb..4e913dba297beeb1e8d4d2d2388e1867bb9f09f0 100644 (file)
@@ -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 */