nouveau: remove cb_dirty, it's never used
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 30 Apr 2014 06:08:52 +0000 (02:08 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 2 May 2014 16:01:35 +0000 (12:01 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nouveau_buffer.c
src/gallium/drivers/nouveau/nouveau_context.h

index e308ff4..904e2cc 100644 (file)
@@ -521,7 +521,7 @@ nouveau_buffer_transfer_flush_region(struct pipe_context *pipe,
  * was returned was not the real resource's data, this needs to transfer the
  * data back to the resource.
  *
- * Also marks vbo/cb dirty if the buffer's binding
+ * Also marks vbo dirty based on the buffer's binding
  */
 static void
 nouveau_buffer_transfer_unmap(struct pipe_context *pipe,
@@ -540,8 +540,6 @@ nouveau_buffer_transfer_unmap(struct pipe_context *pipe,
          /* make sure we invalidate dedicated caches */
          if (bind & (PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER))
             nv->vbo_dirty = TRUE;
-         if (bind & (PIPE_BIND_CONSTANT_BUFFER))
-            nv->cb_dirty = TRUE;
       }
 
       util_range_add(&buf->valid_buffer_range,
index c8d9d84..14608d3 100644 (file)
@@ -14,7 +14,6 @@ struct nouveau_context {
    struct nouveau_pushbuf *pushbuf;
 
    boolean vbo_dirty;
-   boolean cb_dirty;
 
    void (*copy_data)(struct nouveau_context *,
                      struct nouveau_bo *dst, unsigned, unsigned,