daniel@transgaming.com
5d4c28f9d5
Removes check for framebuffer == 0 in glRenderbufferStorage
...
TRAC #12346
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@303 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-19 07:14:19 +00:00
daniel@transgaming.com
178adff757
Give sorted configs a unique ID without changing the original set
...
TRAC #12323
This fixes building on Visual C++ 2010, which has const iterators for STL sets as specified by C++0x.
Signed-off-by: Shannon Woods
Singed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@302 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-18 18:52:04 +00:00
daniel@transgaming.com
cd0a9a888b
Define GL_FRAGMENT_PRECISION_HIGH
...
TRAC #12266
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@301 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-18 18:51:59 +00:00
daniel@transgaming.com
e0d7d43460
Fix DepthRange location
...
TRAC #12279
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@300 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-18 18:51:52 +00:00
daniel@transgaming.com
defa1c39ac
Use plain data arrays for Buffer storage
...
TRAC #12299
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@299 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-18 18:51:45 +00:00
daniel@transgaming.com
91fd1de6bb
Caches the location of generic uniforms
...
TRAC #12215
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@298 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-18 18:51:40 +00:00
daniel@transgaming.com
15a4d2ef5a
Explicitly set optimizations to /O2 in Release build
...
TRAC #12287
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@297 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-18 18:51:34 +00:00
daniel@transgaming.com
5a722c7fad
Disable checked STL iterators in Release build
...
TRAC #12287
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@296 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-18 18:51:26 +00:00
daniel@transgaming.com
e7273f4ed0
Inline any suitable function in Release build
...
TRAC #12287
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@295 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-18 18:51:17 +00:00
daniel@transgaming.com
a36f98efb5
Correct GLboolean handling for glColorMask and glSampleCoverage
...
TRAC #11597
Signed-off-by: Shannon Woods
Signed-off-bY: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@294 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-18 18:51:09 +00:00
daniel@transgaming.com
a5d7623d59
Enforce fragment precision qualifier requirement
...
TRAC #12156
The fragment shader has no default precision qualifier for floating-point types,
so compilation should fail when it's not set explicitly globally or per declaration.
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@293 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-17 09:58:47 +00:00
daniel@transgaming.com
0578f81c9a
Untabify compiler code
...
TRAC #12156
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@292 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-17 09:58:39 +00:00
daniel@transgaming.com
0a311a467c
ensure mBaseTexture is initialized
...
Trac #12298
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@291 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-17 09:58:33 +00:00
daniel@transgaming.com
d08ea900b6
Reduces STL size calls.
...
TRAC #12281
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@290 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 19:41:36 +00:00
alokp@chromium.org
4e89d233e5
Cleaned up Common.h. Removed unnecessary includes and typedefs. Removed tabs from PoolAlloc.h and replaced UINT_PTR with uintptr_t.
...
Review URL: http://codereview.appspot.com/1221041
git-svn-id: https://angleproject.googlecode.com/svn/trunk@289 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 19:37:21 +00:00
alokp@chromium.org
cff1aff5dd
Fixed compile error on a few linux buildbots. Included string.h for memset.
...
Review URL: http://codereview.appspot.com/1218041
git-svn-id: https://angleproject.googlecode.com/svn/trunk@288 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 19:24:22 +00:00
daniel@transgaming.com
2b7ebdb942
Switches stl copy in bufferSubData for a memcpy
...
TRAC #12215
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@287 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:31:24 +00:00
daniel@transgaming.com
202ff653bc
Caches parameters for SetStreamSource calls
...
TRAC #12239
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@286 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:31:19 +00:00
daniel@transgaming.com
2d84df0ca8
Cache D3D constant handles with their associated uniforms.
...
TRAC #12237
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@285 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:31:13 +00:00
daniel@transgaming.com
d8e9372445
Implicitly define GL_ES
...
TRAC #12257
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@284 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:31:09 +00:00
daniel@transgaming.com
c808c5a9ea
When NONPOW2CONDITIONAL is set, limit NPOTs to a single level.
...
TRAC #12250
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@283 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:31:01 +00:00
daniel@transgaming.com
4af7acca9d
Implemented varying packing
...
TRAC #11736
The OpenGL ES Shading Language 1.00 rev. 17 appendix A section 7 page 111, details how varyings should be packed into generic varying registers. To implement this the HLSL main() function is now generated and appended to the code during link time, where the packing and mapping can happen.
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@282 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:30:53 +00:00
daniel@transgaming.com
d7c9810183
Only output DepthRange, xor() and mod() when used
...
TRAC #11736
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@281 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:30:48 +00:00
daniel@transgaming.com
c6977ce557
Fixed initialization and comparison of variable Types
...
TRAC #12262
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@280 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:30:42 +00:00
daniel@transgaming.com
13eeeededa
Fixed reporting unlinked varyings
...
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@279 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:30:38 +00:00
daniel@transgaming.com
9bc5d23518
Add predefined macro GL_ES
...
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@278 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:30:33 +00:00
daniel@transgaming.com
edff8dc8bb
Report an error on the use of the line continuation character
...
TRAC #12260
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@277 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-14 17:30:27 +00:00
daniel@transgaming.com
3debd2b43b
Make faceforward match the conformance test.
...
TRAC #12252
The conformance test checks the dot product for >= 0.
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@276 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-13 02:07:34 +00:00
daniel@transgaming.com
6a94b97d70
eglChooseConfig must return filtered size when configs is NULL.
...
TRAC #12234
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@275 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-13 02:02:34 +00:00
alokp@chromium.org
7e0ed77c7f
Added a space between ']]'. Flex 2.5.33, which is used on MAC does not like this.
...
Review URL: http://codereview.appspot.com/1119044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@274 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 21:16:46 +00:00
alokp@chromium.org
91a01a1694
Fixed compile error on MAC. Fixed TMap to use std::pair<const K, V> as pool_allocator parameter. Replaced all instances of std::map with TMap. I wonder if this pool_allocator is worth all this complexity.
...
Review URL: http://codereview.appspot.com/1182042
git-svn-id: https://angleproject.googlecode.com/svn/trunk@273 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 18:39:04 +00:00
alokp@chromium.org
b1e8c6fbab
Getting ready to fix compile-errors on mac. This CL only contains cosmetic changes. Removed SGI_STL blocks. Removed tabs and fixed formatting.
...
Review URL: http://codereview.appspot.com/1138043
git-svn-id: https://angleproject.googlecode.com/svn/trunk@272 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 18:35:53 +00:00
daniel@transgaming.com
4071e6610c
Consider out-of-range texture units to be incomplete.
...
TRAC #12224
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@271 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 16:51:16 +00:00
daniel@transgaming.com
a71cdd7c48
Save render state across glFinish.
...
TRAC #12164
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@270 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 16:51:14 +00:00
daniel@transgaming.com
2c42c6c34a
eglInitialize must not update major and minor if they are NULL.
...
TRAC #12235
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@269 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 16:51:11 +00:00
daniel@transgaming.com
0df1687198
Add HLSL error messages to the info log when compileToBinary fails
...
Trac #12245
Otherwise.. it could be empty.
Signed-off-by: Andrew Lewycky
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@268 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 16:51:08 +00:00
daniel@transgaming.com
5a0b0a8b90
Minimizes texture state changes
...
TRAC #12203
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@267 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 03:45:07 +00:00
daniel@transgaming.com
41d8dd85ad
Add better error checking on buffer updates
...
TRAC #12186
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@266 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 03:45:03 +00:00
daniel@transgaming.com
c828b1495a
Improve TranslatedVertexBuffer::map performance
...
TRAC #11392
- For small draws, load stride 0 streams into regular streaming buffer
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@265 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 03:42:04 +00:00
daniel@transgaming.com
9a0606cf9a
Improve TranslatedVertexBuffer::map performance
...
TRAC #11392
- Don't use the identity translation buffer, but always copy into a streaming buffer.
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@264 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 03:42:00 +00:00
daniel@transgaming.com
442b7debdb
Re-enable debug tracing by default
...
TRAC #12158
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@263 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 03:41:01 +00:00
daniel@transgaming.com
73248ecc91
Mark configs with a format different from the display mode as conformant
...
TRAC #12197
EGL_NON_CONFORMANT_CONFIG is not a flag, and these configs do pass conformance on all tested devices.
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@262 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 03:40:40 +00:00
daniel@transgaming.com
339ae70162
Minimizes changes of the depth stencil buffer
...
TRAC #12154
This patch reduces calls to SetDepthStencilSurface
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@261 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 03:40:20 +00:00
daniel@transgaming.com
a79f9d18cb
Minimizes render state changes
...
TRAC #12154
This patch reduces redundant calls to SetRenderState
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@260 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 03:40:01 +00:00
daniel@transgaming.com
092bd4814d
Minimizes render target changes
...
TRAC #12154
This patch reduces calls to SetRenderTarget.
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@259 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-12 03:39:36 +00:00
alokp@chromium.org
9c502882d5
Fixed crash on 64-bit posix platform. stdint.h was not being included and wrong size of uintptr_t was being used.
...
Review URL: http://codereview.appspot.com/1153044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@258 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-11 13:40:29 +00:00
daniel@transgaming.com
1ddd1dd483
Restore state after Blit operations
...
TRAC #12202
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@257 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-11 02:29:34 +00:00
daniel@transgaming.com
db1afef67a
Improve performance in Surface::swap
...
TRAC #12145
- Create the flip RT texture once.
- Use state blocks for swap and restore all previous state.
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@256 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-11 02:29:31 +00:00
daniel@transgaming.com
4fa08339e2
Prevent redundant uniform updates
...
TRAC #12154
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@255 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-11 02:29:27 +00:00
alokp@chromium.org
ff42c63940
Changes to compile translator_glsl on linux.
...
Review URL: http://codereview.appspot.com/1153043
git-svn-id: https://angleproject.googlecode.com/svn/trunk@254 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-05-10 15:14:30 +00:00