Commit Graph
268 Commits
Author SHA1 Message Date
Cooper Partin d28f611301 Fixed compressed texture support reporting for feature level 9_3
Change-Id: If6e27db912711532e184a3a716728a19653c0471
Reviewed-on: https://chromium-review.googlesource.com/249550
Tested-by: Cooper Partin <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-02-13 19:24:41 +00:00
Jamie Madill 10617310bc Update WebGL failures list.
Change-Id: I5cf9e873ddcb293f121a11bd620ce97ee718c049
Reviewed-on: https://chromium-review.googlesource.com/247760
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-02-12 19:38:01 +00:00
Geoff Lang 45b4e74a3a Move surface size information out of SurfaceImpl.
Some implementations need to query size information directly from their
native window instead of listening for size events and storing the result.

Also move mSwapInterval to SurfaceD3D since it doesn't need to be stored
in all cases and there is no query for it.  It no longer requires that the
SurfaceImpl's derivation remembers to set mSwapInterval in
setSwapInterval too.

BUG=angle:658

Change-Id: I499c1b8b842254636fc25ff5f2a90107af8fe327
Reviewed-on: https://chromium-review.googlesource.com/242039
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-02-12 18:58:59 +00:00
Geoff Lang f6bf23fd8f Split up the Display::create*Surface and have them match the API.
BUG=angle:658

Change-Id: Id0054406a5ce6f6ffef28ce84737547c1869efde
Reviewed-on: https://chromium-review.googlesource.com/242038
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-02-12 18:54:44 +00:00
Gregoire Payen de La Garanderie 5274202f36 Unbind unused stream out from the D3D11 pipeline to avoid conflicts.
Also allow points drawing without gl_PointSize if transform feedback is
active.

Change-Id: I172d423e847b35b94ebaea102dd97b695575c828
Reviewed-on: https://chromium-review.googlesource.com/246100
Tested-by: Gregoire Payen de La Garanderie <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-02-12 15:29:24 +00:00
Régis Fénéon 8310797003 Implement eglQueryContext
BUG=angle:895

Change-Id: I5e709f772d6222cdb7b5d7c060830a75eac9f815
Reviewed-on: https://chromium-review.googlesource.com/246490
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2015-02-09 18:39:40 +00:00
Jamie Madill 811b635267 Add a script to generate a new Renderer.
Also refactor our current Impl headers slightly to facilitate
parsing by the generation script.

BUG=angle:905

Change-Id: Ib86cff71d18e7f911cf526b27b8a82757bacd738
Reviewed-on: https://chromium-review.googlesource.com/245497
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-02-09 15:28:46 +00:00
Gregoire Payen de La Garanderie b3dced293d Implementing gl_InstanceID in the HLSL compiler.
Fixes:
dEQP-GLES3.functional.instanced.draw_arrays_instanced.instance_id
dEQP-GLES3.functional.instanced.draw_arrays_instanced.mixed
dEQP-GLES3.functional.instanced.draw_elements_instanced.instance_id
dEQP-GLES3.functional.instanced.draw_elements_instanced.mixed

BUG=angle:601

Change-Id: I6e120eebc90d00e025fc58f096064e6ed1da826b
Reviewed-on: https://chromium-review.googlesource.com/246911
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Gregoire Payen de La Garanderie <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2015-02-09 14:41:17 +00:00
Cooper Partin 4e47b92f99 Fix instanced point sprites when gl_PointSize is specified but not used
Change-Id: I2350fa60cae55f02d7b484c34544c035acaba6ad
Reviewed-on: https://chromium-review.googlesource.com/245703
Reviewed-by: Austin Kinross <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2015-02-05 18:11:03 +00:00
Geoff Lang 784cc8f61b Require 8 stencil bits in the BlitFramebufferANGLETest.
The test can fail if it uses a config where the default framebuffer does
not have a stencil buffer.

BUG=angle:658

Change-Id: I82eaf5b508182514439e69469e77591e1aceaf66
Reviewed-on: https://chromium-review.googlesource.com/246461
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-02-05 14:13:25 +00:00
Jamie Madill 78d9fcf2a2 Update failing WebGL expectations.
Change-Id: I0bde5c4e896aded773d2b9de7343883264625f52
Reviewed-on: https://chromium-review.googlesource.com/245807
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-02-03 21:13:37 +00:00
Geoff Lang c223dc6bdf Change Config to a struct and rename it's members.
BUG=angle:658

