History log of /external/mesa3d/src/mesa/main/shaderapi.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b7af6550b1201f8883823c9fece85fedf1a49a92 23-Nov-2012 Matt Turner <mattst88@gmail.com> mesa: Return 0 for XFB_VARYING_MAX_LENGTH if no varyings

v2: Perform this count the same way as elsewhere in this file, per
Brian Paul's review.

Fixes part of es3conform's transform_feedback_init_defaults test.
NOTE: This is a candidate for the stable branches.
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 7c2060f0f08134e8c4ea00af94f59c18f30d05e2)
/external/mesa3d/src/mesa/main/shaderapi.c
b63f8f7906e4bc8a074cee8dbdbcb1c66e90448f 20-Sep-2012 Kenneth Graunke <kenneth@whitecape.org> mesa: Don't flatten IF statements by default.

MaxIfDepth of 0 means "flatten all the time", not "never flatten".
This is only desirable on hardware that can't support control flow;
software rasterization and most hardware drivers want this.

This alters behavior for swrast as well as i915. Tested on i915.

NOTE: This is a candidate for stable release branches.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 56705cd36bf48d5050ac9ec10d91fd097a577f42)
/external/mesa3d/src/mesa/main/shaderapi.c
0fb12a40e48ca804653a51e2f5ff1acba13e703e 05-Sep-2012 Ian Romanick <ian.d.romanick@intel.com> mesa: Don't set shaderapi dispatch pointers for many things in ES2 or core

v2: Allow GL_ARB_shader_objects functions in core profile because we
still expose the extension string there. Don't allow
glBindFragDataLocation in GLES3 because it's not part of that API.
Based (mostly) on review comments from Eric Anholt.

NOTE: This is a candidate for the 9.0 branch

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit be66cf950e01d217b5341f8e56676dc5bf81ca47)
/external/mesa3d/src/mesa/main/shaderapi.c
86f29cf7d0817f1b6c9a9665c044ce36822b23b4 25-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> mesa/es: Validate glCreateShader targets in Mesa code rather than the ES wrapper

v2: Add proper core-profile filtering.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
b042f7a1ff905a7136557f35f368166526fab9ed 25-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> mesa/es: Validate glGetProgramiv pnames in Mesa code rather than the ES wrapper

v2: Add proper core-profile and GLES3 filtering.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
1a200b68cd57e2aee419e45ac8f1ce32e5cf8951 25-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> mesa: Filter glGetProgramiv pnames based on available extensions

Previously you could always glGetProgramiv one of the transform feedback
or geometry shader enums even if the extension wasn't supported.

In addtion, this reverts part of bda6ad27. I think the hunks involving
GL_PROGRAM_BINARY_LENGTH_OES were spurious. Mesa has no support for any
other part of GL_OES_get_program_binary.

v2: Remove redundant return in get_programiv based on review feedback
from Matt Turner.

v3: Correctly handle UBO related enums.

v4: Emit the bad enum in the _mesa_error call based on review feedback
from Brian Paul.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
4070036259555a7791f1bc6a3a161c5a62500a21 14-Jun-2012 Eric Anholt <eric@anholt.net> mesa: Add support for glGetProgramiv pnames for UBOs.

Fixes piglit ARB_uniform_buffer_object/getprogramiv.

v2: Add extension checks.
v3: Appease MSVC.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/shaderapi.c
c3bc41011f9ffe648b7dd4915c6202b776cd1ab4 19-Jul-2012 Kenneth Graunke <kenneth@whitecape.org> mesa: Prevent repeated glDeleteShader() from blowing away our refcounts.

Calling glDeleteShader() should mark shaders as pending for deletion,
but shouldn't decrement the refcount every time. Otherwise, repeated
glDeleteShader() is not safe.

This is particularly bad since glDeleteProgram() frees shaders: if you
first call glDeleteShader() on the shaders attached to the program (thus
decrementing the refcount), then called glDeleteProgram(), it would try
to free them again (decrementing the refcount another time), causing
a refcount > 0 assertion to fail.

Similar to commit d950a778.

NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/shaderapi.c
0161691f3518db310411c5f02c05aa639050f129 17-May-2012 Brian Paul <brianp@vmware.com> mesa: add GLSL_REPORT_ERRORS debug flag

