Fixes threshold in texture size tests
authorMatthew Netsch <mnetsch@codeaurora.org>
Tue, 19 Dec 2017 20:45:33 +0000 (12:45 -0800)
committerChris Forbes <chrisforbes@google.com>
Mon, 29 Jan 2018 21:22:48 +0000 (13:22 -0800)
commitc2d2fb5cf4ad56d8242162f683b57b56cf3711e3
tree076c0f44bc864c693b2f987c4840b00099674a09
parentfc76a6f2b108e12a4f4d6f30d5b3e1befc452431
Fixes threshold in texture size tests

Threshold was computed directly from backbuffer format.
This makes the threshold too strict if the texture
sampled from has a lower bit-depth than the backbuffer.

This change takes the minimium bit depth between the
backbuffer and texture to compute the threshold.

Components: OpenGL ES
VK-GL-CTS issue: 163

Affects:
dEQP-GLES2.functional.texture.size.*
dEQP-GLES3.functional.texture.size.*

Change-Id: Id491ff4ef1b958459156fe83d9d5099cf81de81e
modules/gles2/functional/es2fTextureSizeTests.cpp
modules/gles3/functional/es3fTextureSizeTests.cpp