Change-Id: I18dab915730fc28815db8080b3614da821f9c8b1
Reviewed-on: https://chromium-review.googlesource.com/239901
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-02-03 20:42:09 +00:00
Geoff Lang 6812a55c84 Rewrite ConfigSet and make EGLConfig synonymous with egl::Config.
BUG=angle:658

Change-Id: I3c33faf18af0bfda00dc5babe6356d6c8661f032
Reviewed-on: https://chromium-review.googlesource.com/238862
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-02-03 20:41:57 +00:00
Geoff Lang 821f40a4d7 Fix conversion to bool warning.
BUG=453543

Change-Id: I287cc3b6e86df71eb3dfa3c82316ae56950913b3
Reviewed-on: https://chromium-review.googlesource.com/245833
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-02-03 20:28:42 +00:00
David Yen 0fbd128c5c Extension behavior is now reset between each shader translation unit.
The extension behavior was being shared between translation units,
this was causing states to be cached between shader compilers. This
has been fixed now by adding a new ResetExtensionBehavior() function.

A unit test has also been added for testing extensions when compiling
shaders. A test has been included which tests that the internal state
of the extension behavior is being reset properly.

BUG=453543
Change-Id: Icb2a07019b5db972dc75cdbbdece4b7e9757c682
Reviewed-on: https://chromium-review.googlesource.com/245522
Tested-by: David Yen <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2015-02-03 19:22:27 +00:00
Minmin Gong b8aee3bc1d Add UNPACK_ROW_LENGTH support to D3D11 renderer
Change-Id: I31ccffddcb04a45f19d3c3eb9a396c30e794b218
Reviewed-on: https://chromium-review.googlesource.com/243951
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Minmin Gong <[email protected]>
2015-02-02 22:53:04 +00:00
Jamie Madill f685991dc8 Fix ANGLETest::getPlatformRenderer.
Was mistakenly returning a boolean instead of EGLint.

BUG=angle:850

Change-Id: I07f0995d66783f62124d37f5ea8e595f516cc84f
Reviewed-on: https://chromium-review.googlesource.com/244844
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2015-01-30 22:10:21 +00:00
Jamie Madill c3b9b26ad1 Skip failing Texture tests on Intel D3D11.
There are currently some failures on the Chromium GPU FYI bots. The
failing machine is using an Intel HD 3000, and the group of failing
tests are the TextureTest.CopySubImageFloat_* group. I'm unable
to repro these failures, but disable the tests until we can fix them.

Also clean up our method of determining Renderer properties in
ANGLETest.

BUG=angle:850

Change-Id: I444b9d3497ea635fbd8957ac243b16c822c19d06
Reviewed-on: https://chromium-review.googlesource.com/244781
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2015-01-30 19:24:30 +00:00
Jamie Madill bc393df9cd Allow 32-bit float formats in ES2 CopyTexSubImage.
These corner case formats can come about from using floating
point textures and trying to copy between them. There currently
isn't a good alternative in WebGL 1 for copies.

BUG=angle:850

Change-Id: I3dc29e42b5ec7dcf071185bc09c6b3e9e3cb3207
Reviewed-on: https://chromium-review.googlesource.com/241048
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2015-01-29 18:50:01 +00:00
Gregoire Payen de La Garanderie 88fe1ad782 Update the texture storage after generateMipmaps and setStorage.
Also adds a few assert in SetData and various places to ensure that
images are not dirty before modifying the storage.

BUG=angle:873

Change-Id: I7cc922b33da0d79a1b5aefe216e9ccfaaf86a306
Reviewed-on: https://chromium-review.googlesource.com/241880
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Gregoire Payen de La Garanderie <[email protected]>
2015-01-29 18:45:29 +00:00
Geoff Lang b926627673 Update texture size information on egl[Bind|Release]TexImage.
BUG=450257

Change-Id: I7609131d78f255bf9f79b42f39b02303a5c14b60
Reviewed-on: https://chromium-review.googlesource.com/243915
Reviewed-by: Nicolas Capens <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-01-29 16:45:43 +00:00
Jamie Madill 3799714507 Defer dependent HLSL global var inits.
Some global initializers depend on other globals, for instance a
varying or attribute value. Since we use a static proxy variable for
these varyings, we need to initialize the global static after we
initialize the proxy in the shader preamble. This fixes a long-
standing compiler bug.

We should also add a WebGL test for this.

BUG=angle:878

Change-Id: I71db103a6b8c24fb862e0d8b32293da9bc2e8103
Reviewed-on: https://chromium-review.googlesource.com/243581
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-29 15:52:58 +00:00
Jamie Madill 167036a902 Update WebGL expected failures.
A new test 'sampler-struct-function-arg' fails with ToT WebGL.

