nir: fix bit of cargo-culting in lower_idiv
authorRob Clark <robclark@freedesktop.org>
Fri, 10 Apr 2015 20:39:30 +0000 (16:39 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 11 Apr 2015 14:43:16 +0000 (10:43 -0400)
commitf59613561694cc4a4b81db8a73f8afe893dbacac
tree6fb62515559c3a8f3b9aafd771e9b0dbd359816d
parent58add76791459e023f82eab973719c71779dae9d
nir: fix bit of cargo-culting in lower_idiv

I guess I was looking too much at how lower_system_values worked when
writing lower_idiv.

Since ttn wasn't emitting load_var for sysvals and the only drivers
using lower_idiv were using ttn, I think nothing was broken as a result.
But might as well fix this before it becomes a problem.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_lower_idiv.c