Commit Graph
12 Commits
Author SHA1 Message Date
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
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
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
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 ee009b8ee5 Fix a NULL dereference on buffer initialization.
In some cases, where the user would create a buffer with NULL (empty)
data, we would attempt to dereference NULL when drawing with the
buffer as a vertex attribute.

BUG=angle:749

Change-Id: Ied5ecbab4608c85890cdf7cc32a8dae46989e33b
Reviewed-on: https://chromium-review.googlesource.com/219090
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
2014-09-19 18:50:53 +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 4f2bf3a57e Fix reversed shift in the huge SetData test.
BUG=angle:716

Change-Id: I1b621668b78373e0566f6eab6034993ec09aa4b9
Reviewed-on: https://chromium-review.googlesource.com/213221
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-08-20 20:07:20 +00:00
Jamie Madill 18afd77ec3 Make the HugeSetDataTest more robust.
By starting from a near-maximum size, and trying until we reach a
a valid allocatable size, we can guarantee the test can run.
Previously the allocation could fail under some systems and
succeded in others, leading to flakiness.

BUG=angle:716

Change-Id: If1690349f7028c4e6a88f20649fb255ea2dd2587
Reviewed-on: https://chromium-review.googlesource.com/210992
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-08-04 20:18:41 +00:00
Jamie Madill 5c1e58d044 Add missing cache clears to D3D buffer classes.
BUG=angle:709

Change-Id: I93f92b916a0da26975cd459399cc2873cb4ab9f0
Reviewed-on: https://chromium-review.googlesource.com/210642
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-08-04 15:28:34 +00:00
Jamie Madill 048c4fe74a Fix buffer tests.
The names of the tests were not properly capitalized, and the huge
buffer test could fail unexpectedly when it was run after several
prior tests which allocated large amounts of memory.

Change-Id: Ied5d1b6f56354e748f0df9d52658d14de9a559ac
Reviewed-on: https://chromium-review.googlesource.com/209611
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-07-23 21:24:50 +00:00
Jamie Madill e09f1c829f Fix crash on zero size but non-NULL bufferData.
Could cause a crash when running the WebGL CTS with Firefox.

BUG=angle:675

Change-Id: I58bf9eed622660d4702b775f368ff9cbd693197a
Reviewed-on: https://chromium-review.googlesource.com/203456
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-06-12 16:36:36 +00:00
Jamie Madill 80b9528d2d Handle buffer memory allocation failures gracefully.
When we would allocate huge buffers, we would not always gracefully
fail and return a GL error back to the application. We should be able
to better handle buffer allocation failures with this patch.

BUG=angle:634

Change-Id: Ic3edce6d22b731ec52666a2a0e82f9a4fbbb23ae
Reviewed-on: https://chromium-review.googlesource.com/197994
Reviewed-by: Nicolas Capens <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-05-06 19:37:35 +00:00