iris: Fix ALT mode regressions from shader cache
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 21 May 2019 23:10:21 +0000 (16:10 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 21 May 2019 23:58:54 +0000 (16:58 -0700)
commit6dc1c2d8bdbcb75795e73ee08e56a2d9c4a6b784
tree0f441ba227e5dfd9876069e61e73769bb5864a3f
parentd6053bf2a170a0fec6d232fda097d2f35f0e9eae
iris: Fix ALT mode regressions from shader cache

We were checking this based on nir->info.name, but with the shader
cache enabled, nir_strip throws out the name, causing us to use IEEE
mode for ARB programs.

gl-1.0-spot-light regressed because it wants ALT mode for 0^0 behavior.

Fixes: dc5dc727d59 iris: Serialize the NIR to a blob we can use for shader cache purposes.
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_program.c