i915g: Dirty fix for VBO module double flush assert
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 5 Aug 2009 22:59:37 +0000 (23:59 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 5 Aug 2009 23:52:13 +0000 (00:52 +0100)
src/gallium/drivers/i915simple/i915_context.c

index ccf9bb31fb02fdeddcdab07dcdde348240c97853..bf69c8e9f5351607a0a6de6cf8ac454984d8ff43 100644 (file)
@@ -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
 }