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

13371 Коммитов

Автор SHA1 Сообщение Дата
daniel@transgaming.com 5e417109f6 fix warning for std::copy
TRAC #11558

* VertexDataManager::internalPreRenderValidate operates directly on the output pointer.

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@74 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-26 04:08:53 +00:00
daniel@transgaming.com b994e3bd46 fix warning from "normalized" cast
TRAC #11556

* Restore warning C4800.
* Compare GLboolean normalized against GL_TRUE per the spec.

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

git-svn-id: https://angleproject.googlecode.com/svn/trunk@73 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-26 04:08:50 +00:00
daniel@transgaming.com f8b58a0cb3 Support translating indices.
TRAC #11393

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@72 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-26 04:08:45 +00:00
daniel@transgaming.com d989add518 Compiler - implement gl_PointCoord and point size clamping
TRAC #11592
Fixed a regression caused by bad merging.
Author: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@71 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-26 04:08:42 +00:00
daniel@transgaming.com ccad59f046 Compiler - implement gl_PointCoord and point size clamping
TRAC #11592
Author: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@70 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-26 04:08:39 +00:00
alokp@chromium.org 76b820852b Added GLSL backend for ESSL translator.
Review URL: http://codereview.appspot.com/698041

git-svn-id: https://angleproject.googlecode.com/svn/trunk@69 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-24 17:59:39 +00:00
daniel@transgaming.com 32e58cdedb Implements support for setting/getting line width.
TRAC #11531
Implements glLineWidth, and provides glGet results for
LINE_WIDTH and ALIASED_LINE_WIDTH_RANGE.

Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/trunk@68 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-24 09:44:10 +00:00
daniel@transgaming.com debe2591cc HLSL compilation shouldn't assume a 3.0 profile
TRAC #11054
Signed-off-by: Daniel Koch
Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@67 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-24 09:44:08 +00:00
daniel@transgaming.com d37dec85de The trace parameter is better termed 'message' instead of 'argument'
Trac #11526
Signed-off-by: Shannon Woods
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@66 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-24 09:44:05 +00:00
daniel@transgaming.com 24a0486194 Add smoke.tga for gles2\ParticleSystem sample
Trac #11596
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@65 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-24 09:44:03 +00:00
daniel@transgaming.com f64dd04c4c Fix warning from "normalized" cast.
TRAC #11556

Disable warning C4800 as it does not indicate defects in the code, just the compiler.

Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@64 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-24 09:44:00 +00:00
alokp@chromium.org 5539a34f24 Added a few samples from GLES 2.0 book.
git-svn-id: https://angleproject.googlecode.com/svn/trunk@63 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-22 19:34:05 +00:00
alokp@chromium.org ea0e1af4c3 Minor reshuffling of directory structure in preparation of ESSL to GLSL compiler work.
1. Added include/GLSLANG which includes compiler API
2. Deleted src/include and moved the header files to the same directory as the corresponding source files
3. Modied include path to be relative to src/. I have only fixed paths for files I moved. We should fix it for all new files at least. It is much easier to see where an included file is coming from.

I noticed that a few libGLESv2 source files include headers from libEGL project, which seems wrong. I think we should address this issue. Next step: move compiler source files to compiler/frontend and create two new projects compiler/glsl_backend and compiler/hlsl_backend.

Review URL: http://codereview.appspot.com/662042

git-svn-id: https://angleproject.googlecode.com/svn/trunk@62 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-22 19:33:14 +00:00
daniel@transgaming.com 0599dc6def To output debug info use the TRACE macro instead of calling trace()
Trac #11526
Signed-off-by: Shannon Woods
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@61 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:31:36 +00:00
daniel@transgaming.com b5b0616063 Refactor the parenthesis from the TRACE/FIXME/ERR macros
Trac #11526
Signed-off-by: Shannon Woods
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@60 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:31:32 +00:00
daniel@transgaming.com d4620a3631 Don't crash on a null pointer passed to glBufferData
TRAC #11528

 * Initialise buffer to 0 if BufferData is called with data = NULL
   (special case: if not resizing, just leave the old data in place).
 * BufferSubData ignores calls with data = NULL
 * Replace Buffer::data_t with GLubyte.

Author:    Andrew Lewycky
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@59 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:31:28 +00:00
daniel@transgaming.com 159acdf5f6 Corrects scissor & viewport initialization.
TRAC #11134
Takes viewport/scissor dimensions from surface at first makeCurrent, rather
than from display at context construction.

Author:    Shannon Woods
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@58 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:31:24 +00:00
daniel@transgaming.com ace5e66358 Implements support for FRONT_AND_BACK culling.
TRAC #11331

Author:    Shannon Woods
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@57 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:31:20 +00:00
daniel@transgaming.com 5949aa10c6 Adds support for hints
TRAC #11343
Author:    Shannon Woods
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@56 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:31:15 +00:00
daniel@transgaming.com 3489e3ae55 Implement glPixelStorei for Tex(Sub)Image2D.
TRAC #11475

Author:    Andrew Lewycky
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@55 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:31:11 +00:00
daniel@transgaming.com 7051b97e76 Default textures to non-renderable.
TRAC #11309

* Lift getRenderTarget() into base class Texture.
* Add pure virtual convertToRenderTarget() and getSurface().

Author:    Andrew Lewycky
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@54 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:31:07 +00:00
daniel@transgaming.com 842f7a4ebf Partial TexSubImage after FBO rendering overwrites entire image.
TRAC #11439

