Fix PolygonOffsetClampMinMax test fail when using 24bit depth buffer
authorAlex Lan <alex.lan@arm.com>
Wed, 26 Oct 2022 14:01:29 +0000 (22:01 +0800)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Wed, 26 Oct 2022 20:44:12 +0000 (20:44 +0000)
commit716bae5516c8eb6078ef656adebdaf3fae852dbf
tree8682eee6988eb9998dbc4e451ec74f864d5def8a
parentf1522bd9a9222d0f99570194fbca2736a69542ae
Fix PolygonOffsetClampMinMax test fail when using 24bit depth buffer

If using 24bit depth buffer to implement GL_DEPTH_COMPONENT16,
the polygon-offset value generated by glPolygonOffset isn't larger
or smaller than clamp value specified by glPolygonOffsetClampEXT.
So adjust units value based on depth buffer bits when calling
glPolygonOffset/glPolygonOffsetClampEXT.

Affects:
KHR-GLES31.core.polygon_offset_clamp.*

Components: OpenGL
Change-Id: If7a5da4b7b62d2a590ac03ad92832d0daf3e5f47
external/openglcts/modules/common/glcPolygonOffsetClampTests.cpp