Module: Mesa Branch: master Commit: 29921ee987d8f2cc315c846dea958ab19b986ecd URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=29921ee987d8f2cc315c846dea958ab19b986ecd
Author: Kristian Høgsberg Kristensen <kristian.h.kristen...@intel.com> Date: Sun May 1 21:12:48 2016 -0700 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.jus...@intel.com> Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net> --- src/compiler/nir/nir.h | 1 + src/compiler/nir/nir_print.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 78913d3..ace6fbb 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1074,6 +1074,7 @@ typedef enum { nir_tex_src_ddy, nir_tex_src_texture_offset, /* < dynamically uniform indirect offset */ nir_tex_src_sampler_offset, /* < dynamically uniform indirect offset */ + nir_tex_src_plane, /* < selects plane for planar textures */ nir_num_tex_src_types } nir_tex_src_type; 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"); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit