diff options
author | Ilia Mirkin <[email protected]> | 2014-04-30 02:08:52 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-05-02 12:01:35 -0400 |
commit | b0d02db7e02d3007bd5635278fbcd11d84c914e5 (patch) | |
tree | e27e57e36688580b9a9ee9b42990c05c2ce4de50 /src/gallium/drivers/nouveau | |
parent | 1baf77dbe89e58c83287aa1662d64bafc727d565 (diff) |
nouveau: remove cb_dirty, it's never used
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_buffer.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_context.h | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c b/src/gallium/drivers/nouveau/nouveau_buffer.c index e308ff40caa..904e2cce4c9 100644 --- a/src/gallium/drivers/nouveau/nouveau_buffer.c +++ b/src/gallium/drivers/nouveau/nouveau_buffer.c @@ -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, diff --git a/src/gallium/drivers/nouveau/nouveau_context.h b/src/gallium/drivers/nouveau/nouveau_context.h index c8d9d841d6e..14608d33c52 100644 --- a/src/gallium/drivers/nouveau/nouveau_context.h +++ b/src/gallium/drivers/nouveau/nouveau_context.h @@ -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, |