external/angleproject/dx11proto.git
10 months agoInclude stddef.h so NULL is defined. master
apatrick@chromium.org [Wed, 5 Jun 2013 00:13:08 +0000 (00:13 +0000)]
Include stddef.h so NULL is defined.
Review URL: https://codereview.appspot.com/10025043

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2422 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agoMerged EXT_frag_depth changes into dx11proto branch
bajones@chromium.org [Fri, 31 May 2013 16:44:51 +0000 (16:44 +0000)]
Merged EXT_frag_depth changes into dx11proto branch

BUG=429

Review URL: https://codereview.appspot.com/9738048

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2419 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agoBump version for dx11proto branch.
shannonwoods@chromium.org [Wed, 29 May 2013 23:05:30 +0000 (23:05 +0000)]
Bump version for dx11proto branch.

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2261 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months ago Restore 64-bit support of the GLSL lexer.
shannonwoods@chromium.org [Wed, 29 May 2013 23:03:28 +0000 (23:03 +0000)]
Restore 64-bit support of the GLSL lexer.

    TRAC #23185
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
    Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2260 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agoRemoved checks for zero-length arrays because you can never define such arrays.
shannonwoods@chromium.org [Wed, 29 May 2013 22:54:02 +0000 (22:54 +0000)]
Removed checks for zero-length arrays because you can never define such arrays.
Also removed support for max-array-size. You can only define a fixed-size array.

TEST=WebGL conformance tests

Review URL: https://codereview.appspot.com/9697044

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2259 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agoRemoved code for unsupported pack-unpack language.
shannonwoods@chromium.org [Wed, 29 May 2013 22:53:55 +0000 (22:53 +0000)]
Removed code for unsupported pack-unpack language.

Review URL: https://codereview.appspot.com/9685045

Conflicts:

src/compiler/glslang_tab.cpp

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2258 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agoFix linker issue on Windows
shannonwoods@chromium.org [Wed, 29 May 2013 22:53:49 +0000 (22:53 +0000)]
Fix linker issue on Windows

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2257 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agoFix compiler warning on Windows
shannonwoods@chromium.org [Wed, 29 May 2013 22:53:43 +0000 (22:53 +0000)]
Fix compiler warning on Windows

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2256 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agobump version to 2243
shannonwoods@chromium.org [Wed, 29 May 2013 22:53:38 +0000 (22:53 +0000)]
bump version to 2243

Conflicts:

src/common/version.h

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2255 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agoAdd expression complexity and call stack depth limits.
shannonwoods@chromium.org [Wed, 29 May 2013 22:53:27 +0000 (22:53 +0000)]
Add expression complexity and call stack depth limits.

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2254 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agoAdd adapter LUID to EGL vendor string.
shannonwoods@chromium.org [Wed, 29 May 2013 22:53:18 +0000 (22:53 +0000)]
Add adapter LUID to EGL vendor string.

This is so Chrome can create another D3D device on the same adapter that can
share resources with ANGLE's D3D device.
Review URL: https://codereview.appspot.com/9225046
SVN URL: https://code.google.com/p/angleproject/source/detail?r=2210
TRAC #23166

Signed-off-by: Shannon Woods
Signed-off-by: Geoff Lang
Merged-by: Jamie Madill
Author: apatrick@chromium.org

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2253 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agoFix CONSTANT_ALPHA and ONE_MINUS_CONSTANT_ALPHA blend modes in the D3D11 path.
shannonwoods@chromium.org [Wed, 29 May 2013 22:53:12 +0000 (22:53 +0000)]
Fix CONSTANT_ALPHA and ONE_MINUS_CONSTANT_ALPHA blend modes in the D3D11 path.

TRAC #23124

Signed-off-by: Shannon Woods
Signed-off-by: Geoff Lang
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2252 736b8ea6-26fd-11df-bfd4-992fa37f6226

10 months agoAdd missing intrin.h include for __cpuid.
shannonwoods@chromium.org [Mon, 20 May 2013 16:23:27 +0000 (16:23 +0000)]
Add missing intrin.h include for __cpuid.
Landing on behalf of Net147