* Store texel data in IDirect3DSurface9 rather than client memory.
* TexSubImage uploads new data immediately.
* Fix 5551 texture format conversion.

Author:    Andrew Lewycky
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@53 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:31:03 +00:00
daniel@transgaming.com bbb6cd0c6d Fix starting indices other than 0 for DrawArrays
TRAC #11495

Author:    Andrew Lewycky
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@52 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:30:59 +00:00
daniel@transgaming.com 3d53fda08d ANGLE | Compiler - implement the ternary operator
TRAC #11421
Doesn't take short-circuiting behavior into account yet.
Author:    Nicolas Capens
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@51 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:30:55 +00:00
daniel@transgaming.com adb5087a9f ANGLE | Don't perform any filtering when swapping
TRAC #11513
Author:    Nicolas Capens
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@50 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-21 04:30:52 +00:00
daniel@transgaming.com d70aa3398a Delete empty folders after reorganization
Trac #11406



git-svn-id: https://angleproject.googlecode.com/svn/trunk@48 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:59:53 +00:00
daniel@transgaming.com 4da3d93531 update .gitignore file for new file locations
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@47 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:13:32 +00:00
daniel@transgaming.com 14c4631c46 Fix include paths in libEGL.vcproj
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@46 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:13:30 +00:00
daniel@transgaming.com 63e472ddd5 Fix include paths for libGLESv2.vcproj
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@45 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:13:28 +00:00
daniel@transgaming.com 50290ec93b Fix the case of all directories used by compiler.vcproj
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@44 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:13:26 +00:00
daniel@transgaming.com 7f9901776a Rename Compiler.vcproj -> compiler.proj and fix solution properties
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@43 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:13:24 +00:00
daniel@transgaming.com f08666967d mv Include -> include
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@42 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:13:18 +00:00
daniel@transgaming.com f4d3a31442 mv ANGLE.sln -> src/ANGLE.sln
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@41 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:13:13 +00:00
daniel@transgaming.com 7c46b9e695 mv libGLESv2 -> src/libGLESv2
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@40 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:12:58 +00:00
daniel@transgaming.com 203934dcad mv libEGL -> src/libEGL
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@39 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:12:52 +00:00
daniel@transgaming.com b5462fcee0 mv Include/*.h -> /src/include/
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@38 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:12:47 +00:00
daniel@transgaming.com acc5113033 mv Compiler/* -> src/compiler/*
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@37 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:12:17 +00:00
daniel@transgaming.com 42b207dad5 mv Compiler/Preprocessor -> src/compiler/preprocessor
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@36 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:12:07 +00:00
daniel@transgaming.com 395d503519 Move Compiler/Tools -> src/compiler/tools
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@35 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:12:00 +00:00
daniel@transgaming.com 5903aeb1f9 Move Common -> src/common
Trac #11406
Signed-off-by: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@34 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 13:11:57 +00:00
daniel@transgaming.com 1e64143178 Add README and license information for bison and flex
Trac #11422
Signed-off-by: Shannon Woods
Signed-off-by: Gavriel State

git-svn-id: https://angleproject.googlecode.com/svn/trunk@33 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 03:58:59 +00:00
daniel@transgaming.com 1436e26153 Implements separate stencil support to proposed WebGL limitations
TRAC #11450
Author:    Shannon Woods
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@32 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 03:58:56 +00:00
daniel@transgaming.com f67f82ec8c Compiler - implement break/continue
TRAC #11441
Author:  Nicolas Capens
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@31 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 03:58:54 +00:00
daniel@transgaming.com 49bce7ef4a Compiler - implement matrix construction and equality
TRAC #11440
Author: Nicolas Capens
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@30 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-17 03:58:51 +00:00
daniel@transgaming.com 7a2c280974 Correcting un-returned depth size in utility function.
TRAC #11333
Implemented during masking conformance testing.

Author: Shannon Woods
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@29 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-16 06:23:33 +00:00
daniel@transgaming.com 0009d62451 Creates new depthstencils for surfaces.
Trac #11396

Creates new depthstencils for new windows when multiple windows exist,
repurposes original depthstencil if old windows have all been destroyed.
Author: Shannon Woods
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@28 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-16 06:23:31 +00:00
daniel@transgaming.com fe453651c4 Blend conformance bugfixes.
Trac #11327

Fixes a bug where color conversion swapped blue and green values.
Fixes a bug where CONSTANT_COLOR/CONSTANT_ALPHA conflict guard
failed to check for ONE_MINUS variants.

Author: Shannon Woods
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@27 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-16 06:23:28 +00:00
daniel@transgaming.com 12d5407ec2 Handle sampling from incomplete textures
TRAC #11321

Context owns incomplete textures of each texture type.
Also fix completeness determination: check minfilter to see if mipmapping is on.

Author:    Andrew Lewycky
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@26 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-16 06:23:26 +00:00
daniel@transgaming.com 416485fb9c Select texture type based on program usage.
TRAC #11410

Add Program::getSamplerType() and internal machinery to track the reported sampler uniforms.
Make State::samplerTexture into a 2D array with a dimension for sampler type.
Context::applyTextures queries the sampler type and asks for the right texture.

Author:    Andrew Lewycky
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/trunk@25 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-16 06:23:23 +00:00
daniel@transgaming.com 9efa6f6b3d Provide default return values for unreachable code paths.
TRAC #11414

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@24 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-16 06:23:20 +00:00