diff options
author | Dave Airlie <[email protected]> | 2016-06-09 07:02:07 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-06-09 07:37:19 +1000 |
commit | 35616a9e0ef0511ebb77e7076c00f2eeb248933a (patch) | |
tree | b106e81cc031a2ae6ae1a7f9b9cb9d36fcbe874d /src/compiler/glsl/link_varyings.cpp | |
parent | a82b8e8b36cdaf8fd95a38b8df4215bead0e3ae7 (diff) |
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_varyings.cpp')
-rw-r--r-- | src/compiler/glsl/link_varyings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp index 5a5adc0a410..99fb3fcdc00 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 */ |