Review URL: https://codereview.appspot.com/8615046/

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2241 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoBumping version number for dx11proto
shannonwoods@chromium.org [Fri, 17 May 2013 23:44:48 +0000 (23:44 +0000)]
Bumping version number for dx11proto

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2240 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoUsed size_t for object size instead of signed int.
shannonwoods@chromium.org [Fri, 17 May 2013 23:34:59 +0000 (23:34 +0000)]
Used size_t for object size instead of signed int.
BUG=crbug 179653
R=aedla@chromium.org, kbr@chromium.org

Review URL: https://codereview.appspot.com/8834048

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2239 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoClamped negative index access.
shannonwoods@chromium.org [Fri, 17 May 2013 23:34:54 +0000 (23:34 +0000)]
Clamped negative index access.

Fixed error that allowed negative index for accessing
vector, matrix, and array. Now we report compile error
and clamp the index to 0.

Re-arranged code around it to handle negative index
at the one location.

BUG=crbug.com/239411
TEST=bug test case
R=aedla@chromium.org, kbr@chromium.org

Review URL: https://codereview.appspot.com/9193045

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2238 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoRefactor location tracking.
shannonwoods@chromium.org [Fri, 17 May 2013 23:34:43 +0000 (23:34 +0000)]
Refactor location tracking.

R=kbr@chromium.org

Review URL: https://codereview.appspot.com/9078046

Conflicts:

src/compiler/glslang_tab.cpp
src/compiler/glslang_tab.h

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2237 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoRemove dead code left over from the old preprocessor.
shannonwoods@chromium.org [Fri, 17 May 2013 23:34:38 +0000 (23:34 +0000)]
Remove dead code left over from the old preprocessor.

Review URL: https://codereview.appspot.com/9309044

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2236 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoRefactor class to represent structure.
shannonwoods@chromium.org [Fri, 17 May 2013 23:34:30 +0000 (23:34 +0000)]
Refactor class to represent structure.

We had a TTypeLine to represent a structure field,
which simply encapsulated a TType and line number.
The line number was only used during parsing for error reporting.
There is no need to store a line number because it is already
available in the parser token.

TEST=WebGL conformance tests
R=kbr@chromium.org

Review URL: https://codereview.appspot.com/9223045

Additional edits required for dx11proto branch:

    src/compiler/OutputHLSL.cpp
    src/compiler/Types.h

Conflicts:

src/compiler/glslang_tab.cpp
src/compiler/glslang_tab.h

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2235 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoDelete dead code for cloning various types.
shannonwoods@chromium.org [Fri, 17 May 2013 23:34:25 +0000 (23:34 +0000)]
Delete dead code for cloning various types.

R=kbr@chromium.org

Review URL: https://codereview.appspot.com/9242043

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2234 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoWe don't need to keep the param variable around for function prototypes.
shannonwoods@chromium.org [Fri, 17 May 2013 23:34:20 +0000 (23:34 +0000)]
We don't need to keep the param variable around for function prototypes.

Saves 20% memory for global symbol initialization

R=alokp@chromium.org

Review URL: https://codereview.appspot.com/9152043

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2233 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoA special state to track field selection is not necessary.
shannonwoods@chromium.org [Fri, 17 May 2013 23:34:14 +0000 (23:34 +0000)]
A special state to track field selection is not necessary.

Identifier is sufficient to parse struct fieldname.

TEST=WebGL conformance tests.

Review URL: https://codereview.appspot.com/8709048

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2232 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoLexer does not need to handle unknown-char case.
shannonwoods@chromium.org [Fri, 17 May 2013 23:34:09 +0000 (23:34 +0000)]
Lexer does not need to handle unknown-char case.

It is handled by the preprocessor. Added an assert.

TEST=WebGL conformance tests.
TBR=kbr@chromium.org

Review URL: https://codereview.appspot.com/8653052

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2231 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoLexer does not need a state stack now that it does not handle comments.
shannonwoods@chromium.org [Fri, 17 May 2013 23:34:04 +0000 (23:34 +0000)]
Lexer does not need a state stack now that it does not handle comments.

TEST=WebGL conformance tests
TBR=kbr@chromium.org

Review URL: https://codereview.appspot.com/8983043

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2230 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoRobust distinction between IDENTIFIER and TYPE_NAME tokens.
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:57 +0000 (23:33 +0000)]
Robust distinction between IDENTIFIER and TYPE_NAME tokens.

To distinguish the tokens we used to track the lexer context,
which is fragile. This patch implements a better way -
combine the two tokens into a common parser rule and let
the parser context decide if the declaration is valid,
which it already does by checking the naming conflicts.

