Mesa (staging/18.3): st/mesa: disable L3 thread pinning

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 13 17:39:29 UTC 2018


Module: Mesa
Branch: staging/18.3
Commit: 75003666bef9281b9d7dcecd155d7d82781aa517
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=75003666bef9281b9d7dcecd155d7d82781aa517

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon Nov 12 15:43:58 2018 -0500

st/mesa: disable L3 thread pinning

This implementation can have massive drawbacks.

Cc: 18.3 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Edmondo Tommasina <edmondo.tommasina at gmail.com>
(cherry picked from commit e0c7114eb3c19d4c2653f661698a6baa3bc9bedf)

---

 src/mesa/state_tracker/st_manager.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index ceb48dd490..776b563e50 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -1069,15 +1069,6 @@ st_api_make_current(struct st_api *stapi, struct st_context_iface *stctxi,
        * of the referenced drawables no longer exist.
        */
       st_framebuffers_purge(st);
-
-      /* Notify the driver that the context thread may have been changed.
-       * This should pin all driver threads to a specific L3 cache for optimal
-       * performance on AMD Zen CPUs.
-       */
-      struct glthread_state *glthread = st->ctx->GLThread;
-      thrd_t *upper_thread = glthread ? &glthread->queue.threads[0] : NULL;
-
-      util_context_thread_changed(st->pipe, upper_thread);
    }
    else {
       ret = _mesa_make_current(NULL, NULL, NULL);




More information about the mesa-commit mailing list