aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-06-09 07:07:42 +1000
committerDave Airlie <[email protected]>2016-06-09 07:37:47 +1000
commit152f5eea621c2c6bb50b82d703b4816263c7f294 (patch)
tree49a1290cf76a088088ab5fedc813a9e2d8f3b604 /src/mesa/program
parent2df46519e4aeb330df30890c2702d96891c18964 (diff)
mesa: use new 64-bit checks instead of explicit double checks.
This just moves to the new interfaces in advance of int64. Reviewed-by: Ilia Mirkin <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index b10648ba9d9..3a5f05837af 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2407,7 +2407,7 @@ add_uniform_to_shader::visit_field(const glsl_type *type, const char *name,
if (type->is_vector() || type->is_scalar()) {
size = type->vector_elements;
- if (type->is_double())
+ if (type->is_64bit())
size *= 2;
} else {
size = type_size(type) * 4;