Mesa (master): intel: Fall back on glCopyPixels(GL_DEPTH) or GL_STENCIL.

Eric Anholt anholt at kemper.freedesktop.org
Tue Jul 7 22:44:32 UTC 2009


Module: Mesa
Branch: master
Commit: bdd7506f10d13018a9c71270eed5d3d295978081
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdd7506f10d13018a9c71270eed5d3d295978081

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Jul  7 13:39:29 2009 -0700

intel: Fall back on glCopyPixels(GL_DEPTH) or GL_STENCIL.

---

 src/mesa/drivers/dri/intel/intel_pixel_copy.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_pixel_copy.c b/src/mesa/drivers/dri/intel/intel_pixel_copy.c
index f523d3e..5d52335 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_copy.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_copy.c
@@ -272,6 +272,12 @@ do_blit_copypixels(GLcontext * ctx,
    drm_clip_rect_t *cliprects;
    int x_off, y_off;
 
+   if (type == GL_DEPTH || type == GL_STENCIL) {
+      if (INTEL_DEBUG & DEBUG_FALLBACKS)
+	 fprintf(stderr, "glCopyPixels() fallback: GL_DEPTH || GL_STENCIL\n");
+      return GL_FALSE;
+   }
+
    /* Update draw buffer bounds */
    _mesa_update_state(ctx);
 




More information about the mesa-commit mailing list