diff options
author | Maxence Le Dore <[email protected]> | 2012-12-24 00:57:37 +0100 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2013-10-03 07:55:54 +1300 |
commit | 18002d9eda56801794cf471b30cfb9cd79fd167b (patch) | |
tree | 996f09ad1d51f934b512f59bb9c0a98ea0b73ed1 /src/glsl/ir.h | |
parent | d3575622b7897c88c62e4f57341c196eb913c960 (diff) |
glsl: add texture gather changes
V2 [Chris Forbes]:
- Add new pattern, fixup parameter reading.
V3: Rebase onto new builtins machinery
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index 6c5630b0965..885837a7ab7 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -1559,7 +1559,8 @@ enum ir_texture_opcode { ir_txf, /**< Texel fetch with explicit LOD */ ir_txf_ms, /**< Multisample texture fetch */ ir_txs, /**< Texture size */ - ir_lod /**< Texture lod query */ + ir_lod, /**< Texture lod query */ + ir_tg4 /**< Texture gather */ }; @@ -1584,6 +1585,7 @@ enum ir_texture_opcode { * <type> <sampler> <coordinate> <sample_index>) * (txs <type> <sampler> <lod>) * (lod <type> <sampler> <coordinate>) + * (tg4 <type> <sampler> <coordinate> 0) */ class ir_texture : public ir_rvalue { public: |