st/mesa: call st_nir_opts for linked shaders only once
authorMarek Olšák <marek.olsak@amd.com>
Tue, 8 Oct 2019 02:15:01 +0000 (22:15 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 18 Oct 2019 00:31:34 +0000 (20:31 -0400)
commit7908e82f60fbe40d66fb10d9085afe6802a85b33
tree4e7b4e91de675ff73f666184c8e20945c1eea941
parent92252219d384a9ffdf2619f8228449963cd81872
st/mesa: call st_nir_opts for linked shaders only once

The removed st_nir_opts calls are mostly redundant.

There is an improvement with shader-db on radeonsi:

Before:
    real 1m54.047s
    user 28m37.857s
    sys  0m7.573s

After:
    real 1m52.012s
    user 28m3.412s
    sys  0m7.808s

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp