Fix pixel pack/unpack in nearest edge tests
authorDave Airlie <airlied@redhat.com>
Mon, 1 Jun 2020 21:32:17 +0000 (07:32 +1000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 6 Aug 2020 08:28:52 +0000 (04:28 -0400)
commit9486b751ce73aa581af1c16494506569cf2e8364
tree1a154654562a25157e7703628bcee454a6b659f0
parent8fac9f1b9f4f9df2b275cfa5c2e7e46104f05776
Fix pixel pack/unpack in nearest edge tests

With certain fbconfigs and width/height combos, this would
corrupt memory due to overwriting too many bytes by 1.

Components: OpenGL

VK-GL-CTS Issue: 2496

Affects: KHR-GL46.nearest_edge.offset_*

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