[Mesa-dev] [PATCH (9.1)] Revert "r600g: re-enable handling of DISCARD_RANGE, improving performance"
Andreas Boll
andreas.boll.dev at gmail.com
Sun Feb 17 09:25:32 PST 2013
This reverts commit 1eedebc65b02130ef7a27062a1ed67972a317a08.
Until we have a proper fix disable DISCARD_RANGE for now.
It fixes the garbled ui in TF2.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58042
Cc: Marek Olšák <maraeo at gmail.com>
---
src/gallium/drivers/r600/r600_buffer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c
index 6df0d91..82630af 100644
--- a/src/gallium/drivers/r600/r600_buffer.c
+++ b/src/gallium/drivers/r600/r600_buffer.c
@@ -137,6 +137,7 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx,
r600_set_constants_dirty_if_bound(rctx, rbuffer);
}
}
+#if 0 /* this is broken (see Bug 53130) */
else if ((usage & PIPE_TRANSFER_DISCARD_RANGE) &&
!(usage & PIPE_TRANSFER_UNSYNCHRONIZED) &&
rctx->screen->has_streamout &&
@@ -161,6 +162,7 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx,
}
}
}
+#endif
/* mmap and synchronize with rings */
data = r600_buffer_mmap_sync_with_rings(rctx, rbuffer, usage);
--
1.7.10.4
More information about the mesa-dev
mailing list