If the MESA_GLSL env var contains "errors", GLSL compilation and
link errors will be reported to stderr.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/shaderapi.c
1c333745f3dc1e0304295684a8e77af45fe2b40e 16-May-2012 Brian Paul <brianp@vmware.com> mesa: add some comments on shaderapi.c functions
/external/mesa3d/src/mesa/main/shaderapi.c
ecc4c361a68da9b858e8f3762fb43f39fb7e2a0e 13-Apr-2012 Eric Anholt <eric@anholt.net> mesa: Remove dead _mesa_sizeof_glsl_type().

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
f8cf79936b42405a8366613b80e3bde21aadaa02 24-Mar-2012 Dave Airlie <airlied@redhat.com> mesa: add support for ARB_blend_func_extended (v4)

Add implementations of the two API functions,
Add a new strings to uint mapping for index bindings
Add the blending mode validation for SRC1 + SRC_ALPHA_SATURATE
Add get for MAX_DUAL_SOURCE_DRAW_BUFFERS

v2:
Add check in valid_to_render to address case in spec ERRORS.

v3:
Add index to ir.h so this patch compiles on its own
fixup comment

v4: fixup Brian's comments

The GLSL patch will setup the indices.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/shaderapi.c
9a548c27aa704236cc1d8a5d4ebf68cea9c5c99c 12-Jan-2012 Brian Paul <brianp@vmware.com> mesa: remove _mesa_ffs(), implement ffs() for non-GNU platforms

Call ffs() and ffsll() everywhere. Define our own ffs(), ffsll()
functions when the platform doesn't have them.

v2: remove #ifdef _WIN32, __IBMC__, __IBMCPP_ tests inside ffs()
implementation. The #else clause was recursive.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Alexander von Gluck <kallisti5@unixzen.com>
/external/mesa3d/src/mesa/main/shaderapi.c
fe1b38960b44135f6557a1e7a9fb5adc66d0edbb 12-Jan-2012 Brian Paul <brianp@vmware.com> mesa: include uniforms.h to silence warning, remove unused var
/external/mesa3d/src/mesa/main/shaderapi.c
195ee502c3196607e3a74075aefade9770a08a67 14-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Validate sampler settings using uniform storage

Rather than looking at the settings in individual assembly programs,
look at the settings in the top-level uniform values. The old code
was flawed because examining each shader stage in isolation could
allow inconsitent usage across stages (e.g., bind unit 0 to a
sampler2D in the vertex shader and sampler1DShadow in the fragment
shader).

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/mesa/main/shaderapi.c
b527dd65c830a2b008816cf390d5be906e29bb23 15-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Track fixed-function fragment shader as a shader

Previously the fixed-function fragment shader was tracked as a
gl_program. This means that it shows up in the driver as a Mesa IR
program instead of as a GLSL IR program. If a driver doesn't generate
Mesa IR from the GLSL IR, that program is empty. If the program is
empty there is either no rendering or a GPU hang.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
6bf5daf331f13ec9503615a2578247e72b7d2cbb 10-Jan-2012 Brian Paul <brianp@vmware.com> mesa: use STATIC_ASSERT in a few more places
/external/mesa3d/src/mesa/main/shaderapi.c
1979e22e13dd28553bcc67cc51e56684e6ee4768 30-Dec-2011 Paul Berry <stereotype441@gmail.com> mesa: Fix typos in transform feedback error messages.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/shaderapi.c
87c7e5fb876bf280d8693ef3b0f4351b1d2eec3b 21-Dec-2011 Paul Berry <stereotype441@gmail.com> mesa: Disable certain error checks when transform feedback is paused

When transform feedback is paused, it is legal to change programs or
to perform drawing operations using a drawing mode that doesn't match
the transform feedback mode.

Reviewed-by: Brian Paul <brianp@vmare.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
59012c31337f104aedfe69ca6d3cf784581df544 05-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Implement glGetFragDataLocation

Fixes piglit's getfragdatalocation test.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/shaderapi.c
4464a4b27b66f832acbe52b0a002c04415924c14 04-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Stub implementation of glBindFragDataLocation

This just validates the input parameters so far.

Fixes piglit's bindfragdata-invalid-parameters test.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/shaderapi.c
be4524aeed7fb67bdc45861d299d4c5ca99c4d6c 19-Oct-2011 Ian Romanick <ian.d.romanick@intel.com> Delete code made dead by previous uniform related patches

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
/external/mesa3d/src/mesa/main/shaderapi.c
719909698c67c287a393d2380278e7b7495ae018 19-Oct-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Rewrite the way uniforms are tracked and handled

Switch all of the code in ir_to_mesa, st_glsl_to_tgsi, glUniform*,
glGetUniform, glGetUniformLocation, and glGetActiveUniforms to use the
gl_uniform_storage structures in the gl_shader_program.

