Fix pixel pack/unpack in nearest edge tests
authorDave Airlie <airlied@redhat.com>
Mon, 1 Jun 2020 21:32:17 +0000 (07:32 +1000)
committerSunny Sun <sunny.sun@arm.com>
Mon, 17 Aug 2020 07:28:16 +0000 (03:28 -0400)
commite77699ab5dd17e63d98ec82aa82dc96c370ddeb6
tree123faa4b808325c64308bf4a7298f3ad69fd26d0
parentd4d482a1dfe88d0be1e87eea221d74836069a86e
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_*
         KHR-GLES32.core.nearest_edge.offset*

Change-Id: I2b31c8791337555b0bb154cea1f676f0daf43c7e
(cherry picked from commit 9486b751ce73aa581af1c16494506569cf2e8364)
external/openglcts/modules/common/glcNearestEdgeTests.cpp