25edfbfccfb8af9eecd949c3fc4f2680c5b963b6 |
|
01-Jun-2012 |
Kenneth Graunke <kenneth@whitecape.org> |
glsl/builtins: Fix textureGrad() for Array samplers. We were incorrectly assuming that the coordinate's dimensionality is equal to the gradient's dimensionality. For array types, the coordinate has one more component. Fixes 12 subcases of oglconform's glsl-bif-tex-grad test. NOTE: This is a candidate for stable release branches. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
acd4024e0a0096c351a7143f908e029df53b1fdf |
|
14-Apr-2012 |
Eric Anholt <eric@anholt.net> |
glsl: Add remaining *sampler2DRect* texture functions. Fixes the new piglit texelFetch() tests on these. Note that the rest of the new functions are not tested (same as the non-2DRect versions of most of them).
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
d91c8edd851839799d8338ecc127ea004d76fcab |
|
13-Apr-2012 |
Eric Anholt <eric@anholt.net> |
glsl: Add textureSize(*samplerBuffer) support. Fixes the corresponding new tests in piglit. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
bb430ced7fb2aa26007637a0907d886716e8ddd6 |
|
26-Mar-2012 |
Eric Anholt <eric@anholt.net> |
glsl: Add texelFetch(*samplerBuffer) entrypoints to GLSL 1.40. Fix texelFetch(sampler2DRect) and textureSize(samplerBuffer) generation to not reference a LOD at the same time because it's easier than not fixing it. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
c0795742a38e0aab59309c1ec71d980e493237e2 |
|
12-Mar-2012 |
Eric Anholt <eric@anholt.net> |
glsl: Add GLSL 1.40 textureSize() implementations for sampler2DRect. By setting lod to 0 in the builtin function implementation, we avoid needing to update all the visitors to ignore LOD in this case, when the hardware drivers actually want to ask for LOD 0 for rectangular textures. Fixes piglit spec/GLSL-1.40/textureSize-*Rect. v2: Change style of looking for substrings. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
4558987818e1ff36e86592e9c5c0b5e181be9ec1 |
|
06-Dec-2011 |
Anuj Phogat <anuj.phogat@gmail.com> |
glsl: Fix samplerCubeShadow support in shader compiler This patch fixes the samplerCubeShadow support in GLSL shader compiler. shader compiler was picking the 'r' texture coordinate for shadow comparison when the expected behaviour is to use 'q' texture coordinate in case of cube shadow maps. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
5e3e9a8e9cbcd721a73c9f18edcd72a22b2de52d |
|
15-Nov-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
glsl: Add missing textureSize(samplerCubeShadow, int) variant. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
83d0514f1fc5f747a4bf4c900338a47a17f86e4a |
|
10-Nov-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
glsl: Remove textureGradOffset built-ins taking samplerCube parameters. These simply don't exist in the 1.30 specification---none of the Offset variants allow samplerCube. This must have been a cut and paste error from textureGrad, which /does/ allow cubemaps. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Paul Berry <stereotype441@gmail.com>
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
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/builtins/tools/texture_builtins.py
|
583b295bbf5777ce5ec0d57ce46269ceea4285c1 |
|
26-Feb-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
texture_builtins.py: Add support for textureSize (txs). Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
5a3a242a8fc4b9f0cac0e40786dd0c4831517473 |
|
19-Oct-2010 |
Kenneth Graunke <kenneth@whitecape.org> |
glsl: Add compiler support for ARB_shader_texture_lod. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Marek Olšák <maraeo@gmail.com>
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
233b88eab9d8095523ebae3c4be1dbf2e2bd856a |
|
25-Feb-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
glsl: Explicitly specify a type when reading/printing ir_texture. This is necessary for GLSL 1.30+ shadow sampling functions, which return a single float rather than splatting the value to a vec4 based on GL_DEPTH_TEXTURE_MODE.
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
cb3317b85a9b8916317cb733ef4e6f13eaf0d890 |
|
07-Feb-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
texture_builtins.py: Add support for 130-style Shadow sampler variants.
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
3ef397dafc80278d48d1385e14d4e500a86e94ac |
|
01-Feb-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
texture_builtins.py: Fix a warning about mixed tabs/spaces.
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
ba3de801ecb54bf980c338ef4f54097ca4ea60ee |
|
09-Jan-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
texture_builtins.py: Generate texture*Offset functions.
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
4c63f2de2fdac3cedef65eb29f57e6e2b26a0d59 |
|
27-Dec-2010 |
Kenneth Graunke <kenneth@whitecape.org> |
texture_builtins.py: Generalize the "use_proj" field to support offsets. Rather than passing "True", pass a bitfield describing the particular variant's features - either projection or offset. This should make the code a bit more readable ("Proj" instead of "True") and make it easier to support offsets in the future.
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
99f36486ebf3d5a6edfd6329e882d6409a085582 |
|
27-Dec-2010 |
Kenneth Graunke <kenneth@whitecape.org> |
texture_builtins.py: Refactor coordinate dimension calculations. For offsets, we'll want the straight sampler dimensionality, without the +1 for array types. Create a new function to do that; refactor.
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
c5a27b5939427bdc95c926b450ed3de1ff4baafb |
|
09-Jan-2011 |
Kenneth Graunke <kenneth@whitecape.org> |
glsl: Change texel offsets to a single vector rvalue. Having these as actual integer values makes it difficult to implement the texture*Offset built-in functions, since the offset is actually a function parameter (which doesn't have a constant value). The original rationale was that some hardware needs these offset baked into the instruction opcode. However, at least i965 should be able to support non-constant offsets. Others should be able to rely on inlining and constant propagation.
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
43ff8f1a4b90554eae489cebb7e05f983dd9ad66 |
|
12-Aug-2010 |
Kenneth Graunke <kenneth@whitecape.org> |
glsl2: Rework builtin function generation. Each language version/extension and target now has a "profile" containing all of the available builtin function prototypes. These are written in GLSL, and come directly out of the GLSL spec (except for expanding genType). A new builtins/ir/ folder contains the hand-written IR for each builtin, regardless of what version includes it. Only those definitions that have prototypes in the profile will be included. The autogenerated IR for texture builtins is no longer written to disk, so there's no longer any confusion as to what's hand-written or generated. All scripts are now in python instead of perl.
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
64b408529aefe0fb5968471431ec0a1b0abd7697 |
|
09-Aug-2010 |
Kenneth Graunke <kenneth@whitecape.org> |
texture_builtins.py: Remove useless comments.
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
2eed82ebc0435da40dd5b588efc9bef0946e8497 |
|
07-Aug-2010 |
Kenneth Graunke <kenneth@whitecape.org> |
texture_builtins.py: Fix cut and paste errors in function names. Some signatures were being generated with the wrong function name.
/external/mesa3d/src/glsl/builtins/tools/texture_builtins.py
|
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/builtins/tools/texture_builtins.py
|