st/mesa: pin driver threads to a fixed CCX when glthread is enabled
authorMarek Olšák <marek.olsak@amd.com>
Tue, 13 Nov 2018 00:09:25 +0000 (19:09 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 21 Nov 2018 02:18:43 +0000 (21:18 -0500)
commitbc5adc27b5e52d27eca6a61ad1e049b160570c98
tree19871642ee9cd58ca2af7a542cbf0ca61d87e43d
parent48f2160936f8a803960891f8ab0958e0b26e7dc3
st/mesa: pin driver threads to a fixed CCX when glthread is enabled

radeonsi has 3 driver threads (glthread, gallium, winsys), other drivers
may have 2 (glthread, gallium), so it makes sense to pin them to a random
CCX and keep that irrespective of the app thread.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/util/u_helpers.c
src/gallium/auxiliary/util/u_helpers.h
src/mesa/state_tracker/st_manager.c