TEST=WebGL conformance tests.

Review URL: https://codereview.appspot.com/8797044

Conflicts:

src/compiler/glslang_tab.cpp
src/compiler/glslang_tab.h

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2229 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoDelete dead-code for handling comments and invalid octal integers. These are already...
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:53 +0000 (23:33 +0000)]
Delete dead-code for handling comments and invalid octal integers. These are already handled by the preprocessor.

TEST=WebGL conformance tests.

Review URL: https://codereview.appspot.com/8632053

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2228 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoDeleted unnecessary TParseContext::AfterEOF.
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:47 +0000 (23:33 +0000)]
Deleted unnecessary TParseContext::AfterEOF.

TBR=kbr@chromium.org

Review URL: https://codereview.appspot.com/8927045

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2227 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoReformat tokenizer. No functional changes.
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:42 +0000 (23:33 +0000)]
Reformat tokenizer. No functional changes.

TEST=WebGL conformance tests.
TBR=kbr@chromium.org

Review URL: https://codereview.appspot.com/8925044

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2226 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoValidate allocation size in PoolAllocator.
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:37 +0000 (23:33 +0000)]
Validate allocation size in PoolAllocator.
Note that I am planning to get rid of PoolAllocator entirely.

BUG=crbug 179654

Review URL: https://codereview.appspot.com/8662046

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2225 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoAdd an extension describing the new D3D renderer chooser behavior in eglGetDisplay.
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:33 +0000 (23:33 +0000)]
Add an extension describing the new D3D renderer chooser behavior in eglGetDisplay.

TRAC #23029

Author: Shannon Woods
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2224 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoControl the creation of DX9 or DX11 renderers through eglGetDisplay.
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:27 +0000 (23:33 +0000)]
Control the creation of DX9 or DX11 renderers through eglGetDisplay.

TRAC #23029
Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2223 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoUpdate the shader compiler/translator bison-generated source files with the latest...
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:21 +0000 (23:33 +0000)]
Update the shader compiler/translator bison-generated source files with the latest cygwin releases.

TRAC #22934

Signed-off-by: Nicolas Capens
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2222 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoAdd support for querying gl_DepthRange as an active uniform via GetActiveUniform.
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:15 +0000 (23:33 +0000)]
Add support for querying gl_DepthRange as an active uniform via GetActiveUniform.

TRAC #22865

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2221 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoFall back to creating a Release runtime Direct3D device if Debug device creation...
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:10 +0000 (23:33 +0000)]
Fall back to creating a Release runtime Direct3D device if Debug device creation fails.

TRAC #22881

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2220 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoAdd a fast path for single render target masked clears in Renderer11.
shannonwoods@chromium.org [Fri, 17 May 2013 23:33:02 +0000 (23:33 +0000)]
Add a fast path for single render target masked clears in Renderer11.

TRAC #22898

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

Conflicts:
src/libGLESv2/libGLESv2.vcxproj.filters

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2219 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoMigrate calls to releasing COM objects in Renderer11 to new SafeRelease helper method.
shannonwoods@chromium.org [Fri, 17 May 2013 23:32:57 +0000 (23:32 +0000)]
Migrate calls to releasing COM objects in Renderer11 to new SafeRelease helper method.

TRAC #22898

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2218 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoAdd a helper method to gl::Framebuffer to check if we are drawing to color attachment...
shannonwoods@chromium.org [Fri, 17 May 2013 23:32:51 +0000 (23:32 +0000)]
Add a helper method to gl::Framebuffer to check if we are drawing to color attachment 0 only.

TRAC #22898

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2217 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoEnable base address randomization.
shannonwoods@chromium.org [Fri, 17 May 2013 23:32:45 +0000 (23:32 +0000)]
Enable base address randomization.

TRAC #22937
Signed-off-by: Shannon Woods
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2216 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoStore optimization level in program binaries and do not load those compiled with...
apatrick@chromium.org [Wed, 15 May 2013 19:19:08 +0000 (19:19 +0000)]
Store optimization level in program binaries and do not load those compiled with a different level.
Review URL: https://codereview.appspot.com/9427043

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2213 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoBump version.h for dx11proto.
apatrick@chromium.org [Thu, 9 May 2013 19:54:57 +0000 (19:54 +0000)]
Bump version.h for dx11proto.
Review URL: https://codereview.appspot.com/9330043

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2204 736b8ea6-26fd-11df-bfd4-992fa37f6226

