diff options
author | Dave Airlie <[email protected]> | 2009-07-12 21:35:24 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-07-12 21:37:46 +1000 |
commit | dfecf217fa0d7677bdd3445e32a7bb0d022a599b (patch) | |
tree | 2b5d4c7f1e01229ab883eeafcdcb8b5fe737bc18 /src | |
parent | b484c71036e0d0b30ac7685ba50a9008d09f5047 (diff) |
r300: fix clear mask to not use sw if not necessary
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |