Mesa (mesa_7_5_branch): intel: intel_texture_drawpixels() can' t handle GL_DEPTH_STENCIL.

Ian Romanick idr at kemper.freedesktop.org
Mon Jun 22 22:21:29 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 0584b6e433753dd01101c6824f6f6336c40d0f1f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0584b6e433753dd01101c6824f6f6336c40d0f1f

Author: Michel Dänzer <daenzer at vmware.com>
Date:   Thu Jun 11 12:09:10 2009 +0200

intel: intel_texture_drawpixels() can't handle GL_DEPTH_STENCIL.

Fixes glean depthStencil test.
(cherry picked from commit 3885b708fdbb7bbd5dd3a247c41fb9a75ee7c057)

---

 src/mesa/drivers/dri/intel/intel_pixel_draw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_pixel_draw.c b/src/mesa/drivers/dri/intel/intel_pixel_draw.c
index 225c5f4..d80069d 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_draw.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_draw.c
@@ -97,7 +97,7 @@ intel_texture_drawpixels(GLcontext * ctx,
    /* We don't have a way to generate fragments with stencil values which
     * will set the resulting stencil value.
     */
-   if (format == GL_STENCIL_INDEX)
+   if (format == GL_STENCIL_INDEX || format == GL_DEPTH_STENCIL)
       return GL_FALSE;
 
    /* Check that we can load in a texture this big. */




More information about the mesa-commit mailing list