History log of /external/mesa3d/src/glsl/glsl_types.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ffb2d430596258aaeaf3b7ae7f295036ea4094d5 23-Jul-2012 Eric Anholt <eric@anholt.net> glsl: Fix calculation of std140 offset alignment for mat2s.

We were getting the base offset of a vec2, not of a vec2[2] like the quoted
spec text says we should.

v2: Fix swapped then/else cases.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/glsl_types.cpp
8ab5842a6d992956ee365c0e0232c6e6b907863e 02-May-2012 Eric Anholt <eric@anholt.net> glsl: Assign locations for uniforms in UBOs using the std140 rules.

Fixes piglit layout-std140.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glsl/glsl_types.cpp
659855252107debc47dbac8ec7985e1024d7ab5c 26-Mar-2012 Eric Anholt <eric@anholt.net> glsl: Add support for parsing [iu]samplerBuffer types in GLSL 1.40.

The samplerBuffer type will be undefined in !glsl 1.40, and the
keyword is marked as reserved. The [iu]samplerBuffer types are not
marked as reserved pre-1.40, so they don't have separate tokens and
fall through to normal type handling.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/glsl_types.cpp
0225a15b6907b51dbbc9602a1f0cb07ee809f496 15-Mar-2012 Eric Anholt <eric@anholt.net> glsl: Don't include the deprecated structure types in GLSL 1.40.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/glsl_types.cpp
3645b77b7162913b504a49fc42d785fde27df3f3 12-Mar-2012 Eric Anholt <eric@anholt.net> glsl: Add support for integer sampler2DRect variants in GLSL 1.40.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/glsl_types.cpp
c5ff9a8b9e3cafb3764e620add2900656c59606b 08-Mar-2012 Eric Anholt <eric@anholt.net> glsl: Hook up the current GLSL 1.30 types and builtins for 1.40.

This gets a basic #version 140 shader compiling.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/glsl_types.cpp
e9bcf4d56b8ae128204fb95693c6f81a6b724052 17-Jan-2012 Vinson Lee <vlee@freedesktop.org> glsl: Fix 'control reaches end of non-void function' warning.

Fix this GCC warning on non-debug builds.
glsl_types.cpp: In member function 'gl_texture_index
glsl_type::sampler_index() const':
glsl_types.cpp:157: warning: control reaches end of non-void function

NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/glsl_types.cpp
32be81de39f7548e353afabf1215b0ea7c7b0916 14-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glsl: Add glsl_type::sampler_index

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/glsl_types.cpp
2903816aadb281716b6c59a5a48aeadb84a08f50 23-Oct-2011 Chia-I Wu <olv@lunarg.com> glsl: add support for GL_OES_EGL_image_external

This extension introduces a new sampler type: samplerExternalOES.
texture2D (and texture2DProj) can be used to do a texture look up in an
external texture.

Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glsl/glsl_types.cpp
fa0066ae2b2d304065ee8d93d9b5ecc8b457425a 26-Oct-2011 Paul Berry <stereotype441@gmail.com> mesa: Add glsl_type::get_scalar_type() function.

This function is similar to get_base_type(), but when called on
arrays, it returns the scalar type composing the array. For example,
glsl_type(vec4[]) => float_type.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/glsl_types.cpp
200e4972c1579e8dfaa6f11eee2a7e54baad4852 27-Jul-2011 Chad Versace <chad@chad-versace.us> glsl: Add method glsl_type::can_implicitly_convert_to()

This method checks if a source type is identical to or can be implicitly
converted to a target type according to the GLSL 1.20 spec, Section 4.1.10
Implicit Conversions.

The following commits use the method for a bugfix:
glsl: Fix implicit conversions in non-constructor function calls
glsl: Fix implicit conversions in array constructors

Note: This is a candidate for the 7.10 and 7.11 branches.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad@chad-versace.us>
/external/mesa3d/src/glsl/glsl_types.cpp
ddc1c96390b685bb95f7431e862c3a64fcefa085 12-Jul-2011 Paul Berry <stereotype441@gmail.com> glsl: Move type_contains_sampler() into glsl_type for later reuse.

