Module: Mesa
Branch: radeon-rewrite
Commit: 7ba9eb1e85e1017700a02c4f5d2848e3d997bc5b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ba9eb1e85e1017700a02c4f5d2848e3d997bc5b

Author: Dave Airlie <[email protected]>
Date:   Fri Mar  6 04:47:29 2009 +1000

r200: temporary sw clear code

---

 src/mesa/drivers/dri/r200/r200_ioctl.c |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/r200/r200_ioctl.c 
b/src/mesa/drivers/dri/r200/r200_ioctl.c
index 6076b6d..1ab5a82 100644
--- a/src/mesa/drivers/dri/r200/r200_ioctl.c
+++ b/src/mesa/drivers/dri/r200/r200_ioctl.c
@@ -58,6 +58,23 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
SOFTWARE.
 
 static void r200UserClear(GLcontext *ctx, GLuint flags)
 {
+  GLuint mask = 0;
+
+  if (flags & RADEON_FRONT)
+    mask |= BUFFER_BIT_FRONT_LEFT;
+
+  if (flags & RADEON_BACK)
+    mask |= BUFFER_BIT_BACK_LEFT;
+
+  if (flags & RADEON_DEPTH)
+    mask |= BUFFER_BIT_DEPTH;
+
+  if (flags & RADEON_STENCIL)
+    mask |= BUFFER_BIT_STENCIL;
+
+#if 1
+  _swrast_Clear(ctx, mask);
+#else
    if (flags & (RADEON_FRONT | RADEON_BACK)) {
 
 
@@ -67,7 +84,7 @@ static void r200UserClear(GLcontext *ctx, GLuint flags)
        && (flags & RADEON_CLEAR_FASTZ)) {
 
    }
-
+#endif
 }
 
 static void r200KernelClear(GLcontext *ctx, GLuint flags)

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to