nir/lower_io: Make variable location assignment a manual operation
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 18 Mar 2015 22:04:15 +0000 (15:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 19 Mar 2015 20:18:39 +0000 (13:18 -0700)
commit25db44a84597960a6aea6b252bcf2c3d7e17fc74
tree81f3bda89f306267ae3034a06f80eb09b15a4bfb
parent639115123efe7f71d432e24b1719adda7d23e97e
nir/lower_io: Make variable location assignment a manual operation

Previously, we just assigned variable locations in nir_lower_io.  Now, we
force the user to assign variable locations for us.  This gives the backend
a bit more control over where variables are placed.

v2: Rename from _packed to _scalar

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_io.c
src/mesa/drivers/dri/i965/brw_fs_nir.cpp