The new location, as a member function of glsl_type, is more
consistent with queries like is_sampler(), is_boolean(), is_float(),
etc. Placing the function inside glsl_type also makes it available to
any code that uses glsl_types.
/external/mesa3d/src/glsl/glsl_types.cpp
0a163cf56d1e412629cb802480998a982a47bb3c 26-Feb-2011 Kenneth Graunke <kenneth@whitecape.org> glsl: Enable GL_OES_texture_3D extension for ES2.
/external/mesa3d/src/glsl/glsl_types.cpp
497baf4e4a6a0a2f247c7bfb9bf69a2b93c2c19f 10-Feb-2011 Ian Romanick <ian.d.romanick@intel.com> Use C-style system headers in C++ code to avoid issues with std:: namespace
/external/mesa3d/src/glsl/glsl_types.cpp
d3073f58c17d8675a2ecdd5dfa83e5520c78e1a8 21-Jan-2011 Kenneth Graunke <kenneth@whitecape.org> Convert everything from the talloc API to the ralloc API.
/external/mesa3d/src/glsl/glsl_types.cpp
5c229e5fbd8ffa573ab2c1225f182036792a75af 13-Dec-2010 Kenneth Graunke <kenneth@whitecape.org> glsl: Expose a public glsl_type::void_type const pointer.

This is analogous to glsl_type::int_type and all the others.
/external/mesa3d/src/glsl/glsl_types.cpp
5dc74e9c77de7d30ac08c25f224ffa93006d8d7c 11-Nov-2010 Kenneth Graunke <kenneth@whitecape.org> glsl: Convert glsl_type::base_type from #define'd constants to an enum.

This is nice because printing type->base_type in GDB will now give you a
readable name instead of a number.
/external/mesa3d/src/glsl/glsl_types.cpp
76deef138ee25ab57b4716aef41ce0c94081f20a 07-Aug-2010 Kenneth Graunke <kenneth@whitecape.org> glsl: Split out types that are in 1.10 but not GLSL ES 1.00.
/external/mesa3d/src/glsl/glsl_types.cpp
4d6221f90df9d04e5edcdddb3b6f76c0cb175421 01-Sep-2010 Ian Romanick <ian.d.romanick@intel.com> glsl2: Remove unused method glsl_type::generate_constructor
/external/mesa3d/src/glsl/glsl_types.cpp
e9c7ceed27f6811ad1cae46c93ce9bc3fb3668d8 22-Aug-2010 Kenneth Graunke <kenneth@whitecape.org> glsl: Use a single shared namespace in the symbol table.

As of 1.20, variable names, function names, and structure type names all
share a single namespace, and should conflict with one another in the
same scope, or hide each other in nested scopes.

However, in 1.10, variables and functions can share the same name in the
same scope. Structure types, however, conflict with/hide both.

Fixes piglit tests redeclaration-06.vert, redeclaration-11.vert,
redeclaration-19.vert, and struct-05.vert.
/external/mesa3d/src/glsl/glsl_types.cpp
e5df3cc286fa2607897944d478081014929b38ec 24-Aug-2010 Vinson Lee <vlee@vmware.com> glsl: Silence unused variable warning.

The variable is used but only in the body of an assert.
/external/mesa3d/src/glsl/glsl_types.cpp
bfd7c9ac228c7ed8aec04c3b3aa33f40ee00b035 23-Aug-2010 Chia-I Wu <olv@lunarg.com> glsl: Include main/core.h.

Make glsl include only main/core.h from core mesa.
/external/mesa3d/src/glsl/glsl_types.cpp
8dd619ba6825e673a357336b69c96accaa96a7ef 24-Aug-2010 Eric Anholt <eric@anholt.net> glsl: Rely on talloc_autofree_context() instead of trying to free on our own.

Because the static types talloc their names at dlopen time,
talloc_freeing the types at DRI driver screen teardown means that if
the screen gets brought back up again, the names will point at freed
memory. talloc_autofree_context() exists to do just what we want
here: Free memory referenced across the program's lifetime so that we
avoid noise in memory leak checkers.

