nir/lower_tex: fix number of components in replace_gradient_with_lod()
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 14 Dec 2016 09:05:44 +0000 (10:05 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 15 Dec 2016 07:34:55 +0000 (08:34 +0100)
commit47351b843a8213e931bbd70cb6a2501b87cb525e
tree9cef2315413b61abaa447b829c7a3ae264d9748b
parenta5502a721fd30fde4f5dc71421494329052f805b
nir/lower_tex: fix number of components in replace_gradient_with_lod()

We should make the dest in the textureLod() operation have the same number
of components as the destination in the original textureGrad()

Fixes regression in ES3-CTS.gtf.GL3Tests.shadow

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99072
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_lower_tex.c