Change-Id: Ie62208364ceacd4b980cb16f5de31cc4b5c62fa1
Reviewed-on: https://chromium-review.googlesource.com/243594
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-28 14:47:49 +00:00
Jamie Madill eac70a3168 Use JSON as startup parameters to BufferSubData test.
BUG=angle:744

Change-Id: I60287f3c612011f505f1bc20632efc4dd17001d3
Reviewed-on: https://chromium-review.googlesource.com/221375
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
2015-01-27 18:52:50 +00:00
Gregoire Payen de La Garanderie 4b3a29e2c8 Resize buffer storage on getLatestBufferStorage if needed.
BUG=angle:897

Change-Id: I3d6079b718bb5dd61cbd3098694204aae9bbc932
Reviewed-on: https://chromium-review.googlesource.com/243152
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Gregoire Payen de La Garanderie <[email protected]>
2015-01-27 18:46:31 +00:00
Geoff Lang 3b2f9f64dc Disable MipMapTests on all renderers.
Change-Id: Ic229ced16f667882521536db5bd483c76b24d600
Reviewed-on: https://chromium-review.googlesource.com/242905
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-01-23 21:09:51 +00:00
Geoff Lang cd83a2f210 Disable the MipMapTests on D3D11 FL 9.3.
Change-Id: Ibcb72f7b1aabcd98c4bebd91c3a57f5ba57eac3a
Reviewed-on: https://chromium-review.googlesource.com/242850
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-01-23 17:55:14 +00:00
Austin Kinross 62815bf47d Improve D3D11 FL9_3 zero-LOD workaround (e.g. TextureCubes)
D3D11 Feature Level 9_3 can't disable mipmaps on a mipmapped
texture, and sample from level zero of it. A previous commit
added a workaround for this in ANGLE to Texture2Ds. This
commit fixes some minor issues in that commit, and extends
the workaround to apply to TextureCubes too.

Change-Id: Ic97321af6f8bbf7ad5d96e58655c342db3978a6a
Reviewed-on: https://chromium-review.googlesource.com/241944
Tested-by: Austin Kinross <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-23 16:00:10 +00:00
Jamie Madill e50bf15f60 Disable HugeSetDataShouldNotCrash test.
This test flakes out on some Chromium bot configurations. It could
be that we need to redesign it to use mocks or something similar
to test reliably.

Change-Id: Ib323940d52db052e18d2352e45e029bbb1b64af0
Reviewed-on: https://chromium-review.googlesource.com/242023
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-20 21:39:16 +00:00
Cooper Partin e6664f0641 Added PointSprites Support for renderers that do not support Geometry Shaders
Change-Id: Iae9ac5f8fbba68dba5e49ccda7bb7eebb05c8e9a
Reviewed-on: https://chromium-review.googlesource.com/240450
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-01-20 14:58:01 +00:00
Olli Etuaho 7700ff65c9 Add basic support for ESSL3 vec2 (un)pack functions
The functions are emulated on HLSL, and use the native functions on
OpenGL 4.2+ and GLES3.0. Emulation for OpenGL versions <= 4.1 is not yet
implemented.

BUG=angle:865

Change-Id: I6803a1767dacdb3dca12f13924651fd38fcacb75
Reviewed-on: https://chromium-review.googlesource.com/240961
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Olli Etuaho <[email protected]>
2015-01-20 09:01:39 +00:00
Jamie Madill 958db2b6c5 Add rapidjson library to DEPS.
RapidJSON gives us the ability to use JSON in our performance
tests to specific the input. The license is very permissive
and according to the author the performance is excellent.

Chromium's JSON library unfortunately seems quite tied to the
"base" project.

BUG=angle:744

Change-Id: I64e72aad1ed6fa954acd851607032cb48a461348
Reviewed-on: https://chromium-review.googlesource.com/221374
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-19 15:44:34 +00:00
Austin Kinross e8c86274c3 MipmapTestES3's SetUp() doesn't conform to standards
Change-Id: I57dba132cd08bb1b3db2cda2fe0c31b97746e1a4
Reviewed-on: https://chromium-review.googlesource.com/241380
Tested-by: Austin Kinross <[email protected]>
Reviewed-by: Nico Weber <[email protected]>
2015-01-16 15:22:46 +00:00
Austin Kinross 276171b46d Disable MipmapTest::ThreeLevelsInitData test due to failure on D3D11
Change-Id: I5d1ee78fceb91c05f3925e753888b10cc81ec2b8
Reviewed-on: https://chromium-review.googlesource.com/241080
Tested-by: Austin Kinross <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2015-01-15 21:20:08 +00:00
Austin Kinross 215b37a631 Work around zero-LOD mipmap issue on D3D11 Feature Level 9_3
In OpenGL ES, it is possible to sample from level 0 of a mipmapped
texture by setting GL_TEXTURE_MIN_FILTER to GL_NEAREST.

