nir: Remove the const_offset from nir_tex_instr
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 Feb 2016 22:51:28 +0000 (14:51 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 11 Feb 2016 00:33:50 +0000 (16:33 -0800)
commit8750299a420af76cebd3067f6f603eacde06ae06
tree9668b5b42f3029de2472090f6e7d9f0e676b8164
parent70dff4a55e767de8b9ce10f055b94ebb1f6a9755
nir: Remove the const_offset from nir_tex_instr

When NIR was originally drafted, there was no easy way to determine if
something was constant or not.  The result was that we had lots of
special-casing for constant values such as this.  Now that load_const
instructions are SSA-only, it's really easy to find constants and this
isn't really needed anymore.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Rob Clark <robclark@gmail.com>
src/compiler/nir/glsl_to_nir.cpp
src/compiler/nir/nir.h
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_instr_set.c
src/compiler/nir/nir_print.c
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp