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:58 +0000 (08:34 +0000)
commita815d38d34cd67dbb894ea85756a9fc96676a94f
treeae3ba128e21878e87e18d0bcff1eb9bd4a389516
parent57d3428a859e9a3ec592bfeb47c0da03e2fbaf0d
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
(cherry picked from commit 780408248fd9e84162f7f6ccf94677952ab0d0da)
external/openglcts/modules/common/glcNearestEdgeTests.cpp