This is possible in D3D9 and D3D11 Feature Level 10_0+ via various
methods. It's not possible in D3D11 Feature Level 9_3, though.
This change works around this restriction by creating two copies of
each texture on 9_3. The textures are identical, except one has
mipmaps and one doesn't.

The D3D11 renderer figures out which texture to use at the right
time, and keeps the textures in sync with each other as necessary.
Note: each texture is only created when it's needed. It's possible
that only one (or even neither) D3D texture will be created for a
given GL texture.

Change-Id: I3c17137b4f63b9158b3abf067ad8e5d5c49d2191
Reviewed-on: https://chromium-review.googlesource.com/234522
Tested-by: Austin Kinross <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2015-01-15 15:38:13 +00:00
Geoff Lang 691e58cd84 Merge all gl::Texture* classes.
The validation for sampler completeness had a lot of duplicated code.
The special cases have been merged into the base class by checking mTarget.

BUG=angle:681

Change-Id: I11d94c1432f8fc70a1edaaf8228bbc43c3c8fff3
Reviewed-on: https://chromium-review.googlesource.com/236932
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-01-14 21:14:19 +00:00
Jamie Madill d4b55a00d0 Fix "start" vertex being applied for instanced buffers.
In GLES, the start vertex only applies to non-instanced vertex
attributes.

BUG=angle:864
BUG=447140

Change-Id: Idd2afbfbd4c2e76e06b2704cc002fae26b353109
Reviewed-on: https://chromium-review.googlesource.com/239843
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Austin Kinross <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-09 21:41:01 +00:00
Jamie Madill ab549dadd4 Update WebGL expecations.
Change-Id: Ic318a929f43a48f0e957add5fab4bc3362be47b0
Reviewed-on: https://chromium-review.googlesource.com/239954
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-09 21:40:07 +00:00
Geoff Lang ea878cb958 Use typed tests for the gles conformance tests.
BUG=angle:497

Change-Id: I396411cc7c07047ef2fab70605de39287aaea879
Reviewed-on: https://chromium-review.googlesource.com/239515
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-01-09 15:00:09 +00:00
Geoff Lang 5879598bc3 Add a test for rendering to cube map faces.
BUG=angle:849

Change-Id: I9986e45256da6f4cdbd375dad95037464fbcf299
Reviewed-on: https://chromium-review.googlesource.com/239219
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-01-08 16:47:54 +00:00
Geoff Lang 4f89e3dd5f Add missing test files to angle_end2end_tests_sources.
Change-Id: I97217f4b4f42d9b9811185706587e2eb55270888
Reviewed-on: https://chromium-review.googlesource.com/239226
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-01-07 19:27:17 +00:00
Gregoire Payen de La Garanderie e172854954 Unwritten shader output variables should not crash.
BUG=angle:862

Change-Id: I8e7fa9b0d00bb1b2a32a8d60d8ceda998cea8e8c
Reviewed-on: https://chromium-review.googlesource.com/239160
Tested-by: Gregoire Payen de La Garanderie <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2015-01-07 15:44:25 +00:00
Austin Kinross 049743a99c Restrict depth buffer formats on D3D11 Feature Level 9_3
*_TYPELESS formats weren't supported in D3D10Level9 until
Windows 8. Some Win8 D3D9 drivers don't support them either.
To workaround this, we avoid _TYPELESS formats on D3D11 FL9_3.

BUG=angle:856
BUG=435726

Change-Id: I280dc7f87e3a2c737c14284ebb744188e7f10616
Reviewed-on: https://chromium-review.googlesource.com/237292
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Austin Kinross <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2015-01-05 20:44:08 +00:00
Austin Kinross 4fd18b1b81 Emulate large and negative viewports on D3D11 Feature Level 9_3
Like D3D9, D3D11 Feature Level 9_3 doesn't support large or negative
viewports. We have to emulate these in the vertex shader.

BUG=angle:858

