mesa/src
Juan A. Suarez Romero 3c9096eea4 glsl/linker: dvec3/dvec4 consume twice input vertex attributes
From the GL 4.5 core spec, section 11.1.1 (Vertex Attributes):

"A program with more than the value of MAX_VERTEX_ATTRIBS
active attribute variables may fail to link, unless
device-dependent optimizations are able to make the program
fit within available hardware resources. For the purposes
of this test, attribute variables of the type dvec3, dvec4,
dmat2x3, dmat2x4, dmat3, dmat3x4, dmat4x3, and dmat4 may
count as consuming twice as many attributes as equivalent
single-precision types. While these types use the same number
of generic attributes as their single-precision equivalents,
implementations are permitted to consume two single-precision
vectors of internal storage for each three- or four-component
double-precision vector."

This commits makes dvec3, dvec4, dmat2x3, dmat2x4, dmat3, dmat3x4,
dmat4x3 and dmat4 consume twice as many attributes as equivalent
single-precision types.

v3: count doubles as consuming two attributes (Dave Airlie)
v4: make reference to spec (Michael Schellenberger Costa)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>

Signed-off-by: Antia Puentes <apuentes@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
2016-05-23 10:48:07 +02:00
..
compiler glsl/linker: dvec3/dvec4 consume twice input vertex attributes 2016-05-23 10:48:07 +02:00
egl egl/dri2: Don't check return result of mtx_unlock(). 2016-05-18 11:09:37 -07:00
gallium nv30: don't assert when running out of registers 2016-05-22 22:57:18 -04:00
gbm automake: drop "EGL_" from HAVE_EGL_PLATFORM_WAYLAND 2016-05-01 08:38:05 +01:00
getopt
glx dri3: Check for dummyContext to see if the glx_context is valid 2016-04-27 13:03:34 +01:00
gtest
hgl
intel anv/nir_apply_pipeline_layout: Pass the nir_src from the nir_tex_src 2016-05-21 19:57:31 +02:00
loader loader: add a libdrm case for loader_get_device_name_for_fd 2016-04-21 14:41:41 +01:00
mapi glapi/gen: Copy some GL 1.0 enum details into ARB_viewport_array 2016-05-17 15:04:56 -04:00
mesa i965/fs: do not depend on std140 alignment rules for UBO loads 2016-05-23 08:56:57 +02:00
util util: Add ATTRIBUTE_RETURNS_NONNULL. 2016-05-16 11:06:15 -07:00
Makefile.am automake: tweak SUBDIR reorder and comment it 2016-05-01 08:38:05 +01:00
SConscript glsl: move to compiler/ 2016-01-26 16:08:33 +00:00