nir/lower_samplers: split out _legacy version for deref chains
authorRob Clark <robdclark@gmail.com>
Tue, 15 May 2018 22:27:18 +0000 (18:27 -0400)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:54:00 +0000 (20:54 -0700)
commita6ebbbc594b1cac4b880d9da051bad9d70eeb2d8
treee98830f6d6912c83a6d3297ced2bd7aa74b40b1d
parent3891c1906fa017d82a4bae5e4db2ef09b02f89e9
nir/lower_samplers: split out _legacy version for deref chains

To simplify the transition, and make things bisectable, split out a
legacy copy or lower_samplers.  This way the i965 and gallium drivers
can independently switch over to deref instructions.

Since the lower_samplers_as_deref pass is only used by gallium drivers,
it can be converted in lock-step with moving the lower_deref_instrs
pass, and so does not need a corresponding _legacy clone.

This legacy pass will be removed in a future commit.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/Makefile.sources
src/compiler/glsl/gl_nir.h
src/compiler/glsl/gl_nir_lower_samplers_legacy.c [new file with mode: 0644]
src/compiler/glsl/meson.build
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
src/mesa/state_tracker/st_glsl_to_nir.cpp