summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_buffer.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-02-10 13:18:13 +0100
committerBen Skeggs <[email protected]>2012-04-14 02:56:32 +1000
commita3fee8fc86168f0709a164d9d983b40a9b671b3c (patch)
tree967bd85158a24fa5f6b8f5d64e43520e9f935a80 /src/gallium/drivers/nouveau/nouveau_buffer.c
parent66c7dc5688bcd5ff9c596f4c410aee574ea2428a (diff)
nouveau: remove automatic buffer migration heuristics
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_buffer.c')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_buffer.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c b/src/gallium/drivers/nouveau/nouveau_buffer.c
index f822625af90..f3cef8c288f 100644
--- a/src/gallium/drivers/nouveau/nouveau_buffer.c
+++ b/src/gallium/drivers/nouveau/nouveau_buffer.c
@@ -200,9 +200,6 @@ nouveau_buffer_transfer_destroy(struct pipe_context *pipe,
struct nouveau_context *nv = nouveau_context(pipe);
if (xfr->base.usage & PIPE_TRANSFER_WRITE) {
- /* writing is worse */
- nouveau_buffer_adjust_score(nv, buf, -5000);
-
if (buf->domain == NOUVEAU_BO_VRAM) {
nouveau_buffer_upload(nv, buf, transfer->box.x, transfer->box.width);
}
@@ -257,8 +254,6 @@ nouveau_buffer_transfer_map(struct pipe_context *pipe,
uint32_t offset = xfr->base.box.x;
uint32_t flags;
- nouveau_buffer_adjust_score(nouveau_context(pipe), buf, -250);
-
if (buf->domain != NOUVEAU_BO_GART)
return buf->data + offset;