st/mesa: disable L3 thread pinning
authorMarek Olšák <marek.olsak@amd.com>
Mon, 12 Nov 2018 20:43:58 +0000 (15:43 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 12 Nov 2018 21:18:15 +0000 (16:18 -0500)
This implementation can have massive drawbacks.

Cc: 18.3 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
src/mesa/state_tracker/st_manager.c

index 690d5bc23136f288e2bafb4454a824ed20aadbee..076ad42646d0a174828d1f3b27d2084213ce2746 100644 (file)
@@ -1072,15 +1072,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);