diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2015-11-17 17:09:09 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2015-11-19 20:17:16 -0800 |
commit | 457bb290efc162ea3c7c51a820ab7cf88a4efb8d (patch) | |
tree | 33bfa15fcb89fae6ff9783adb33ef8da313c4598 /src/glsl/nir/nir.h | |
parent | 06c56f443aa1850b2651df3636c42a8740cff847 (diff) | |
download | external_mesa3d-457bb290efc162ea3c7c51a820ab7cf88a4efb8d.zip external_mesa3d-457bb290efc162ea3c7c51a820ab7cf88a4efb8d.tar.gz external_mesa3d-457bb290efc162ea3c7c51a820ab7cf88a4efb8d.tar.bz2 |
nir: Add nir_texop_samples_identical opcode
This is the NIR analog to GLSL IR ir_samples_identical.
v2: Don't add the second nir_tex_src_ms_index parameter. Suggested by
Ken and Jason.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 09eb712..087b453 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -956,6 +956,9 @@ typedef enum { nir_texop_tg4, /**< Texture gather */ nir_texop_query_levels, /**< Texture levels query */ nir_texop_texture_samples, /**< Texture samples query */ + nir_texop_samples_identical, /**< Query whether all samples are definitely + * identical. + */ } nir_texop; typedef struct { @@ -1029,6 +1032,7 @@ nir_tex_instr_dest_size(nir_tex_instr *instr) case nir_texop_texture_samples: case nir_texop_query_levels: + case nir_texop_samples_identical: return 1; default: |