Граф коммитов

189 Коммитов

Автор SHA1 Сообщение Дата
daniel@transgaming.com c164135ce9 Implemented querying GL_BLEND_COLOR
TRAC #12039
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@192 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-26 15:33:36 +00:00
daniel@transgaming.com c103b60cda Support BufferData with size zero.
TRAC #12027

Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@191 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-23 18:34:58 +00:00
daniel@transgaming.com c46c9c0773 Implements GetFramebufferAttachmentParameteriv
TRAC #11876
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/trunk@190 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-23 18:34:55 +00:00
daniel@transgaming.com 916ffaa9ae Implements support for retrieving uniforms by subscripted name.
TRAC #11796
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/trunk@189 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-23 18:34:52 +00:00
daniel@transgaming.com c5c1538032 Fixed glGetShaderPrecisionFormat output
TRAC #12041
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@188 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-23 18:34:49 +00:00
daniel@transgaming.com 69f084b1b7 Fix matrix by matrix multiplication
TRAC #11751
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@187 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-23 18:34:46 +00:00
alokp@chromium.org eab1ef126b Removed unnecessary include paths. Removed the dependency on unistd.h. Moved the generated files to intermediate directory so that the source is not polluted.
These changes only affect the gyp build system because they required flex-bison options that are not supported by old binaries in compiler/tools. Another reason to switch to gyp build system.
Review URL: http://codereview.appspot.com/994041

git-svn-id: https://angleproject.googlecode.com/svn/trunk@186 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-23 17:33:49 +00:00
alokp@chromium.org a72f9eef8a svn property changes to ignore:
- third_party/cygwin
- third_party/gyp
- build/Debug
- build/Release


git-svn-id: https://angleproject.googlecode.com/svn/trunk@185 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-23 17:29:18 +00:00
alokp@chromium.org 277ec1830d Added support for building glsl translator on posix platforms.
Review URL: http://codereview.appspot.com/958043

git-svn-id: https://angleproject.googlecode.com/svn/trunk@184 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-23 16:07:34 +00:00
daniel@transgaming.com d2cf25db0b Make all globals static
TRAC #12015
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@183 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-22 16:27:35 +00:00
daniel@transgaming.com 1b3a8155c2 Fix getActiveUniform array size and refactor uniform size
TRAC #11929
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@182 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-22 13:35:37 +00:00
daniel@transgaming.com 09fbfefa89 Implemented glGetActiveUniform
TRAC #11929
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@181 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-22 13:35:31 +00:00
daniel@transgaming.com 85423183fb Implemented glGetActiveAttrib
TRAC #11929
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@180 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-22 13:35:27 +00:00
daniel@transgaming.com d99bd45f94 Wrap mode affects NPOT texture completeness
TRAC #11861

If mipmapping is enabled, then each side of a texture must be a power-of-two or using CLAMP_TO_EDGE wrapping in that direction.
Correct the mipmap size calculation to match the spec.

Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@179 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-22 13:35:25 +00:00
daniel@transgaming.com e7e43fb992 Make it easier to disable tracing
TRAC #11979

Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@178 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-22 13:35:23 +00:00
daniel@transgaming.com b4ff1f8f6f Implemented aliased attributes support
TRAC #11092
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@177 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-22 13:35:18 +00:00
daniel@transgaming.com f9ef107fef Implement scoping
TRAC #11975
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@176 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-22 13:35:16 +00:00
apatrick@chromium.org 6e49740d20 Added DX SDK search paths to libGLESv2.
Now it builds if these aren't in the default search path.
Should it support x64 targets as well?
Review URL: http://codereview.appspot.com/949041

git-svn-id: https://angleproject.googlecode.com/svn/trunk@175 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 20:34:15 +00:00
daniel@transgaming.com e4b08c8cf8 Implement VertexAttrib
TRAC #11878

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@174 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:53:06 +00:00
daniel@transgaming.com bf2b52a313 Implement GL_LINE_LOOP primitive handling
TRAC #11823

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@173 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:53:03 +00:00
daniel@transgaming.com 93a8147fba Support FBO attachment to cubemaps
TRAC #11364

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@172 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:58 +00:00
daniel@transgaming.com e6842296d0 Fix more relative #include paths (mostly header files)
Trac #11408
Signed-off-by: Andrew Lewycky
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@171 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:50 +00:00
daniel@transgaming.com e8c0ca29e1 Don't advertise 10, 10, 10, 2 RGBA format
TRAC #11610

The color_ramp conformance test renders each colour and reads it back to verify it, but it uses ReadPixels with UNSIGNED_BYTE with does not have enough precision.

Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@170 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:47 +00:00
daniel@transgaming.com 18b426be77 Implement support for mipmap generation (CopyTexImage2D regression)
TRAC #11338

