Mesa (master): mesa: Only do read write when we don' t have a depth value to write

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Jun 11 15:35:50 UTC 2009


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

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Thu Jun 11 15:37:53 2009 +0100

mesa: Only do read write when we don't have a depth value to write

---

 src/mesa/state_tracker/st_cb_drawpixels.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c
index b674e6b..04cf673 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/src/mesa/state_tracker/st_cb_drawpixels.c
@@ -643,7 +643,7 @@ draw_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
       y = ctx->DrawBuffer->Height - y - height;
    }
 
-   if(format == GL_DEPTH_STENCIL && 
+   if(format != GL_DEPTH_STENCIL && 
       pf_get_component_bits( strb->format, PIPE_FORMAT_COMP_Z ) != 0)
       usage = PIPE_TRANSFER_READ_WRITE;
    else




More information about the mesa-commit mailing list