Fixes: bug #29722 (assertion failure in unigine).
/external/mesa3d/src/glsl/glsl_types.cpp
6dad5a4e8d5c4ea90bb9342e329defb9c8eb2092 13-Aug-2010 Ian Romanick <ian.d.romanick@intel.com> glsl2: Include imports.h to get snprintf wrapper for MSVC

Signed-off-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/glsl/glsl_types.cpp
261bbc011d11ab9e390cd5fe9f5151821eefaffa 13-Aug-2010 Ian Romanick <ian.d.romanick@intel.com> glsl2: Use Elements from main/compiler.h instead of open-coding
/external/mesa3d/src/glsl/glsl_types.cpp
9f9386d22aca8d14d1b1e6d4de9b24dcb183ca10 11-Aug-2010 Brian Paul <brianp@vmware.com> glsl2: added casts to silence warnings
/external/mesa3d/src/glsl/glsl_types.cpp
3adce986c498539d9a5d8db95926e66e1315da03 09-Aug-2010 Aras Pranckevicius <aras@unity3d.com> glsl2: do not use __retval name; two underscores is reserved word according to GLSL spec (and Win7 ATI drivers do complain about that)
/external/mesa3d/src/glsl/glsl_types.cpp
0a09d679ca97dcb634a939df2110a90c9504e2ec 06-Aug-2010 Ian Romanick <ian.d.romanick@intel.com> glsl_type: Don't have two versions of a type with the same name

Previously some sampler types were duplicated in GLSL 1.30 and
GL_EXT_texture_array. This resulted in not being able to find the
built-in sampler functions when the extension was used. When the
built-in functions were compiled, they bound to the 1.30 version.
This caused a type mismatch when trying to find the function. It also
resulted in a confusing error message:

0:0(0): error: no matching function for call to `texture2DArray(sampler2DArray, vec3)'
0:0(0): error: candidates are: vec4 texture2DArray(sampler2DArray, vec3)

0:0(0): error: vec4 texture2DArray(sampler2DArray, vec3, float)
/external/mesa3d/src/glsl/glsl_types.cpp
ad98aa9d93646600cc95b3e45a40eec26f18988a 04-Aug-2010 Kenneth Graunke <kenneth@whitecape.org> glsl2: Remove uses of deprecated TALLOC_CTX type.
/external/mesa3d/src/glsl/glsl_types.cpp
42f3e7b6d7b42218feafe85a2328d8ce86fcce93 02-Aug-2010 Ian Romanick <ian.d.romanick@intel.com> glsl_type: Use string key for array type hash
/external/mesa3d/src/glsl/glsl_types.cpp
cf41c8a0d8dac52bafb7c3e85171566c492786ab 02-Aug-2010 Ian Romanick <ian.d.romanick@intel.com> glsl2: Make glsl_types::ctx private again
/external/mesa3d/src/glsl/glsl_types.cpp
31747155ea3a24190277b125bd188ac8689af719 28-Jul-2010 Aras Pranckevicius <aras@unity3d.com> glsl2: Give the path within src/mesa/ for headers instead of relying on -I.
/external/mesa3d/src/glsl/glsl_types.cpp
85cd64ee170e578317a6aa41d824314550a318ac 27-Jul-2010 Eric Anholt <eric@anholt.net> glsl2: Talloc type names.

Otherwise, we end up losing structure names after compile time, and
dumping IR often ends up reporting some other mysterious string.
/external/mesa3d/src/glsl/glsl_types.cpp
f38d15b80d4e4c8ecb7a76087cdc49835f0aa271 21-Jul-2010 Ian Romanick <ian.d.romanick@intel.com> glsl2: glsl_type has its own talloc context, don't pass one in
/external/mesa3d/src/glsl/glsl_types.cpp
7e2aa91507a5883e33473e0a94215ee3985baad1 20-Jul-2010 Ian Romanick <ian.d.romanick@intel.com> glsl2: Add and use new variable mode ir_var_temporary

This is quite a large patch because breaking it into smaller pieces
would result in the tree being intermitently broken. The big changes
are:

* Add the ir_var_temporary variable mode

* Change the ir_variable constructor to take the mode as a
parameter and correctly specify the mode for all ir_varables.

* Change the linker to not cross validate ir_var_temporary
variables.

* Change the linker to pull all ir_var_temporary variables from
global scope into 'main'.
/external/mesa3d/src/glsl/glsl_types.cpp
21b0dbd79937e9d6787f045af7d60d4b6c649ec8 21-Jul-2010 Eric Anholt <eric@anholt.net> glsl2: talloc the glsl_struct_field[] we use to look up structure types.

Since the types are singletons across the lifetime of the compiler,
repeatedly compiling a program with the same structure type defined
would drop a copy of the array on the floor per compile.

This is a bit tricky because the static GLSL types are not called with
the talloc-based new, so we have to use the global type context, which
may not be initialized yet.
/external/mesa3d/src/glsl/glsl_types.cpp
b6e92ad7da9d4f00607caca90bd0b8853623a493 21-Jul-2010 Eric Anholt <eric@anholt.net> glsl2: Don't claim a match on structure types with different field names.

We regularly do lookups on the field names of the structure to find
the types within the struct, so returning a structure type with bad
names will lead to lots of error types being found.
/external/mesa3d/src/glsl/glsl_types.cpp
288733f6001a2148d6689587d9a05e6909e88a61 12-Jul-2010 Eric Anholt <eric@anholt.net> glsl2: Store the gl_type of the array's element type in the array.

Fixes glsl-fs-uniform-array-1, glsl-vs-uniform-array-1, and the -2
tests on software.
/external/mesa3d/src/glsl/glsl_types.cpp
efc15f862b08a9f035c06a79bc43848cca740372 28-Jun-2010 Ian Romanick <ian.d.romanick@intel.com> glsl_type: Add _mesa_glsl_release_types to release all type related storage
/external/mesa3d/src/glsl/glsl_types.cpp
e1374d48ded09dba576f5a2b86c3d11984d1f7c4 28-Jun-2010 Ian Romanick <ian.d.romanick@intel.com> glsl_type: All glsl_type objects live in their own talloc context
/external/mesa3d/src/glsl/glsl_types.cpp
72e627d02a78cbf40c861384293e355588fd0977 28-Jun-2010 Ian Romanick <ian.d.romanick@intel.com> glsl_type: Record type constructors are private
/external/mesa3d/src/glsl/glsl_types.cpp
49e3577b91f44013746f7a3db411e7041b7d899e 28-Jun-2010 Ian Romanick <ian.d.romanick@intel.com> glsl_type: Add get_record_instance method
/external/mesa3d/src/glsl/glsl_types.cpp
31bcce04b1f9c8c5e33370e26a3a9d6e60049aa8 28-Jun-2010 Ian Romanick <ian.d.romanick@intel.com> glsl_type: Vector, matrix, and sampler type constructors are private
/external/mesa3d/src/glsl/glsl_types.cpp
e94642eb0d99ff7f6cdaee31ed4f5f29bdabd6f7 28-Jun-2010 Ian Romanick <ian.d.romanick@intel.com> glsl_type: Make all static objects be class private
/external/mesa3d/src/glsl/glsl_types.cpp
12681610f54b40324e9e342dc25976c223614b81 26-Jun-2010 Ian Romanick <ian.d.romanick@intel.com> glsl_type: Remove vector and matrix constructor generators

All scalar, vector, and matrix constructors are generated in-line
during AST-to-HIR translation. There is no longer any need to
generate function versions of the constructors.
/external/mesa3d/src/glsl/glsl_types.cpp
3d6012303c3ce24c75d209267e6914f706d025c5 25-Jun-2010 Eric Anholt <eric@anholt.net> glsl2: Wrap includes of C interfaces with extern "C".
/external/mesa3d/src/glsl/glsl_types.cpp
29285882676388aacff123e8bdf025904abf8ea9 25-Jun-2010 Eric Anholt <eric@anholt.net> glsl2: Move the compiler to the subdirectory it will live in in Mesa.
/external/mesa3d/src/glsl/glsl_types.cpp