A couple of notes:

* Like most rewrite-the-world patches, this should be reviewed by
applying the patch and examining the modified functions.

* This leaves a lot of dead code around in linker.cpp and
uniform_query.cpp. This will be deleted in the next patches.

v2: Update the comment block (previously a FINISHME) in _mesa_uniform
about generating GL_INVALID_VALUE when an out-of-range sampler index
is specified.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
/external/mesa3d/src/mesa/main/shaderapi.c
0c87f16817ff0bf1f05e0d634944fd47b097faee 23-Oct-2011 Chia-I Wu <olv@lunarg.com> mesa: add support for GL_OES_EGL_image_external

This is an OpenGL ES specific extension. External textures are textures that
may be sampled from, but not be updated (no glTexSubImage* and etc.). The
image data are taken from an EGLImage.

Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/src/mesa/main/shaderapi.c
d950a778b7b86526d3968deee232444af64d8cf1 05-Oct-2011 Eric Anholt <eric@anholt.net> mesa: Prevent repeated glDeleteProgram() from blowing away our refcounts.

glDeleteProgram should only be able to remove the one refcount for the
user's reference to the program from the hash table (even though that
ref does live on in the hash table until the last other ref is
removed).

Fixes piglit ARB_shader_objects/delete-repeat.

Reviewed-by: Chad Versace <chad@chad-versace.us>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/shaderapi.c
5a4279f80d80fd30452ee6cc7cdfaffb12b1d605 21-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Simplify validate_shader_program after previous refactors

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
de772c402215b956ab3aa0875330fc1bf7cdf95b 21-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Use gl_shader_program::_LinkedShaders instead of FragmentProgram

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
39348bf79fb247eec895c93e52f23afe138be46a 20-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Use gl_shader_program::_LinkedShaders instead of GeometryProgram

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
010cc547ca8c1fb2107106b0ad0de560780ce9aa 20-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Use gl_shader_program::_LinkedShaders instead of VertexProgram

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
24409ba1968cc49cbde6a111464c91271babc68a 19-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Determine GL_ACTIVE_ATTRIBUTE_MAX_LENGTH by walking the GLSL IR.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
c097c63aa880e2b84e6b1d78a8808d42864f72fc 19-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Determine GL_ACTIVE_ATTRIBUTES by walking the GLSL IR.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
7a80c1bbc56b61525634f2b699f995e863dfade2 18-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Move _mesa_GetActiveAttribARB to shader_query.cpp

This just folds get_active_attrib into _mesa_GetActiveAttribARB
and moves the resulting function function to the other source file.
More changes are coming soon.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
2fd80534f01a5c684c47eff3946f412192ae3c0b 18-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Move _mesa_BindAttribLocationARB to shader_query.cpp

This just folds bind_attrib_location into _mesa_BindAttribLocationARB
and moves the resulting function function to the other source file.
More changes are coming soon.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
b7fa0d0727a3a9e1f64d3cfc7a0f157b35dec09e 16-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Move _mesa_GetAttribLocationARB to shader_query.cpp

This allows querying the linked shader itself rather than the Mesa IR.
This is the first step towards removing gl_program::Attributes.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
0045a674183b7716a2b64f3f81223e5a0ca5e074 27-Sep-2011 Eric Anholt <eric@anholt.net> mesa: Add missing _mesa_sizeof_glsl_type() for UNSIGNED_INT.

Somehow we managed to get the unsigned int vectors, but not scalar.
Fixes _mesa_problem complaints in piglit's uint tests.

Reviewed-by: Chad Versace <chad@chad-versace.us>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
db726b048e8858af226dbd0f0fda72d0be01394e 31-Jul-2011 Kenneth Graunke <kenneth@whitecape.org> mesa: In validate_program(), initialize errMsg for safety.

validate_program relies on validate_shader_program to fill in errMsg;
empirically, there exist cases where that doesn't happen.

While tracking those down may be worthwhile, initializing the string so
we don't try to ralloc_strdup random garbage also seems wise.

Fixes issues caught by valgrind while running some test case.

NOTE: This is a candidate for stable release branches.

Reviewed-by: Chad Versace <chad@chad-versace.us>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/shaderapi.c
47441956284b3e22df2ee8500667617d2880bfc8 04-Jul-2011 Henri Verbeet <hverbeet@gmail.com> mesa: Use the Elements macro for the sampler index assert in validate_samplers().

