[Mesa-dev] [PATCH 3/4] radeonsi: use multi-threaded compilation in debug contexts

Marek Olšák maraeo at gmail.com
Sat Jul 9 15:54:09 UTC 2016


On Fri, Jul 8, 2016 at 10:58 AM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> On 07.07.2016 23:49, Marek Olšák wrote:
>>
>> On Thu, Jul 7, 2016 at 9:39 AM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
>>>
>>> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>>>
>>> We only have to stay single-threaded when debug output must be
>>> synchronous.
>>> This yields better parallelism in shader-db runs for me.
>>
>>
>> shader-db should already get the CPU load to 100% for all cores. It
>> doesn't seem to possible to get better parallelism than that.
>
>
> I know, though for some reason it didn't always get it for me. I haven't
> bothered to look into it so far though.

Well, I know for sure that the in-memory shader cache had decreased
shader-db parallelism to 1-2 loaded cores because of the global mutex.
This fixed it:

https://cgit.freedesktop.org/mesa/mesa/commit/?id=84824935cf28b72bac9f73787aadf20b95dea230

Marek


More information about the mesa-dev mailing list