Re: [Mesa-dev] [PATCH 2/2] nir: Expose nir_remove_unused_io_vars().

2018-10-02 Thread Timothy Arceri
On 29/9/18 5:52 am, Eric Anholt wrote: For gallium drivers where you want to do some linking at variant compile time, you don't have the other producer/consumer shader on hand to modify. By exposing the inner function, the driver can have the used varyings in the compiled shader cache key and

[Mesa-dev] [PATCH 2/2] nir: Expose nir_remove_unused_io_vars().

2018-09-28 Thread Eric Anholt
For gallium drivers where you want to do some linking at variant compile time, you don't have the other producer/consumer shader on hand to modify. By exposing the inner function, the driver can have the used varyings in the compiled shader cache key and still do linking. This is also useful for