glsl: use dual slot helper in the linker code.
authorDave Airlie <airlied@redhat.com>
Wed, 9 Dec 2015 06:06:47 +0000 (16:06 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sat, 19 Dec 2015 00:59:55 +0000 (11:59 +1100)
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/glsl/linker.cpp

index b39c7f5d3ab7d7b6cdb84a4005b8ab3867520fad..46d3d00d7fabed237edc9714cccd58125d293e56 100644 (file)
@@ -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;