Add ANGLE_depth_texture specification

Trac #20893

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1102 736b8ea6-26fd-11df-bfd4-992fa37f6226
Detect depth texture support using INTZ and NULL textures

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1103 736b8ea6-26fd-11df-bfd4-992fa37f6226
Allow depth and depth-stencil formats and types for textures and update utility functions

Trac #20875
Signed-off-by: Nicolas Capens

TexImage2D accepts
  format,internalformat=DEPTH_COMPONENT, type=UNSIGNED_SHORT
  format,internalformat=DEPTH_COMPONENT, type=UNSIGNED_INT
  format,internalformat=DEPTH_STENCIL_OES, type=UNSIGNED_INT_24_8_OES

TexSubImage2D accepts
  format=DEPTH_COMPONENT, type=UNSIGNED_SHORT
  format=DEPTH_COMPONENT, type=UNSIGNED_INT
  format=DEPTH_STENCIL_OES, type=UNSIGNED_INT_24_8_OES

TexStorage2DEXT accepts
  internalformat=DEPTH_COMPONENT16
  internalformat=DEPTH_COMPONENT32_OES
  internalformat=DEPTH24_STENCIL8_OES

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1104 736b8ea6-26fd-11df-bfd4-992fa37f6226
Report errors for unsupported Depth/stencil texture operations

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1105 736b8ea6-26fd-11df-bfd4-992fa37f6226
Move glTexSubImage early out check after more of the error checks are done.

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1106 736b8ea6-26fd-11df-bfd4-992fa37f6226
Refactor texture usage logic to helper function

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1107 736b8ea6-26fd-11df-bfd4-992fa37f6226
Pass the usage parameter into TextureStorage instead of passing a boolean

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1108 736b8ea6-26fd-11df-bfd4-992fa37f6226
Factor renderability check into GetTextureUsage

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1109 736b8ea6-26fd-11df-bfd4-992fa37f6226
Add TextureStorage support for INTZ depth textures and ensure Images never create INTZ surfaces

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1110 736b8ea6-26fd-11df-bfd4-992fa37f6226
Add an IsDepthFormat helper function

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1111 736b8ea6-26fd-11df-bfd4-992fa37f6226
do some cleanup in Framebuffer::completeness

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1112 736b8ea6-26fd-11df-bfd4-992fa37f6226
Update FBO completeness checks for depth textures

Trac #20875
Signed-off-by: Nicolas Capens

- improve missing attachment logic to allow no color attachments
- disallow depth texture color attachments
- allow texture depth and stencil attachments
- update simulaneous depth/stencil logic

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1113 736b8ea6-26fd-11df-bfd4-992fa37f6226
Ensure all getDepthStencil and getRenderTarget calls consistently handle references to the underlying d3d surfaces

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1114 736b8ea6-26fd-11df-bfd4-992fa37f6226
Apply the depth texture correctly as the DepthStencil surface in applyRenderTarget

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1115 736b8ea6-26fd-11df-bfd4-992fa37f6226
Advertise support for ANGLE_depth_texture

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1116 736b8ea6-26fd-11df-bfd4-992fa37f6226
Adjust the maximum loop iterations to keep the HLSL compiler happy

Trac #20913
Signed-off-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1117 736b8ea6-26fd-11df-bfd4-992fa37f6226
Output the complete function at once to avoid having to erase the function arguments.

TRAC #20737
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1118 736b8ea6-26fd-11df-bfd4-992fa37f6226
Added Lod0 versions of texture sampling intrinsics.

TRAC #20737
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1119 736b8ea6-26fd-11df-bfd4-992fa37f6226
Add analysis utility to detect discontinuities.

TRAC #20737
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1120 736b8ea6-26fd-11df-bfd4-992fa37f6226
Added a traverser for detecting gradient operations.

TRAC #20737
Signed-off-by: Daniel Koch
Author: Nicolas Capens

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