i915g: Fix comment in is buffer referenced
authorJakob Bornecrantz <wallbraker@gmail.com>
Sat, 7 Nov 2009 19:31:18 +0000 (19:31 +0000)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sat, 7 Nov 2009 19:31:18 +0000 (19:31 +0000)
src/gallium/drivers/i915/i915_context.c

index e745f3342d1b345d5b0636efcd71d83603d276c6..94c8aee30feeebcc9c2ebdfbfaab7cae45ca8a4e 100644 (file)
@@ -155,15 +155,11 @@ static unsigned int
 i915_is_buffer_referenced(struct pipe_context *pipe,
                           struct pipe_buffer *buf)
 {
-   /**
-    * FIXME: Return the corrent result. We can't alays return referenced
-    *        since it causes a double flush within the vbo module.
+   /*
+    * Since we never expose hardware buffers to the state tracker
+    * they can never be referenced, so this isn't a lie
     */
-#if 0
-   return PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE;
-#else
    return 0;
-#endif
 }