Mesa (master): i965g: fix bo_reference

Keith Whitwell keithw at kemper.freedesktop.org
Tue Dec 22 01:57:36 PST 2009


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

Author: Keith Whitwell <keithw at vmware.com>
Date:   Tue Dec 22 09:57:16 2009 +0000

i965g: fix bo_reference

---

 src/gallium/drivers/i965/brw_winsys.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/i965/brw_winsys.h b/src/gallium/drivers/i965/brw_winsys.h
index 4f3187c..a242e31 100644
--- a/src/gallium/drivers/i965/brw_winsys.h
+++ b/src/gallium/drivers/i965/brw_winsys.h
@@ -246,6 +246,8 @@ bo_reference(struct brw_winsys_buffer **ptr, struct brw_winsys_buffer *buf)
 
    if (pipe_reference(&(*ptr)->reference, &buf->reference))
       old_buf->sws->bo_destroy(old_buf);
+
+   *ptr = buf;
 }
 
 



More information about the mesa-commit mailing list