nir: Get rid of nir_constant_data
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 Nov 2016 06:19:28 +0000 (22:19 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Dec 2016 18:53:32 +0000 (10:53 -0800)
commit19a541f496aace95d6660ed7e216fecc8be2e49d
tree5ce74da718bdf4c831135ba290ec781b8c0b67db
parentc45d84ad8349d0c69893458d6c58eb5f6f1609c4
nir: Get rid of nir_constant_data

This has bothered me for about as long as NIR has been around.  Why do we
have two different unions for constants?  No good reason other than one of
them is a direct port from GLSL IR.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_print.c
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_variables.c