summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ast_to_hir.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/ast_to_hir.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/ast_to_hir.cpp')
-rw-r--r--src/compiler/glsl/ast_to_hir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index b7192b2..1c751f6 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -3393,7 +3393,7 @@ apply_layout_qualifier_to_variable(const struct ast_type_qualifier *qual,
(qual_component + components - 1) > 3) {
_mesa_glsl_error(loc, state, "component overflow (%u > 3)",
(qual_component + components - 1));
- } else if (qual_component == 1 && type->is_double()) {
+ } else if (qual_component == 1 && type->is_64bit()) {
/* We don't bother checking for 3 as it should be caught by the
* overflow check above.
*/
@@ -6843,7 +6843,7 @@ ast_process_struct_or_iface_block_members(exec_list *instructions,
}
} else {
if (layout && layout->flags.q.explicit_xfb_offset) {
- unsigned align = field_type->is_double() ? 8 : 4;
+ unsigned align = field_type->is_64bit() ? 8 : 4;
fields[i].offset = glsl_align(block_xfb_offset, align);
block_xfb_offset +=
MAX2(xfb_stride, (int) (4 * field_type->component_slots()));