[Mesa-dev] A few NIR compile time optimisations

Marek Olšák maraeo at gmail.com
Tue Feb 19 23:49:04 UTC 2019


st_link_shader takes 55% of CPU time with NIR, and 9% with TGSI.

nir_validate_shader 49%

nir_validate_shader is overused. It doesn't make sense even in debug builds.

Marek

On Wed, Feb 13, 2019 at 4:26 AM Connor Abbott <cwabbott0 at gmail.com> wrote:

> Reviewed-by: Connor Abbott <cwabbott0 at gmail.com>
>
> I'm a bit surprised it's that slow... do you have any idea what's going
> on? I've made flamegraphs in the past on i965 to see where most of the time
> is spent.
>
> On Wed, Feb 13, 2019 at 9:00 AM Timothy Arceri <tarceri at itsqueeze.com>
> wrote:
>
>> Currently the radeonsi NIR backend takes around twice the time
>> of the tgsi backend to compile shader-db. These are some first
>> steps at reducing the overhead of NIR.
>>
>> This series reduces the compile time of a Deus Ex program I was
>> profiling by around 5%.
>>
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190219/e64deec9/attachment.html>


More information about the mesa-dev mailing list