11 months agoMerge r2002 to dx11proto: Remove dependency on dwmapi.dll.
apatrick@chromium.org [Thu, 9 May 2013 19:52:53 +0000 (19:52 +0000)]
Merge r2002 to dx11proto: Remove dependency on dwmapi.dll.
Review URL: https://codereview.appspot.com/9279048

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2203 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoBump version.h
shannon.woods%transgaming.com@gtempaccount.com [Fri, 12 Apr 2013 23:30:41 +0000 (23:30 +0000)]
Bump version.h

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2053 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoEnable broadcasting gl_FragColor to all draw buffer color attachments in ES2 contexts.
shannon.woods%transgaming.com@gtempaccount.com [Fri, 12 Apr 2013 23:29:38 +0000 (23:29 +0000)]
Enable broadcasting gl_FragColor to all draw buffer color attachments in ES2 contexts.

TRAC #22888

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2052 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoFix not correctly allowing the 'require' keyword in shaders enabling EXT_draw_buffers.
shannon.woods%transgaming.com@gtempaccount.com [Fri, 12 Apr 2013 23:29:32 +0000 (23:29 +0000)]
Fix not correctly allowing the 'require' keyword in shaders enabling EXT_draw_buffers.

TRAC #22888

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2051 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoReport gl_MaxDrawBuffers as 1 when the MRT extension is disabled, and the implementat...
shannon.woods%transgaming.com@gtempaccount.com [Fri, 12 Apr 2013 23:29:24 +0000 (23:29 +0000)]
Report gl_MaxDrawBuffers as 1 when the MRT extension is disabled, and the implementation value otherwise.

TRAC #22888

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2050 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdds Jamie and Geoff to CONTRIBUTORS file
shannon.woods%transgaming.com@gtempaccount.com [Fri, 12 Apr 2013 23:29:18 +0000 (23:29 +0000)]
Adds Jamie and Geoff to CONTRIBUTORS file

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2049 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoRevert device lost display mode changed handling in the D3D9 path.
shannon.woods%transgaming.com@gtempaccount.com [Fri, 12 Apr 2013 23:29:13 +0000 (23:29 +0000)]
Revert device lost display mode changed handling in the D3D9 path.

See https://codereview.appspot.com/8038044

TRAC #22882

Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2048 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdd an ExternalCompilerOptions parameter for use with MSBuild on the command line.
shannon.woods%transgaming.com@gtempaccount.com [Fri, 12 Apr 2013 23:29:07 +0000 (23:29 +0000)]
Add an ExternalCompilerOptions parameter for use with MSBuild on the command line.

This is necessary for continuous integration to pass D3D11 mode build flags.

TRAC #22555

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2047 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoFix glDrawBuffersEXT to be compliant with the spec.
shannon.woods%transgaming.com@gtempaccount.com [Wed, 27 Mar 2013 16:06:19 +0000 (16:06 +0000)]
Fix glDrawBuffersEXT to be compliant with the spec.

Bind GL_NONE to buffers beyond the specified input count, and require a buffer count of one for the default framebuffer.

TRAC #22835

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2039 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoBump version.h
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:45:40 +0000 (18:45 +0000)]
Bump version.h

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2037 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdd SwapChain::recreate for dealing with certain cases of lost devices.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:43:24 +0000 (18:43 +0000)]
Add SwapChain::recreate for dealing with certain cases of lost devices.

See https://code.google.com/p/angleproject/source/detail?r=1993

TRAC #22826

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2036 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoWhen CheckDeviceStats returns S_PRESENT_MODE_CHANGED, reset display mode and retest...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:43:18 +0000 (18:43 +0000)]
When CheckDeviceStats returns S_PRESENT_MODE_CHANGED, reset display mode and retest for device lost.

Unless the display mode is reset, CheckDeviceLost can keep returning
S_PRESENT_MODE_CHANGED, potentially masking a device lost on account of a GPU
hang, causing ANGLE to fail to report context lost.
Review URL: https://codereview.appspot.com/7381061

TRAC #22720

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2035 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoFix a warning in the cast of Renderer9::mDeviceCaps.MaxAnisotropy.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:43:12 +0000 (18:43 +0000)]
Fix a warning in the cast of Renderer9::mDeviceCaps.MaxAnisotropy.

