History log of /external/mesa3d/src/glsl/linker.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/linker.h
f609cf782ab5e90ddf045dc4b0da8cebf99be0d1 27-Apr-2012 Eric Anholt <eric@anholt.net> glsl: Merge the lists of uniform blocks into the linked shader program.

This attempts error-checking, but the layout isn't done yet.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glsl/linker.h
a2e623054b5d8eafebc7499efe93e4bceae16ead 06-Apr-2012 Ian Romanick <ian.d.romanick@intel.com> glsl: Set initial values for uniforms in the linker

v2: Fix handling of arrays-of-structure. Thanks to Eric Anholt for
pointing this out.

v3: Minor comment change based on feedback from Ken.

Fixes piglit glsl-1.20/execution/uniform-initializer/fs-structure-array
and glsl-1.20/execution/uniform-initializer/vs-structure-array.

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/linker.h
8292b7419d0405e94a5ea270ba710d20f0eb071f 10-Feb-2012 Kenneth Graunke <kenneth@whitecape.org> ralloc: Make rewrite_tail increase "start" by the new text's length.

Both callers of rewrite_tail immediately compute the new total string
length by adding the (known) length of the existing string plus the
length of the newly appended text. Unfortunately, callers generally
won't know the length of the new text, as it's printf-formatted.

Since ralloc already computes this length, it makes sense to add it in
and save the caller the effort. This simplifies both existing callers,
but more importantly, will allow for cheap-appending in the next commit.

v2: The link_uniforms code needs both the old and new length.
Apply the obvious fix (which sadly makes it less of a cleanup).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> [v1]
Acked-by: José Fonseca <jfonseca@vmware.com> [v1]
/external/mesa3d/src/glsl/linker.h
07731ed1692eb5d72110b3c5b693f37e581e3809 18-Oct-2011 Ian Romanick <ian.d.romanick@intel.com> linker: Track uniform locations to new tracking structures

This is just the infrastructure and the code. It's not used yet.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
/external/mesa3d/src/glsl/linker.h
f6ee7bce65697ea3c6a78a000a49af901ba77c1d 12-Oct-2011 Ian Romanick <ian.d.romanick@intel.com> linker: Make invalidate_variable_locations available outside the compilation unit

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
/external/mesa3d/src/glsl/linker.h
747e59c7590bd11a4964c6ca12c5ff0dbb6282f2 25-Oct-2011 Ian Romanick <ian.d.romanick@intel.com> linker: Add uniform_field_visitor class to process leaf fields of a uniform

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/linker.h
379a32f42ebca9feeb024633f7774661619fd62e 28-Jul-2011 Ian Romanick <ian.d.romanick@intel.com> linker: Make linker_{error,warning} generally available

linker_warning is a new function. It's identical to linker_error
except that it doesn't set LinkStatus=false and it prepends "warning: "
on messages instead of "error: ".

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glsl/linker.h
586e741ac1fa222d041990b265e820f5aa11344d 28-Jul-2011 Ian Romanick <ian.d.romanick@intel.com> linker: Make linker_error set LinkStatus to false

Remove the other places that set LinkStatus to false since they all
immediately follow a call to linker_error. The function linker_error
was previously known as linker_error_printf. The name was changed
because it may seem surprising that a printf function will set an
error flag.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glsl/linker.h
8fe8a814b0c746f0f655a67f8755f9dee858d230 14-Jul-2010 Ian Romanick <ian.d.romanick@intel.com> linker: First bits of intrastage, intershader function linking

This handles the easy case of linking a function in a different
compilation unit that doesn't call any functions or reference any
global variables.
/external/mesa3d/src/glsl/linker.h