Mesa (master): rbug: Fix depth stencil surface not being sent to the client

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Thu Mar 3 18:37:53 UTC 2011


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

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Thu Mar  3 18:25:49 2011 +0000

rbug: Fix depth stencil surface not being sent to the client

---

 src/gallium/drivers/rbug/rbug_context.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c
index 3aefb5b..4a5d541 100644
--- a/src/gallium/drivers/rbug/rbug_context.c
+++ b/src/gallium/drivers/rbug/rbug_context.c
@@ -544,6 +544,7 @@ rbug_set_framebuffer_state(struct pipe_context *_pipe,
 
    rb_pipe->curr.nr_cbufs = 0;
    memset(rb_pipe->curr.cbufs, 0, sizeof(rb_pipe->curr.cbufs));
+   rb_pipe->curr.zsbuf = NULL;
 
    /* unwrap the input state */
    if (_state) {
@@ -556,6 +557,8 @@ rbug_set_framebuffer_state(struct pipe_context *_pipe,
             rb_pipe->curr.cbufs[i] = rbug_resource(_state->cbufs[i]->texture);
       }
       unwrapped_state.zsbuf = rbug_surface_unwrap(_state->zsbuf);
+      if (_state->zsbuf)
+         rb_pipe->curr.zsbuf = rbug_resource(_state->zsbuf->texture);
       state = &unwrapped_state;
    }
 




More information about the mesa-commit mailing list