diff options
author | Rob Clark <[email protected]> | 2018-05-15 18:27:18 -0400 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-06-22 20:54:00 -0700 |
commit | a6ebbbc594b1cac4b880d9da051bad9d70eeb2d8 (patch) | |
tree | e98830f6d6912c83a6d3297ced2bd7aa74b40b1d /src/compiler/glsl/gl_nir.h | |
parent | 3891c1906fa017d82a4bae5e4db2ef09b02f89e9 (diff) |
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 <[email protected]>
Acked-by: Rob Clark <[email protected]>
Acked-by: Bas Nieuwenhuizen <[email protected]>
Acked-by: Dave Airlie <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/glsl/gl_nir.h')
-rw-r--r-- | src/compiler/glsl/gl_nir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/gl_nir.h b/src/compiler/glsl/gl_nir.h index 59d5f65e659..17cc5da38ac 100644 --- a/src/compiler/glsl/gl_nir.h +++ b/src/compiler/glsl/gl_nir.h @@ -37,6 +37,8 @@ bool gl_nir_lower_atomics(nir_shader *shader, bool gl_nir_lower_samplers(nir_shader *shader, const struct gl_shader_program *shader_program); +bool gl_nir_lower_samplers_legacy(nir_shader *shader, + const struct gl_shader_program *shader_program); bool gl_nir_lower_samplers_as_deref(nir_shader *shader, const struct gl_shader_program *shader_program); |