nir/lower_tex: Use nir_format_srgb_to_linear
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 13 Jul 2018 01:23:34 +0000 (18:23 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 13 Jul 2018 21:02:18 +0000 (14:02 -0700)
commita3150c1d06ae7766c3d3fe3b33432e55c3c7527e
treee3a36acedd5764ba712d9a84dd56786e5c6f978b
parentb52d79514cad56c341235a903c689cf24d6bb95f
nir/lower_tex: Use nir_format_srgb_to_linear

A while ago, we added a bunch of format conversion helpers; we should
use them instead of hand-rolling sRGB conversions.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir_lower_tex.c