Use smaller triangles in triangle_vertex.clip_three
authorPyry Haulos <phaulos@google.com>
Tue, 22 Mar 2016 18:36:35 +0000 (11:36 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 24 Mar 2016 16:56:44 +0000 (09:56 -0700)
commita19537b3e25256c673af765612c11f765637dc5e
tree471749409f40bd9bafd8455cf1529cdd25feb4c2
parentce69f90677293129efc908755aa3e73605478c08
Use smaller triangles in triangle_vertex.clip_three

A few tests in clipping.triangle_vertex.clip_three generate triangles
that extend over 2^22 units in NDC outside viewport (something real
content is never expected to contain). Clipping these is not something
older ES2-only GPUs are necessarily expected to do accurately and might
come with prohibitive performance cost. This change limits size of those
triangles to a more reasonable value.

Bug: 27533503
Change-Id: Ic571b9d79db2c40652e96f4fc6a567fcfa7dcee3
modules/gles2/functional/es2fClippingTests.cpp