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

9132 Коммитов

Автор SHA1 Сообщение Дата
daniel@transgaming.com 6c78521ea3 Implement glGetAttachedShaders and glGetShaderPrecisionFormat.
TRAC #11599
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@85 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-30 03:36:17 +00:00
daniel@transgaming.com 02bc159423 Support software vertex processing
TRAC #11632
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@84 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-30 03:36:13 +00:00
alokp@chromium.org 4388487c8e Moved code to unmangle function name to a common place and used it in both OutputGLSL and OutputHLSL.
Review URL: http://codereview.appspot.com/838041

git-svn-id: https://angleproject.googlecode.com/svn/trunk@83 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-30 00:08:52 +00:00
alokp@chromium.org 60fe407c36 Added TIntermSelection::usesTernaryOperator() to distinguish between selection nodes using ternary operator and if-else. Used in both OutputGLSL and OutputHLSL.
Review URL: http://codereview.appspot.com/830042

git-svn-id: https://angleproject.googlecode.com/svn/trunk@82 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-29 20:58:29 +00:00
alokp@chromium.org 1180ea73f5 Fixed the title of texture-wrap sample.
Review URL: http://codereview.appspot.com/834041

git-svn-id: https://angleproject.googlecode.com/svn/trunk@81 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-29 19:43:46 +00:00
daniel@transgaming.com 76dbf17ff1 Support UNSIGNED_BYTE indices in DrawElements
Trac #11393
Support was added a prior patch but this wasn't activated

git-svn-id: https://angleproject.googlecode.com/svn/trunk@80 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-28 19:36:20 +00:00
daniel@transgaming.com 5e89073150 Update .gitignore
Use better wildcards to hide files we don't commit

git-svn-id: https://angleproject.googlecode.com/svn/trunk@79 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-28 19:36:18 +00:00
daniel@transgaming.com 0361b92f3f Compiler - active uniforms and attributes
TRAC #11590
Preparation refactoring that removes UniformType since there are already GL enums for uniform types.
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@78 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-28 19:36:15 +00:00
daniel@transgaming.com 93a96c3eee Compiler - implement vector times matrix operation
TRAC #11611

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

git-svn-id: https://angleproject.googlecode.com/svn/trunk@77 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-28 19:36:13 +00:00
daniel@transgaming.com cba5057cf3 Compiler - implement shader and program queries
TRAC #11599
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@76 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-28 19:36:09 +00:00
daniel@transgaming.com e78c0c9975 Compiler - only declare used HLSL functions
TRAC #11315
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@75 736b8ea6-26fd-11df-bfd4-992fa37f6226
2010-03-28 19:36:06 +00:00
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