nir/lower_tex: Simplify lower_gradient logic
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 11 Oct 2018 17:56:21 +0000 (12:56 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Dec 2018 03:26:23 +0000 (21:26 -0600)
commit5a968ae473a11bd074281c5d1c4825a295e1dd13
tree95294c52b2fd02805bcc1f042fed192609aaec8a
parentcaeffe75492ef3bf8eaa5dae114ada626a9b7cbd
nir/lower_tex: Simplify lower_gradient logic

Instead of having to call two different lower_gradient functions based
on whether or not it's a cube, just make lower_gradient handle cubes.
This significantly simplifies some of the logic.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir_lower_tex.c