[Mesa-dev] [PATCH 11/11] ac/radv: using tls to store llvm related info and speed up compiles (v3)

Dave Airlie airlied at gmail.com
Tue Jul 3 03:33:27 UTC 2018


On 30 June 2018 at 14:11, Marek Olšák <maraeo at gmail.com> wrote:
> I wonder if we can somehow make the TLS magic apply to RADV only.
> Radeonsi can do it without TLS. Then, the RADV-specific TLS code can be
> moved to RADV, and other code (if any) can be shared.
>
> It doesn't make much sense to do the TLS initialization in
> ac_llvm_compiler_init. It could be done in compile_to_memory_buffer
> and the fail path there could be removed.

compile_to_memory_buffer only covers one place we have a pass with
reinit, we also want to store the passmgr in the thread data for radv.

Dave.


More information about the mesa-dev mailing list