diff options
author | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2016-05-01 21:12:48 -0700 |
---|---|---|
committer | Kristian Høgsberg Kristensen <krh@bitplanet.net> | 2016-05-24 10:14:56 -0700 |
commit | 29921ee987d8f2cc315c846dea958ab19b986ecd (patch) | |
tree | eab66cf34ea8b0c0588141014edb032edf17068b /src/compiler/nir/nir_print.c | |
parent | 39b7b8b90631a661166906f70879f6f6e11bc591 (diff) | |
download | external_mesa3d-29921ee987d8f2cc315c846dea958ab19b986ecd.zip external_mesa3d-29921ee987d8f2cc315c846dea958ab19b986ecd.tar.gz external_mesa3d-29921ee987d8f2cc315c846dea958ab19b986ecd.tar.bz2 |
nir: Add new 'plane' texture source type
This will be used to select the plane to sample from for planar
textures.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-rw-r--r-- | src/compiler/nir/nir_print.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 021f0d6..36176ec 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -717,6 +717,9 @@ print_tex_instr(nir_tex_instr *instr, print_state *state) case nir_tex_src_sampler_offset: fprintf(fp, "(sampler_offset)"); break; + case nir_tex_src_plane: + fprintf(fp, "(plane)"); + break; default: unreachable("Invalid texture source type"); |