This is probably nicer if the array size ever changes.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/shaderapi.c
86adc2b29effb573c18eb0de7016cef605ab1edc 04-Jul-2011 Henri Verbeet <hverbeet@gmail.com> mesa: Allow sampling from units >= MAX_TEXTURE_UNITS in shaders.

The total number of units used by a shader is limited to MAX_TEXTURE_UNITS,
but the actual indices are only limited by MAX_COMBINED_TEXTURE_IMAGE_UNITS,
since they're shared between vertex and fragment shaders.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/shaderapi.c
230c71d9ee02f09255aed9fdeec941f548f36124 03-Jun-2011 Brian Paul <brianp@vmware.com> mesa: add some minor fixes for geometry shaders
/external/mesa3d/src/mesa/main/shaderapi.c
d69dc2e20346397f4734a0760554a51fb4fbb3c0 31-May-2011 Marek Olšák <maraeo@gmail.com> mesa: UseShaderProgramEXT and Uniform* shouldn't be allowed inside Begin/End

I couldn't find this being required by the spec.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/shaderapi.c
29ceeeba2004f71ccb91ce67f518dc1bf0ca6b17 29-May-2011 Marek Olšák <maraeo@gmail.com> mesa: forbid UseProgram to be called inside Begin/End

The spec doesn't state it should be an error, but. We have this piglit test
useprogram-inside-begin that passes with this commit. No idea what's correct.

NOTE: This is a candidate for the 7.10 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/shaderapi.c
179a88d52c00970a450c98bc7bc6179c32432a08 26-May-2011 Brian Paul <brianp@vmware.com> mesa: minor whitespace fixes
/external/mesa3d/src/mesa/main/shaderapi.c
2d2b546189a5d46ca0a433e52f8b8dce70d28992 01-May-2011 Marek Olšák <maraeo@gmail.com> mesa: remove set-but-unused variable in bind_attrib_location
/external/mesa3d/src/mesa/main/shaderapi.c
c1f4b2364f473910667ab97d6599619003639d39 06-Apr-2011 Brian Paul <brianp@vmware.com> mesa: TEXTURE_BUFFER fix-up

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=36033
/external/mesa3d/src/mesa/main/shaderapi.c
e0e94026a0648d6b33d6b7cf2b9b01429cf945e4 11-Mar-2011 Brian Paul <brianp@vmware.com> mesa: move location of some geometry program limits

The gl_program_constants struct is for limits that are applicable to
any/all shader stages. Move the geometry shader-only fields into the
gl_constants struct.
Remove redundant MaxGeometryUniformComponents field too.
/external/mesa3d/src/mesa/main/shaderapi.c
4293a12c7f0d4fd7ac3a278570f3fe55fc4433a6 11-Mar-2011 Brian Paul <brianp@vmware.com> mesa: call FLUSH_VERTICES() before deleting shaders, buffers, query objects

Need to flush rendering (or at least indicate that the rug might be getting
pulled out from underneath us) when a shader, buffer object or query object
is about to be deleted.

Also, this helps to tell the VBO module to unmap its current vertex buffer.
/external/mesa3d/src/mesa/main/shaderapi.c
2634e92dc0cecc364984bef9169a91bb96bafdcd 09-Feb-2011 Brian Paul <brianp@vmware.com> mesa: add/update VERBOSE_API logging
/external/mesa3d/src/mesa/main/shaderapi.c
d3073f58c17d8675a2ecdd5dfa83e5520c78e1a8 21-Jan-2011 Kenneth Graunke <kenneth@whitecape.org> Convert everything from the talloc API to the ralloc API.
/external/mesa3d/src/mesa/main/shaderapi.c
dde3270c19143b42a55a93e1e85bb24194462671 20-Jan-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Connect glGetShaderPrecisionFormat into the dispatch table
/external/mesa3d/src/mesa/main/shaderapi.c
3ee60a3558a3546b3c3a0a9732d384afcf02994a 19-Jan-2011 Brian Paul <brianp@vmware.com> mesa: implement glGetShaderPrecisionFormat()

Drivers should override the default range/precision info as needed.
No drivers do this yet.
/external/mesa3d/src/mesa/main/shaderapi.c
7b987578a94008e28daa5cacf68ee37566a27be8 15-Jan-2011 Eric Anholt <eric@anholt.net> mesa: Add actual support for glReleaseShaderCompiler from ES2.

