diff options
author | Ilia Mirkin <[email protected]> | 2015-08-27 23:05:03 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-09-10 17:38:33 -0400 |
commit | 1807a08e4f35b014f2a80d1e88dd74a9f096d7a5 (patch) | |
tree | 469f60dc891635720cc21c4f946bece136a44bf0 /src/glsl/nir/nir.h | |
parent | f9052914e979228d28502a7f7953f98ff4731f99 (diff) |
nir: add nir_texop_texture_samples and convert from glsl
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 2ba7731c1ff..a93ff11f01b 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -944,7 +944,8 @@ typedef enum { nir_texop_txs, /**< Texture size */ nir_texop_lod, /**< Texture lod query */ nir_texop_tg4, /**< Texture gather */ - nir_texop_query_levels /**< Texture levels query */ + nir_texop_query_levels, /**< Texture levels query */ + nir_texop_texture_samples, /**< Texture samples query */ } nir_texop; typedef struct { @@ -1016,6 +1017,7 @@ nir_tex_instr_dest_size(nir_tex_instr *instr) case nir_texop_lod: return 2; + case nir_texop_texture_samples: case nir_texop_query_levels: return 1; |