Commit Graph
19 Commits
Author SHA1 Message Date
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
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
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
Geoff Lang 0d3683c425 Update ANGLE_platform_angle to allow requesting of Renderer versions.
Added enums to allow users to request major and minor versions of the
underlying API and if a WARP device is used.

BUG=angle:490

Change-Id: I0bfb2ac8d327da28a47cc8e6346300e47ab9538c
Reviewed-on: https://chromium-review.googlesource.com/225081
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-11-03 17:56:14 +00:00
Jamie Madill 4119ed3da1 Make OSWindow a non-static member of ANGLETest.
BUG=angle:611

Change-Id: I455e1dd0ad5582191621e316c4808a2d753e9aaa
Reviewed-on: https://chromium-review.googlesource.com/219867
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-10-09 20:32:31 +00:00
Jamie Madill b4fd0c96d2 Replace usages of std::vector::data in most cases.
In some parts of ANGLE code, we were using std::vector::data to get
a pointer to the first element. Sadly, this is c++11 only, which
isn't currently supported on Chromium. This was causing a breakage
on Android. We should probably refrain from using data except on
D3D-only code, which we know will be Visual Studio.

BUG=angle:767

Change-Id: Ibc10577368435a13f62d74d77c95076482cd8f82
Reviewed-on: https://chromium-review.googlesource.com/220920
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-10-01 21:43:30 +00:00
Austin Kinross 18b931d5e0 Configure Google Tests to run against multiple renderers/GLES versions
BUG=angle:611

Change-Id: I7d43612171c439045038db9ae82fd8716c0b31c6
Reviewed-on: https://chromium-review.googlesource.com/220400
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Austin Kinross <[email protected]>
2014-09-30 21:51:38 +00:00
Jamie Madill 9e16d40de3 Fix Win32Window::resize breaking angle_tests.
We were messing up the client rect on resize, which caused the
ReadPixels checks to mess up around the window edges. Disabling
the window styles on the test windows masked this bug. Fix this
by using a style-less child window inside the parent window.
This gives us access to window styles for the samples project,
along with the ability to use tiny 1x1 windows for testing.

BUG=angle:730

Change-Id: Ic6dd931df7b4e32fbbcacbb004d3bbc49917f658
Reviewed-on: https://chromium-review.googlesource.com/217024
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-09-10 14:06:51 +00:00
Jamie Madill 5599c8f6ff Use shared compile helpers in the ANGLE tests.
BUG=angle:730

Change-Id: Ib3bd646c73355449105e6cf79bdcf0a14b391fd2
Reviewed-on: https://chromium-review.googlesource.com/213550
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-08-27 17:37:07 +00:00
Jamie Madill 62af54670d Use EGLWindow in ANGLETests.
This completes the refactor to use the same code for EGL and OS
Window creation for samples and tests.

BUG=angle:730
TEST=angle_tests

Change-Id: Ib6de89f5bf83c0730a66f662cd1f87351f36a5f7
Reviewed-on: https://chromium-review.googlesource.com/213297
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-08-27 17:36:49 +00:00
Jamie Madill 8add0eb77c Use OSWindow with angle_tests for Window management.
BUG=angle:730

Change-Id: I409fd4f4e00eb0d8d964b0ac199fa6f675a36df8
Reviewed-on: https://chromium-review.googlesource.com/213295
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
2014-08-26 20:40:51 +00:00
Jamie Madill 39e7bc0578 Fix "Reize" to "Re*s*izeWindow".
BUG=angle:730

Change-Id: I7d4e5a36cec2b3a5c61ae768ec4c816553031baf
Reviewed-on: https://chromium-review.googlesource.com/213292
Reviewed-by: Brandon Jones <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-08-21 20:42:11 +00:00
Jamie Madill db74f18ea8 Make the EGLDisplay a non-static member of ANGLETest.
We would create and destroy the display with every test, as it
was not part of the environment.

BUG=angle:730

Change-Id: Iae003f13c8e975ae57d3af2d74f9f058a560046f
Reviewed-on: https://chromium-review.googlesource.com/213291
Reviewed-by: Brandon Jones <[email protected]>
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-08-21 20:42:05 +00:00
Jamie Madill 34b66f3255 Use D3D11 Renderer for ANGLE Tests.
Many of our tests rely on extensions and ES3 support. Until we
have the ability to switch between Renderers for specific tests,
the D3D11 Renderer should enable many failing tests to pass.

Also fix a double-delete crash in the test cleanup routine.

BUG=angle:702

Change-Id: I5e615ca1a35bd109d9f7bcbb5fa90b88e09157bd
Reviewed-on: https://chromium-review.googlesource.com/209102
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-07-25 18:04:05 +00:00
Geoff Lang f0955f1585 Update the samples and tests to use eglGetPlatformDisplayEXT.
BUG=angle:490

Change-Id: I5a685e42089377b5c600cd1f7ca8bd9a6654b3ba
Reviewed-on: https://chromium-review.googlesource.com/204939
Reviewed-by: Brandon Jones <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-07-22 19:43:24 +00:00
Geoff Lang bb134678f5 Added a gtest environment class to initialize the ANGLETest class window.
Change-Id: I6fa59201364960cc8fe1cb44e2d09a14cf61dd8a
Reviewed-on: https://chromium-review.googlesource.com/179352
Reviewed-by: Nicolas Capens <[email protected]>
Commit-Queue: Nicolas Capens <[email protected]>
Tested-by: Nicolas Capens <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2013-12-11 22:02:31 +00:00
Geoff Lang efc551f078 Fix incorrectly named test class members and wrong shader compilation
function being used.

TRAC #23776

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
2013-10-31 10:20:28 -04:00
Geoff Lang 8a079e5ea9 Added an angle_tests project and base class for tests.
TRAC #23776

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
2013-10-30 10:23:44 -04:00