summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/link_varyings.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_varyings.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_varyings.cpp')
-rw-r--r--src/compiler/glsl/link_varyings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp
index 5a5adc0..99fb3fc 100644
--- a/src/compiler/glsl/link_varyings.cpp
+++ b/src/compiler/glsl/link_varyings.cpp
@@ -403,7 +403,7 @@ cross_validate_outputs_to_inputs(struct gl_shader_program *prog,
*/
last_comp = 4;
} else {
- unsigned dmul = var->type->is_double() ? 2 : 1;
+ unsigned dmul = var->type->is_64bit() ? 2 : 1;
last_comp = var->data.location_frac +
var->type->without_array()->vector_elements * dmul;
}
@@ -708,7 +708,7 @@ tfeedback_decl::assign_location(struct gl_context *ctx,
+ this->matched_candidate->toplevel_var->data.location_frac
+ this->matched_candidate->offset;
const unsigned dmul =
- this->matched_candidate->type->without_array()->is_double() ? 2 : 1;
+ this->matched_candidate->type->without_array()->is_64bit() ? 2 : 1;
if (this->matched_candidate->type->is_array()) {
/* Array variable */