diff options
author | Matt Turner <[email protected]> | 2014-03-02 10:34:45 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-03-18 23:20:29 -0700 |
commit | c049dd4396d1639859810d6124faa863dae61d1b (patch) | |
tree | 047633ec813c5f55e9f2e56397e1d0e932d2edca /src/glsl/ir_builder.h | |
parent | 6cbc64c3cb416fadad6e80042e24cd1e1b682897 (diff) |
glsl: Allow dot() on scalars, and throw out dotlike().
In all uses of dotlike() we're writing generic code that operates on 1-4
component vectors. That our IR requires ir_binop_dot expressions'
operands to be 2+ component vectors is an implementation detail that's
not important when implementing built-in functions with dot(), which is
defined for scalar floats in GLSL.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/ir_builder.h')
-rw-r--r-- | src/glsl/ir_builder.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h index f00e6f3b38c..108b53a5e47 100644 --- a/src/glsl/ir_builder.h +++ b/src/glsl/ir_builder.h @@ -139,7 +139,6 @@ ir_expression *carry(operand a, operand b); ir_expression *borrow(operand a, operand b); ir_expression *round_even(operand a); ir_expression *dot(operand a, operand b); -ir_expression *dotlike(operand a, operand b); ir_expression *clamp(operand a, operand b, operand c); ir_expression *saturate(operand a); ir_expression *abs(operand a); |