Mesa (master): i915g: Dirty fix for VBO module double flush assert

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Wed Aug 5 22:47:50 UTC 2009


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

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Wed Aug  5 23:59:37 2009 +0100

i915g: Dirty fix for VBO module double flush assert

---

 src/gallium/drivers/i915simple/i915_context.c |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/i915simple/i915_context.c b/src/gallium/drivers/i915simple/i915_context.c
index ccf9bb3..bf69c8e 100644
--- a/src/gallium/drivers/i915simple/i915_context.c
+++ b/src/gallium/drivers/i915simple/i915_context.c
@@ -142,10 +142,14 @@ i915_is_texture_referenced( struct pipe_context *pipe,
 			    unsigned face, unsigned level)
 {
    /**
-    * FIXME: Optimize.
+    * FIXME: Return the corrent result. We can't alays return referenced
+    *        since it causes a double flush within the vbo module.
     */
-
+#if 0
    return PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE;
+#else
+   return 0;
+#endif
 }
 
 static unsigned int
@@ -153,10 +157,14 @@ i915_is_buffer_referenced( struct pipe_context *pipe,
 			   struct pipe_buffer *buf)
 {
    /**
-    * FIXME: Optimize.
+    * FIXME: Return the corrent result. We can't alays return referenced
+    *        since it causes a double flush within the vbo module.
     */
-
+#if 0
    return PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE;
+#else
+   return 0;
+#endif
 }
 
 




More information about the mesa-commit mailing list