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)
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

index c2f08dff37526d4f588db18b1fabe048500dd36c..7b68032078303e71855e0dc7f139bdfd0fe7d32e 100644 (file)
@@ -152,6 +152,4 @@ nir_lower_idiv(nir_shader *shader)
       if (overload->impl)
          convert_impl(overload->impl);
    }
-
-   exec_list_make_empty(&shader->system_values);
 }