Fix ReadPixels format
authorCheryl Wei <cheryl.wei@arm.com>
Mon, 4 Jan 2021 07:23:46 +0000 (15:23 +0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 21 Jan 2021 08:34:27 +0000 (08:34 +0000)
commit780408248fd9e84162f7f6ccf94677952ab0d0da
treec41950ac322236a160f294cdbe2fab15de868ff2
parenta87096da3e45ef119d7289652dec914d732cc5ae
Fix ReadPixels format

Pass implementation format to ReadPixels when pixel format is 8,8,8,0
because some implementations treat RGB8 as RGBA8888 which causes these
tests to fail.

Affected tests:
KHR-GLES3.core.nearest_edge.offset_*
KHR-GLES31.core.nearest_edge.offset_*

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

Change-Id: I6ce92f19d2e329c75ca5fc6800092af623e25829
external/openglcts/modules/common/glcNearestEdgeTests.cpp