Mesa (main): winsys/amdgpu: increase the BO hash list size

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 29 07:13:33 UTC 2021


Module: Mesa
Branch: main
Commit: f6d072b2f0e4be7844b0d74f91152ccd77bb24c1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6d072b2f0e4be7844b0d74f91152ccd77bb24c1

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Oct 22 02:04:18 2021 -0400

winsys/amdgpu: increase the BO hash list size

This decreases overhead inside amdgpu_cs_add_buffer by 40%
for viewperf2020/catia.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13478>

---

 src/gallium/winsys/amdgpu/drm/amdgpu_cs.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h
index d2f0a524b5b..794d13bd00b 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h
@@ -124,7 +124,8 @@ struct amdgpu_cs_context {
    bool secure;
 };
 
-#define BUFFER_HASHLIST_SIZE 4096
+/* This high limit is needed for viewperf2020/catia. */
+#define BUFFER_HASHLIST_SIZE 32768
 
 struct amdgpu_cs {
    struct amdgpu_ib main; /* must be first because this is inherited */



More information about the mesa-commit mailing list