Mesa (main): radeonsi: improve viewperf snx performance by forcing staging for VRAM buffers
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Aug 9 12:35:33 UTC 2021
Module: Mesa
Branch: main
Commit: da538eb368d713aa9935198d7a1b6ab3bb802ed2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=da538eb368d713aa9935198d7a1b6ab3bb802ed2
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Aug 6 00:54:14 2021 -0400
radeonsi: improve viewperf snx performance by forcing staging for VRAM buffers
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12257>
---
src/gallium/drivers/radeonsi/si_buffer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/radeonsi/si_buffer.c
index c62ddcc7e99..8ade9694b49 100644
--- a/src/gallium/drivers/radeonsi/si_buffer.c
+++ b/src/gallium/drivers/radeonsi/si_buffer.c
@@ -162,7 +162,8 @@ void si_init_resource_fields(struct si_screen *sscreen, struct si_resource *res,
* This tweak improves performance for viewperf.
*/
const unsigned min_size = 8196; /* tuned to minimize mapped VRAM */
- const unsigned max_staging_uploads = 1; /* number of uploads before mapping directly */
+ /* Number of uploads before mapping directly. A very high number helps display lists (snx). */
+ const unsigned max_staging_uploads = 1000000;
res->max_forced_staging_uploads = res->b.max_forced_staging_uploads =
sscreen->info.has_dedicated_vram && size >= min_size ? max_staging_uploads : 0;
More information about the mesa-commit
mailing list