CopyTex(Sub)Image2D was broken by the coordinate space change. Render targets are rendered flipped in the Y axis.

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@169 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:44 +00:00
daniel@transgaming.com 4901fca3aa Implements GetRenderbufferParameteriv
TRAC #11877
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/trunk@168 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:41 +00:00
daniel@transgaming.com 70d312a701 Implements color renderbuffers
TRAC #11890
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/trunk@167 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:38 +00:00
daniel@transgaming.com 3e7c803314 Remove usage of relative paths for #include search path
Trac #11408
Signed-off-by: Andrew Lewycky
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@166 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:35 +00:00
daniel@transgaming.com bbf56f755e Use directory qualified #include files
Trac #11408
Signed-off-by: Andrew Lewycky
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@165 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:13 +00:00
daniel@transgaming.com e07980c45f removed execute permissions on smoke.tga
(was causing problems on windows)

git-svn-id: https://angleproject.googlecode.com/svn/trunk@164 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:09 +00:00
daniel@transgaming.com 86f7c9df37 Only output referenced attributes, uniforms and varyings
TRAC #11590
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@163 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:06 +00:00
daniel@transgaming.com 5024cc4940 Implemented biased textureCube sampling
TRAC #11884
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@162 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:04 +00:00
daniel@transgaming.com 8fd99e2696 Implement support for mipmap generation
TRAC #11338

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@161 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:52:00 +00:00
daniel@transgaming.com 5d2bee9325 Implements GetTexParameteriv
TRAC #11721
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/trunk@160 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-20 18:51:56 +00:00
daniel@transgaming.com 743d773d80 Accidentally moved a read of translated[i].stride before the write.
TRAC #11847

(Fixes PVR-RenderToTexture regression)

Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@159 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:45:32 +00:00
daniel@transgaming.com a0c34d27e1 Fixed crashes caused by a string buffer overflow
TRAC #11888
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@158 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:45:30 +00:00
daniel@transgaming.com 005c73922f Create unique names for unnamed parameters
TRAC #11873
HLSL requires parameter names in function prototypes
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@157 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:45:27 +00:00
daniel@transgaming.com bb8853289b Don't crash on null conditional block
TRAC #11871
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@156 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:45:24 +00:00
daniel@transgaming.com 7127f2076d Initialize all shader variables
TRAC #11869
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@155 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:45:22 +00:00
daniel@transgaming.com 7603947656 Fixed the GLSL ES version
TRAC #11867
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@154 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:45:18 +00:00
daniel@transgaming.com 5af6427dc3 Implemented gl_FrontFacing for lines and points
TRAC #11419
Lines and points are always considered front-facing
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@153 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:45:12 +00:00
daniel@transgaming.com e007896b1a Implements GetVertexAttrib
TRAC #11653
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/trunk@152 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:45:08 +00:00
daniel@transgaming.com aa0ccbd9f0 Implements GetBufferParameteriv
TRAC #11720

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/trunk@151 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:45:05 +00:00
daniel@transgaming.com 34dc3e8a5e Creating a 0x0 texture fails.
TRAC #11792

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@150 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:45:02 +00:00
daniel@transgaming.com aa1ff87981 Translate/lift vertex attributes when input stride or offset is not a multiple of 4.
TRAC #11847

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@149 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:44:58 +00:00
daniel@transgaming.com b587598cb8 Implemented short-circuiting behavior for the ternary operator
TRAC #11444
This is achieved by turning the ternary operator into conditional code.
The UnfoldSelect intermediate code traverser places this conditional
code before the statement containing the ternary operator (aka. select).
The computed value is assigned to a temporary variable.
On outputting the actual statement the ternary operator is
replaced by the temporary variable.

Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@148 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:44:53 +00:00
daniel@transgaming.com ec55d29a1c Clean up old comments
TRAC #11444
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@147 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-15 20:44:49 +00:00
daniel@transgaming.com edab063ed2 Add NOMINMAX define to the compiler projects
Trac #11859
To be consistent with the rest of the projects and GYP.
Signed-off-by: Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@146 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-13 19:53:53 +00:00
daniel@transgaming.com bb2e963617 Fail compilation on empty source string
TRAC #11814
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@145 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-13 19:53:50 +00:00
daniel@transgaming.com 3c010c02d5 Remove name clash warnings
TRAC #11314
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@144 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-13 19:53:47 +00:00
daniel@transgaming.com 72d0b52e40 Decorate all GLSL user-defined names with an underscore to avoid name clashes
TRAC #11314
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@143 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-04-13 19:53:44 +00:00