summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_constant_propagation.cpp
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2015-02-05 11:58:05 +0200
committerIlia Mirkin <[email protected]>2015-02-19 00:28:34 -0500
commit8609b5371641b303fac0a928376b344dbd7096fa (patch)
tree381ccac818de3d7b7a5a3e71c8de6a42ea56784b /src/glsl/opt_constant_propagation.cpp
parent41e9adfd83a35d3c147768b80b6b4c0b10c3a379 (diff)
glsl: Add support doubles in optimization passes
Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/glsl/opt_constant_propagation.cpp')
-rw-r--r--src/glsl/opt_constant_propagation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/opt_constant_propagation.cpp b/src/glsl/opt_constant_propagation.cpp
index c334e127606..90cc0c89b65 100644
--- a/src/glsl/opt_constant_propagation.cpp
+++ b/src/glsl/opt_constant_propagation.cpp
@@ -194,6 +194,9 @@ ir_constant_propagation_visitor::handle_rvalue(ir_rvalue **rvalue)
case GLSL_TYPE_FLOAT:
data.f[i] = found->constant->value.f[rhs_channel];
break;
+ case GLSL_TYPE_DOUBLE:
+ data.d[i] = found->constant->value.d[rhs_channel];
+ break;
case GLSL_TYPE_INT:
data.i[i] = found->constant->value.i[rhs_channel];
break;