Change-Id: I2bd53e3921dc3590cc7193164d73596deafca9ea
Reviewed-on: https://chromium-review.googlesource.com/236040
Tested-by: Austin Kinross <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-05 18:10:26 +00:00
Austin Kinross 324bcc460a Fix instancing on D3D11 9_3, by ensuring slot zero contains non-instanced data
D3D11 Feature Level 9_3 supports instancing, but slot 0 in the input
layout must not be instanced. D3D9 has a similar restriction, where
stream 0 must not be instanced. This restriction can be worked around
by remapping any non-instanced slot to slot 0. This works because
HLSL uses shader semantics to match the vertex inputs to the elements
in the input layout, rather than the slots.

BUG=angle:858

Change-Id: I67b2be9095afc206a4b9f107ed61356820551afe
Reviewed-on: https://chromium-review.googlesource.com/237270
Tested-by: Austin Kinross <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-05 18:09:01 +00:00
Nico Weber ce8bb2fa58 Improve standards conformance of ANGLE's testing code.
ANGLE's testing code recently got enabled in Chromium's builds. While it
builds fine with cl.exe, it isn't quite standards-conformant and doesn't
build with clang. Fix this.

There were three issues:

1. ANGLE_TYPED_TEST_CASE() is a variadic macro that tries to use
   __VA_ARGS__ as argument to a variadic template and then pass
   that template to another macro. However, [cpp.replace] describes
   that ANGLE_TYPED_TEST_CASE(Test, int, float) should be expanded
   to TYPED_TEST_CASE(Test, ::testing::Types<int, float>) which
   should be interpreted as a "call" of TYPED_TEST_CASE with the
   3 macro arguments `Test`, `::testing::Types<int`, and `float>`.
   As a fix, use a typedef for the variadic template and refer to
   it through the typedef in the macro call.

2. `#version` was used on its own line in a substitution of the
   SHADER_SOURCE macro. [cpp]p1 says that every line starting with
   a `#` is a preprocessing directive, and [cpp.replace]p11 says
   "If there are sequences of preprocessing tokens within the list
   of arguments that would otherwise act as preprocessing directives,
   the behavior is undefined" (with a footnote that this includes
   non-directives -- # followed by unknown text). As a fix, merge the
   `#version` line with the previous line. Now the line doesn't start
   with `#` and things are fine.

3. Unqualified lookup usually doesn't look into dependent bases. If
   this is desired, one usually has to make the call qualified, a
   good explanation for this is at
   http://eli.thegreenplace.net/2012/02/06/dependent-name-lookup-for-c-templates
   cl.exe doesn't implement this rule, and clang tries to emulate
   cl.exe's behavior to a certain extend when in Microsoft mode.
   However, that seems to not work for member templates with explicit
   types (filed http://llvm.org/PR22066 for this, but since it's not
   needed to parse Microsoft headers and not standards-conformant,
   I'm not sure if we'll fix that). As a fix, don't provide an explicit
   type, the inferred type is the same. This is also consistent with
   all the other tests in this file. (We might clean up -Wmicrosoft
   warnings in the future; if so I'll add the explicit this->s that
   are missing in this file when we do.)

BUG=chromium:445406

Change-Id: I77a2f3ab9601a1f0f39b56ed3d05217f123155b8
Reviewed-on: https://chromium-review.googlesource.com/238090
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-01-05 16:11:43 +00:00
Jamie Madill 21c1e45667 Fix a translator crash with index expressions.
This crash happened with certain bad shaders which used temporary
values as array (or other) index expresisons.

Fixes the crash covered in the WebGL test
"conformance/bugs/undefined-index-should-not-crash"

BUG=angle:857

Change-Id: I13e2ba6d5f1ab0846ac902021bc0b57cbb37d759
Reviewed-on: https://chromium-review.googlesource.com/237460
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-12-29 20:14:58 +00:00
Jamie Madill be12fa2238 Update WebGL expectations.
Change-Id: I69795b97ef032838cd43e889119405aaee66fa4f
Reviewed-on: https://chromium-review.googlesource.com/237329
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-12-23 18:41:09 +00:00
Jamie Madill 48825bea29 Disable FL9_3 tests because of Windows 7 failures.
These tests were failing on SwapChain11 with errors relating to
the Depth Stencil backbuffer.

BUG=angle:856
BUG=435726

Change-Id: Idd371a380e9b302d7d5e40437e9d76589872b750
Reviewed-on: https://chromium-review.googlesource.com/237450
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
2014-12-23 17:17:07 +00:00
Austin Kinross d5663b1cd0 Support remaining vertex attrib formats on D3D11 9_3
Change-Id: Id0d3ad6ec7764ed84ec504ad92eca81dff29aac8
Reviewed-on: https://chromium-review.googlesource.com/236043
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Austin Kinross <[email protected]>
2014-12-22 20:33:46 +00:00