Fixes no-op dispatch warning in piglit
arb_es2_compatibility-releaseshadercompiler.c.
/external/mesa3d/src/mesa/main/shaderapi.c
db61b9ce39bccc43140357652ceb78baaf2aea44 07-Jan-2011 Vinson Lee <vlee@vmware.com> mesa: Directly include mfeatures.h in files that perform feature tests.
/external/mesa3d/src/mesa/main/shaderapi.c
0117da40cd7edd3d165bb28569c289b37eca12b9 06-Jan-2011 Vinson Lee <vlee@vmware.com> mesa: Include mtypes.h in files that use gl_context struct.

Directly include mtypes.h if a file uses a gl_context struct. This
allows future removal of headers that are not strictly necessary but
indirectly include mtypes.h for a file.
/external/mesa3d/src/mesa/main/shaderapi.c
2900e56f9dda864f2c5b75d3db4dcc452dc91373 24-Nov-2010 Brian Paul <brianp@vmware.com> mesa: use gl_shader_type enum
/external/mesa3d/src/mesa/main/shaderapi.c
d348b0c72d41603178c0923e276869c7280904c7 06-Nov-2010 Eric Anholt <eric@anholt.net> mesa: Fix delayed state flagging for EXT_sso-related program changes.

Flushing the vertices after having already updated the state doesn't
do any good. Fixes useshaderprogram-flushverts-1. As a side effect,
by moving it to the right place we end up skipping no-op state changes
for traditional glUseProgram.
/external/mesa3d/src/mesa/main/shaderapi.c
a974949f3b586eee2bc8d6d97d3adb71796fe167 29-Oct-2010 Eric Anholt <eric@anholt.net> mesa: Make metaops use program refcounts instead of names.

Fixes failure on restoring state when the program was active but
deleted, and the name no longer exists.

Bug #31194
/external/mesa3d/src/mesa/main/shaderapi.c
53eca8d21627a82e88a81e2255654e81f9858221 29-Oct-2010 Brian Paul <brianp@vmware.com> mesa: plug in stubs for glBindFragDataLocation(), glGetFragDataLocation()
/external/mesa3d/src/mesa/main/shaderapi.c
84eba3ef71dfa822e5ff0463032cdd2e3515b888 13-Oct-2010 Ian Romanick <ian.d.romanick@intel.com> Track separate programs for each stage

The assumption is that all stages are the same program or that
varyings are passed between stages using built-in varyings.
/external/mesa3d/src/mesa/main/shaderapi.c
75c6f472880706dcbb9d1e20727fa8f71db8b11c 12-Oct-2010 Ian Romanick <ian.d.romanick@intel.com> mesa: Track an ActiveProgram distinct from CurrentProgram

ActiveProgram is the GL_EXT_separate_shader_objects state variable
used for glUniform calls. glUseProgram also sets this.
/external/mesa3d/src/mesa/main/shaderapi.c
c72aa7fa58899a278da06a117e56452ce26bea9c 12-Oct-2010 Ian Romanick <ian.d.romanick@intel.com> mesa: Skeletal support for GL_EXT_separate_shader_objects

Really just filling in the entry points. None of them do anything
other than validate their inputs.
/external/mesa3d/src/mesa/main/shaderapi.c
7d8ba5f78fc31357b65b9bb2acc5e0b97c543af1 12-Oct-2010 Ian Romanick <ian.d.romanick@intel.com> mesa: Clean up various 'unused parameter' warnings in shaderapi
/external/mesa3d/src/mesa/main/shaderapi.c
ccc1c4c6d98168ee86c469307aa67e748af6f058 12-Oct-2010 Ian Romanick <ian.d.romanick@intel.com> mesa: Clean up two 'comparison between signed and unsigned' warnings
/external/mesa3d/src/mesa/main/shaderapi.c
5cb24c4a75cd0b45bb332721c3d0e5a1f928b6f4 12-Oct-2010 Ian Romanick <ian.d.romanick@intel.com> mesa: Refactor validation of shader targets

Actually validate that the implementation supports the particular
shader target as well. Previously if a driver only supported vertex
shaders, for example, glCreateShaderObjectARB would gladly create a
fragment shader.

NOTE: this is a candidate for the 7.9 branch.
/external/mesa3d/src/mesa/main/shaderapi.c
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/main/shaderapi.c
2b70dbfe091af5ae7c788e16275e1af2cb1c284c 10-Sep-2010 Ian Romanick <ian.d.romanick@intel.com> glsl2: Add EmitNoNoise flag, use it to remove noise opcodes
/external/mesa3d/src/mesa/main/shaderapi.c
e591c4625cae63660c5000fbab366e40fe154ab0 05-Sep-2010 Luca Barbieri <luca@luca-barbieri.com> glsl: add several EmitNo* options, and MaxUnrollIterations

