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/lower_packed_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/lower_packed_varyings.cpp')
-rw-r--r-- | src/compiler/glsl/lower_packed_varyings.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/glsl/lower_packed_varyings.cpp b/src/compiler/glsl/lower_packed_varyings.cpp index 41edadad149..130b8f66ed6 100644 --- a/src/compiler/glsl/lower_packed_varyings.cpp +++ b/src/compiler/glsl/lower_packed_varyings.cpp @@ -432,7 +432,7 @@ lower_packed_varyings_visitor::lower_rvalue(ir_rvalue *rvalue, bool gs_input_toplevel, unsigned vertex_index) { - unsigned dmul = rvalue->type->is_double() ? 2 : 1; + unsigned dmul = rvalue->type->is_64bit() ? 2 : 1; /* When gs_input_toplevel is set, we should be looking at a geometry shader * input array. */ @@ -480,7 +480,7 @@ lower_packed_varyings_visitor::lower_rvalue(ir_rvalue *rvalue, char right_swizzle_name[4] = { 0, 0, 0, 0 }; left_components = 4 - fine_location % 4; - if (rvalue->type->is_double()) { + if (rvalue->type->is_64bit()) { /* We might actually end up with 0 left components! */ left_components /= 2; } @@ -676,7 +676,7 @@ lower_packed_varyings_visitor::needs_lowering(ir_variable *var) return false; type = type->without_array(); - if (type->vector_elements == 4 && !type->is_double()) + if (type->vector_elements == 4 && !type->is_64bit()) return false; return true; } |