summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/link_uniform_initializers.cpp
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-06-09 07:02:07 +1000
committerDave Airlie <airlied@redhat.com>2016-06-09 07:37:19 +1000
commit35616a9e0ef0511ebb77e7076c00f2eeb248933a (patch)
treeb106e81cc031a2ae6ae1a7f9b9cb9d36fcbe874d /src/compiler/glsl/link_uniform_initializers.cpp
parenta82b8e8b36cdaf8fd95a38b8df4215bead0e3ae7 (diff)
downloadexternal_mesa3d-35616a9e0ef0511ebb77e7076c00f2eeb248933a.zip
external_mesa3d-35616a9e0ef0511ebb77e7076c00f2eeb248933a.tar.gz
external_mesa3d-35616a9e0ef0511ebb77e7076c00f2eeb248933a.tar.bz2
glsl: use new interfaces for 64-bit checks.
This is just prep work for int64 support, changing places where 64-bit matters no doubles. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/compiler/glsl/link_uniform_initializers.cpp')
-rw-r--r--src/compiler/glsl/link_uniform_initializers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/link_uniform_initializers.cpp b/src/compiler/glsl/link_uniform_initializers.cpp
index bf6d394..acf8222 100644
--- a/src/compiler/glsl/link_uniform_initializers.cpp
+++ b/src/compiler/glsl/link_uniform_initializers.cpp
@@ -222,7 +222,7 @@ set_uniform_initializer(void *mem_ctx, gl_shader_program *prog,
val->array_elements[0]->type->base_type;
const unsigned int elements = val->array_elements[0]->type->components();
unsigned int idx = 0;
- unsigned dmul = (base_type == GLSL_TYPE_DOUBLE) ? 2 : 1;
+ unsigned dmul = glsl_base_type_is_64bit(base_type) ? 2 : 1;
assert(val->type->length >= storage->array_elements);
for (unsigned int i = 0; i < storage->array_elements; i++) {