summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_constant_expression.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-04-01 17:44:16 -0700
committerMatt Turner <mattst88@gmail.com>2015-04-06 10:13:22 -0700
commit5c71cf85315320fcb8b1cc2178f7f2d76b3beeef (patch)
tree49f622775d1363496846d95df9cfdc480e3c0f03 /src/glsl/ir_constant_expression.cpp
parent490621f0f2814ff1713c74f030acaff3f19cf8fb (diff)
downloadexternal_mesa3d-5c71cf85315320fcb8b1cc2178f7f2d76b3beeef.zip
external_mesa3d-5c71cf85315320fcb8b1cc2178f7f2d76b3beeef.tar.gz
external_mesa3d-5c71cf85315320fcb8b1cc2178f7f2d76b3beeef.tar.bz2
glsl: Remove never used sin_reduced/cos_reduced.
These were added in commit f2616e56, presumably in preparation for translating ARB vp/fp into GLSL IR. That never happened, and neither did a lowering pass that actually generated these instructions. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/glsl/ir_constant_expression.cpp')
-rw-r--r--src/glsl/ir_constant_expression.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp
index ecebc3c..171b8e9 100644
--- a/src/glsl/ir_constant_expression.cpp
+++ b/src/glsl/ir_constant_expression.cpp
@@ -781,7 +781,6 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
break;
case ir_unop_sin:
- case ir_unop_sin_reduced:
assert(op[0]->type->base_type == GLSL_TYPE_FLOAT);
for (unsigned c = 0; c < op[0]->type->components(); c++) {
data.f[c] = sinf(op[0]->value.f[c]);
@@ -789,7 +788,6 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
break;
case ir_unop_cos:
- case ir_unop_cos_reduced:
assert(op[0]->type->base_type == GLSL_TYPE_FLOAT);
for (unsigned c = 0; c < op[0]->type->components(); c++) {
data.f[c] = cosf(op[0]->value.f[c]);