This increases the chance that GLSL programs will actually work.

Note that continues and returns are not yet lowered, so linking
will just fail if not supported.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/shaderapi.c
6d3a2c97f4a78e85545286e0e126cd3a27bd1cbd 05-Sep-2010 Luca Barbieri <luca@luca-barbieri.com> glsl: make compiler options per-target

This allows us to specify different options, especially useful for chips
without unified shaders.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/shaderapi.c
b2872ea353efd117fcc4d22f0ca66a26f95a14c4 26-Aug-2010 Eric Anholt <eric@anholt.net> Revert "mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH."

This reverts commit 001a7bfdfc8b3c8930d5ced21982dbdfb8cd35b3. I
hadn't found the section of the spec clarifying that the old behavior
was right. Reverting fixes the new version of the testcase, and the
Humus demos that could no longer find their uniforms.

Bug #29782
Bug #29783
/external/mesa3d/src/mesa/main/shaderapi.c
001a7bfdfc8b3c8930d5ced21982dbdfb8cd35b3 23-Aug-2010 Eric Anholt <eric@anholt.net> mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH.

Fixes: glsl-getactiveuniform-length.
/external/mesa3d/src/mesa/main/shaderapi.c
a575067d7029c7af3bb6d650d6bd944ac8bb6bb7 19-Aug-2010 Vinson Lee <vlee@vmware.com> mesa: Remove unnecessary heaaders from shaderapi.c.
/external/mesa3d/src/mesa/main/shaderapi.c
afe125e0a18ac3886c45c7e6b02b122fb2d327b5 27-Jul-2010 Eric Anholt <eric@anholt.net> Merge remote branch 'origin/master' into glsl2

This pulls in multiple i965 driver fixes which will help ensure better
testing coverage during development, and also gets past the conflicts
of the src/mesa/shader -> src/mesa/program move.

Conflicts:
src/mesa/Makefile
src/mesa/main/shaderapi.c
src/mesa/main/shaderobj.h
40ef298641046d0455df9e177b14d33ba618f466 03-Jul-2010 Chia-I Wu <olv@lunarg.com> mesa: Fix OpenGL ES-only builds.

Check FEATURE_GL in _mesa_init_shader_dispatch and
_mesa_init_shader_uniform_dispatch. OpenGL ES can not and does not use
_mesa_init_<...>_dispatch. This is supposed to be temporary. Ideally,
a more flexible way for initializing dispatch tables should be
developed.
/external/mesa3d/src/mesa/main/shaderapi.c
ae8164a67b05cdc6d9b520b9704330537f3a6024 02-Jul-2010 Brian Paul <brianp@vmware.com> mesa: add geometry shader fields to gl_shader_program

These 3 fields are per shader-program. Copy them into the geometry
program at link time for convenient access later.

Also, add some missing glGetProgramiv() queries.
/external/mesa3d/src/mesa/main/shaderapi.c
291bcfd831895ebdaee098f67007e1db0c8facdc 02-Jul-2010 Brian Paul <brianp@vmware.com> mesa: add missing error checks in _mesa_program_parameteri()
/external/mesa3d/src/mesa/main/shaderapi.c
da7bd6a90e1fee5c16327338fd251c0f6be34e36 28-Jun-2010 Zack Rusin <zackr@vmware.com> mesa: initial support for ARB_geometry_shader4

laying down the foundation for everything and implementing most of the
stuff.
linking, gl_VerticesIn and multidimensional inputs are left.
/external/mesa3d/src/mesa/main/shaderapi.c
ec2b92f98c2e7f161521b447cc1d9a36bce3707c 11-Jun-2010 Brian Paul <brianp@vmware.com> mesa: rename src/mesa/shader/ to src/mesa/program/
/external/mesa3d/src/mesa/main/shaderapi.c
f1c5043f94261fecd8a6e54fe37d786554affcdd 11-Jun-2010 Brian Paul <brianp@vmware.com> mesa: move shader/slang/* sources to main/slang/*

Reduce the source tree depth a bit.
/external/mesa3d/src/mesa/main/shaderapi.c
a37b2219d6e3f299379c6434d65f300660d12c3e 11-Jun-2010 Brian Paul <brianp@vmware.com> mesa: refactor shader api / object code

Remove the unneeded ctx->Driver hooks for shader-related functions.
Move state and API-related things into main/.
/external/mesa3d/src/mesa/main/shaderapi.c