See http://code.google.com/p/angleproject/source/detail?r=2000

TRAC #22826

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2034 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoFast path for BGRA to RGBA readPixels conversions.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:43:06 +0000 (18:43 +0000)]
Fast path for BGRA to RGBA readPixels conversions.

From http://code.google.com/p/angleproject/source/detail?r=1999

TRAC #22825

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2033 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdd a multiple render targets sample using EXT_draw_buffers. Requires the D3D11-enabl...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:42:59 +0000 (18:42 +0000)]
Add a multiple render targets sample using EXT_draw_buffers. Requires the D3D11-enabled ANGLE.

TRAC #22797

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2032 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoEnable MRT support by exposing glDrawBuffersEXT to the application.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:42:53 +0000 (18:42 +0000)]
Enable MRT support by exposing glDrawBuffersEXT to the application.

TRAC #22710

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2031 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoFix an improper upper case case 'B' in getFirstColorbuffer.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:42:43 +0000 (18:42 +0000)]
Fix an improper upper case case 'B' in getFirstColorbuffer.

TRAC #22679

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2030 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoFix D3D11 depth/stencil framebuffer blit.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:42:19 +0000 (18:42 +0000)]
Fix D3D11 depth/stencil framebuffer blit.

D3D11 requires the pSrcBox parameter to be NULL for depth/stencil CopySubresourceRegion calls.

TRAC #22679

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2029 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoImplement multiple render target support in glBlitFramebufferANGLE.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:42:11 +0000 (18:42 +0000)]
Implement multiple render target support in glBlitFramebufferANGLE.

TRAC #22679

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2028 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoRefactor Renderer11::blit to use simpler control flow.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:42:05 +0000 (18:42 +0000)]
Refactor Renderer11::blit to use simpler control flow.

TRAC #22679

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2027 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdded flag to suppress D3D11 warnings about missing render target views when drawing...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:41:59 +0000 (18:41 +0000)]
Added flag to suppress D3D11 warnings about missing render target views when drawing multiple render targets.

TRAC #22679

Signed-off-by: Geoff Lag
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2026 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdded Renderer11 methods to set a one-time render target, and unapply render target...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:41:52 +0000 (18:41 +0000)]
Added Renderer11 methods to set a one-time render target, and unapply render target state.

TRAC #22679

Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2025 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdded support for line continuations.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:41:44 +0000 (18:41 +0000)]
Added support for line continuations.

TRAC #22713
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2024 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoPixel shaders support MRT output.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:41:38 +0000 (18:41 +0000)]
Pixel shaders support MRT output.

TRAC #22668

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2023 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoShader and Compiler track uses of gl_FragCoord and gl_FragData and MRT extension...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:41:30 +0000 (18:41 +0000)]
Shader and Compiler track uses of gl_FragCoord and gl_FragData and MRT extension usage.

TRAC #22668

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2022 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoBuiltInResources initialized with MRT limits from renderer.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:41:24 +0000 (18:41 +0000)]
BuiltInResources initialized with MRT limits from renderer.

TRAC #22668

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2021 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoStore the BuildInResources in the Compiler class so the draw buffer data can be read...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:41:17 +0000 (18:41 +0000)]
Store the BuildInResources in the Compiler class so the draw buffer data can be read during shader output.

TRAC #22668

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2020 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdd support for multiple render targets in glClear.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:41:09 +0000 (18:41 +0000)]
Add support for multiple render targets in glClear.

TRAC #22659

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2019 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdded DRAW_BUFFERx_EXT support to getIntegerv and related functions.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:41:03 +0000 (18:41 +0000)]
Added DRAW_BUFFERx_EXT support to getIntegerv and related functions.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2018 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdd and implement glDrawBuffersEXT entry point to libGLESv2.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:40:57 +0000 (18:40 +0000)]
Add and implement glDrawBuffersEXT entry point to libGLESv2.

