CP: Add triangle edge guardband for Tex2D lookup diff
authorKalle Raita <kraita@google.com>
Tue, 18 Jul 2017 21:52:15 +0000 (14:52 -0700)
committerKalle Raita <kraita@google.com>
Wed, 26 Jul 2017 18:26:01 +0000 (11:26 -0700)
commite345d7b6bad01f97100074d76332439e8c3afe9f
tree3547c0e9fd18499e3f1d97938d086941e5a4f65f
parent271d2c56f9650e507f49fe9639aa131ffa4d5824
CP: Add triangle edge guardband for Tex2D lookup diff

Cherry-pick AOSP Change: dcb5991811ed287fc4a72126663136a94eb7dc39

Previously 3D and cube textures allowed pixels along the seam of
triangles to use data from either triangle. This change copies that
allowance to the 2D texture computeTextureLookupDiff. The projection
values chosen for the mipmap.2d.projected group make the data
discontinous over the edge, making it sensitive to tie-breaker
resolution. This change resolves the issue.

Affects: framework

Test: Executed mipmap.2d.projected group with failing result images
Bug: 63335787
Change-Id: Ibaed590fb5e1bc9eb837c9027ddadcea2081f629
framework/opengl/gluTextureTestUtil.cpp