summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2015-12-09 16:06:47 +1000
committerTimothy Arceri <[email protected]>2015-12-19 11:59:55 +1100
commit69ea66231e807eee8e6748caeeb72324036a8b6d (patch)
tree140847d6ee7f7e3593f3f3cfd27b8b8e49133185
parentd97b060e6f305ce4ad050881944404b920c86edf (diff)
glsl: use dual slot helper in the linker code.
Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r--src/glsl/linker.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index b39c7f5d3ab..46d3d00d7fa 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -2603,17 +2603,8 @@ assign_attribute_or_color_locations(gl_shader_program *prog,
* issue (3) of the GL_ARB_vertex_attrib_64bit behavior, this
* is optional behavior, but it seems preferable.
*/
- const glsl_type *type = var->type->without_array();
- if (type == glsl_type::dvec3_type ||
- type == glsl_type::dvec4_type ||
- type == glsl_type::dmat2x3_type ||
- type == glsl_type::dmat2x4_type ||
- type == glsl_type::dmat3_type ||
- type == glsl_type::dmat3x4_type ||
- type == glsl_type::dmat4x3_type ||
- type == glsl_type::dmat4_type) {
+ if (var->type->without_array()->is_dual_slot_double())
double_storage_locations |= (use_mask << attr);
- }
}
continue;