TRAC #22657

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2017 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoRefactor Renderer11::getRenderTargetResource to accept a gl::Renderbuffer instead...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:40:50 +0000 (18:40 +0000)]
Refactor Renderer11::getRenderTargetResource to accept a gl::Renderbuffer instead of a gl::Framebuffer.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2016 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoEnable multiple render targets in Renderer11::applyRenderTarget.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:40:44 +0000 (18:40 +0000)]
Enable multiple render targets in Renderer11::applyRenderTarget.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2015 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdd helper functions to safely release Windows COM resources, and arrays of COM resou...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:40:38 +0000 (18:40 +0000)]
Add helper functions to safely release Windows COM resources, and arrays of COM resources.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2014 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoRename renderbufferObject to colorbuffer in Renderer11::applyRenderTarget.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:40:32 +0000 (18:40 +0000)]
Rename renderbufferObject to colorbuffer in Renderer11::applyRenderTarget.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2013 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoSafely promote uninitialized constants.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:40:26 +0000 (18:40 +0000)]
Safely promote uninitialized constants.

TRAC #22676
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2012 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoDon't assume unary operations on constants will be folded into a constant.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:40:20 +0000 (18:40 +0000)]
Don't assume unary operations on constants will be folded into a constant.

TRAC #22676
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2011 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoIgnore constants that have not been initialized.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:40:15 +0000 (18:40 +0000)]
Ignore constants that have not been initialized.

TRAC #22676
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2010 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoProvide safer and more convenient constant union accessors.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:40:06 +0000 (18:40 +0000)]
Provide safer and more convenient constant union accessors.

TRAC #22676
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2009 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoRemove the old single-color-attachment calls from gl::Framebuffer, preferring the...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:39:56 +0000 (18:39 +0000)]
Remove the old single-color-attachment calls from gl::Framebuffer, preferring the new multiple-attachment versions.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2008 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdd multiple color buffer attachments points to gl::Framebuffer.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:39:49 +0000 (18:39 +0000)]
Add multiple color buffer attachments points to gl::Framebuffer.

Also addded the checks for framebuffer completeness as defined by the ES2 spec and EXT_draw_buffers.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2007 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdd const qualifiers to several methods in gl::Framebuffer.
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:39:42 +0000 (18:39 +0000)]
Add const qualifiers to several methods in gl::Framebuffer.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2006 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAllow the application to query the maximum number of color attachment point values...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:39:36 +0000 (18:39 +0000)]
Allow the application to query the maximum number of color attachment point values with GetIntegerv.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2005 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdded getMaxRenderTargets() to Renderer, for a runtime-specific value for the maximum...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:39:28 +0000 (18:39 +0000)]
Added getMaxRenderTargets() to Renderer, for a runtime-specific value for the maximum simulatenous render targets.

We will report this as our maximum draw buffer and color attachment count.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2004 736b8ea6-26fd-11df-bfd4-992fa37f6226

12 months agoAdd necessary defines and function prototypes for EXT_draw_buffers and multiple color...
shannon.woods%transgaming.com@gtempaccount.com [Sat, 23 Mar 2013 18:39:22 +0000 (18:39 +0000)]
Add necessary defines and function prototypes for EXT_draw_buffers and multiple color attachment points to gl2ext.h.

TRAC #22656

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@2003 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoBump ANGLE_SH_VERSION to 110.
shannon.woods@transgaming.com [Tue, 5 Mar 2013 19:49:38 +0000 (19:49 +0000)]
Bump ANGLE_SH_VERSION to 110.

The bump to 109 in r1984 collided with a similar version change in dx11proto branch (r1738).
Review URL: https://codereview.appspot.com/7446050

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1992 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoEnabled FRAGMENT_PRECISION_HIGH unconditionally for ANGLE.
shannon.woods@transgaming.com [Tue, 5 Mar 2013 19:49:32 +0000 (19:49 +0000)]
Enabled FRAGMENT_PRECISION_HIGH unconditionally for ANGLE.
Review URL: https://codereview.appspot.com/7460048

Conflicts:
src/libGLESv2/Shader.cpp

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1991 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoAdded preprocessor support for GL_FRAGMENT_PRECISION_HIGH.
shannon.woods@transgaming.com [Tue, 5 Mar 2013 19:49:22 +0000 (19:49 +0000)]
Added preprocessor support for GL_FRAGMENT_PRECISION_HIGH.
I will send the tests in a separate patch because I need to refactor the way compiler_tests are setup.
Review URL: https://codereview.appspot.com/7402051

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1990 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoFixed compile error for preprocessor tests.
shannon.woods@transgaming.com [Tue, 5 Mar 2013 19:49:16 +0000 (19:49 +0000)]
Fixed compile error for preprocessor tests.
Review URL: https://codereview.appspot.com/7388051

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1989 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoFixes infinite recursion in QueryX::getResult due to similarly named base class accessor.
shannon.woods@transgaming.com [Tue, 5 Mar 2013 19:49:10 +0000 (19:49 +0000)]
Fixes infinite recursion in QueryX::getResult due to similarly named base class accessor.

