projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nir/spirv: pull out logic for getting builtin locations
[mesa.git]
/
src
/
glsl
/
opt_constant_propagation.cpp
diff --git
a/src/glsl/opt_constant_propagation.cpp
b/src/glsl/opt_constant_propagation.cpp
index c334e127606fd1a9c128430198dfbf557db07d70..90cc0c89b659127033c86ea7412e3223157b10fd 100644
(file)
--- 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;