diff options
author | Chris Forbes <[email protected]> | 2013-10-05 18:26:56 +1300 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2013-10-06 11:12:29 +1300 |
commit | 88ee9bc9d1dd66ddb9721dc44574b8caaa26df70 (patch) | |
tree | 703eea9eaceab52cb3820145fe9cc2036bbafb1e /src/glsl/ir.h | |
parent | f93a63bfccf22b64d5f0886b25fce833babdab1c (diff) |
glsl: Add support for specifying the component in textureGather
ARB_gpu_shader5 introduces new variants of textureGather* which have an
explicit component selector, rather than relying purely on the sampler's
swizzle state.
This patch adds the GLSL plumbing for the extra parameter.
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index 37f79f44588..1a4a3a2e36b 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -1586,7 +1586,7 @@ enum ir_texture_opcode { * <type> <sampler> <coordinate> <sample_index>) * (txs <type> <sampler> <lod>) * (lod <type> <sampler> <coordinate>) - * (tg4 <type> <sampler> <coordinate> 0) + * (tg4 <type> <sampler> <coordinate> <offset> <component>) * (query_levels <type> <sampler>) */ class ir_texture : public ir_rvalue { @@ -1655,6 +1655,7 @@ public: ir_rvalue *lod; /**< Floating point LOD */ ir_rvalue *bias; /**< Floating point LOD bias */ ir_rvalue *sample_index; /**< MSAA sample index */ + ir_rvalue *component; /**< Gather component selector */ struct { ir_rvalue *dPdx; /**< Partial derivative of coordinate wrt X */ ir_rvalue *dPdy; /**< Partial derivative of coordinate wrt Y */ |