TRAC #22716

Signed-off-by: Geoff Lang
Signed-off-by: Nicolas Capens
Author: Shannon Woods

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1988 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoMake position the first vertex output varying on DX9 again to work around an NVIDIA...
shannon.woods@transgaming.com [Fri, 1 Mar 2013 20:06:18 +0000 (20:06 +0000)]
Make position the first vertex output varying on DX9 again to work around an NVIDIA driver issue.

TRAC #22688
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1982 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoFix warning as error in Renderer.cpp.
apatrick@chromium.org [Fri, 1 Mar 2013 00:59:21 +0000 (00:59 +0000)]
Fix warning as error in Renderer.cpp.
Review URL: https://codereview.appspot.com/7420046

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1981 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoFix build_angle.gypi so libGLESv2 and libEGL can find precompiled.h.
apatrick@chromium.org [Fri, 1 Mar 2013 00:59:13 +0000 (00:59 +0000)]
Fix build_angle.gypi so libGLESv2 and libEGL can find precompiled.h.
Review URL: https://codereview.appspot.com/7450045

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1980 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoUpdate build revision
shannon.woods@transgaming.com [Thu, 28 Feb 2013 23:24:04 +0000 (23:24 +0000)]
Update build revision

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1977 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoFixed plain integer pointers being passed to ShGetInfo which expects size_t pointers.
shannon.woods@transgaming.com [Thu, 28 Feb 2013 23:21:14 +0000 (23:21 +0000)]
Fixed plain integer pointers being passed to ShGetInfo which expects size_t pointers.

TRAC #22678

Signed-off-by: Nicolas Capens
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1976 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoUpdated the error handling of compressed image sizes based on the ANGLE_texture_compr...
shannon.woods@transgaming.com [Thu, 28 Feb 2013 23:21:09 +0000 (23:21 +0000)]
Updated the error handling of compressed image sizes based on the ANGLE_texture_compression_dxt spec.

TRAC #13332

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1975 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoFixed a bug where the texture would not be marked as dirty if mLodOffset was not...
shannon.woods@transgaming.com [Thu, 28 Feb 2013 23:21:03 +0000 (23:21 +0000)]
Fixed a bug where the texture would not be marked as dirty if mLodOffset was not zero.

TRAC #13332

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1974 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoRemoved lod level subtraction since TextureStorage::levelCount already subtracts...
shannon.woods@transgaming.com [Thu, 28 Feb 2013 23:20:57 +0000 (23:20 +0000)]
Removed lod level subtraction since TextureStorage::levelCount already subtracts the lod level.

TRAC #13332

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1973 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoImage11 now generates multiple mip levels in its staging texture if a lod offset...
shannon.woods@transgaming.com [Thu, 28 Feb 2013 23:20:51 +0000 (23:20 +0000)]
Image11 now generates multiple mip levels in its staging texture if a lod offset is required. TextureStorage11::updateSubresourceLevel now takes a subresource index on the source texture and copies to the correct subresource if mLodOffset is non-zero.

TRAC #13332

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1972 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoMade Image11::getStagingTexture private and removed the undefined Image11::updateStag...
shannon.woods@transgaming.com [Thu, 28 Feb 2013 23:20:45 +0000 (23:20 +0000)]
Made Image11::getStagingTexture private and removed the undefined Image11::updateStagingTexture method.

TRAC #13332

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1971 736b8ea6-26fd-11df-bfd4-992fa37f6226

13 months agoFixed a bug where the wrong number of mip levels would be generated if levels was...
shannon.woods@transgaming.com [Thu, 28 Feb 2013 23:20:39 +0000 (23:20 +0000)]
Fixed a bug where the wrong number of mip levels would be generated if levels was zero and the lod offset was non-zero.

TRAC #13332

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: http://angleproject.googlecode.com/svn/branches/dx11proto@1970 736b8ea6-26fd-11df-bfd4-992fa37f6226