mesa/src
Ian Romanick bb47a4d081 glsl: Reject row_major and column_major on non-matrix types
About both row_major and column_major layout qualifiers, the GLSL spec
says:

    "It only affects the layout of matrices."

However, the OpenGL ES 3.0 conformance tests have taken this to mean it
is an error use it elsewhere.  This seems logical given that
'layout(row_major) vec4 foo' is probably not what the programmer meant.

The only catch is dealing with structures that contain matrices.  Layout
qualifiers cannot be applied directly to fields of structures, so the
only way to affect the layout of the fields is to apply a qualifier to
the structure declaration itself.  There is ongoing debate about this
within Khronos, and it seems to be settling in favor of allowing the
qualifiers on structures.  I light of this, I have chosen to allow the
qualifiers on structures but emit a warning since the usage may not be
portable.

Fixes gles3conform test
uniform_buffer_object_layouts_not_for_matrix_type and causes no
regressions.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-01-18 17:35:32 -08:00
..
egl egl/dri2: Fix typo in the previous commit 2013-01-15 14:19:04 -08:00
gallium r600g/llvm: tgsi to llvm emits store.swizzle intrinsic for vs/fs output 2013-01-18 20:34:26 +00:00
gbm Clean up .gitignore files 2013-01-10 22:01:31 +01:00
getopt
glsl glsl: Reject row_major and column_major on non-matrix types 2013-01-18 17:35:32 -08:00
glx tests: AM_CPPFLAGS must include $(top_srcdir) instead of $(top_builddir). 2013-01-13 12:38:38 +01:00
gtest gtest: Build it only for 'make check'. 2013-01-13 12:38:44 +01:00
mapi Fix mapi code generator for out-of-tree build 2013-01-16 19:53:01 +00:00
mesa mesa: Skip updating texgen when not doing fixed function. 2013-01-18 13:03:46 -08:00
Makefile.am automake: Convert src/Makefile to automake. 2012-06-11 09:28:00 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00