Timothy Arceri <[email protected]> writes: > All of the current gallium nir driver use these optimisations but > they do so in their backends. Having these called in the backend > only can cause a number of problems: > > - Shader compile times are greater because the opts need to do > significant passes over all shader variants. > - The shader cache is partially defeated due to the significant > optimisation passes over variants. > - We might miss out on nir linking optimisation opportunities. > > Adding these passes to st_nir_opts() alleviates these problems.
Maybe some driver gaining NIR input would want vector math instead of scalar, but if all of our drivers agree at the moment, then let's put it here. Reviewed-by: Eric Anholt <[email protected]>
signature.asc
Description: PGP signature
_______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
