nir/prog: Don't double-insert the fog-coord variable
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Oct 2015 16:20:24 +0000 (09:20 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Oct 2015 17:48:21 +0000 (10:48 -0700)
commit5f106153f55219d5092f9ba7c019316ea69baef4
treea59c240cce63b0fda055381435a62d0174ac9d18
parentb705005584730cff75f5bbe057832d8b1106124a
nir/prog: Don't double-insert the fog-coord variable

nir_variable_create already inserts it in the right list for us so
inserting it again causes a linked list corruption.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/program/prog_to_nir.c