Update tests to not trigger undefined behaviour in framebuffer_fetch cases
authorVihanakangas <venni.ihanakangas@siru.fi>
Fri, 28 Aug 2020 09:59:24 +0000 (12:59 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 20 Nov 2020 11:03:29 +0000 (06:03 -0500)
commit524e5bcfba33d1b8dede4b4ec1ec33d24ccf8d2c
tree2aefe0a6557a6a6becf3656cbfdde1040bac9011
parent84706bfe336ea1df04edf4f33cd245ff64c37aff
Update tests to not trigger undefined behaviour in framebuffer_fetch cases

Some framebuffer_fetch cases had an integer format conversion which
resulted in overflow. The shader and reference texture generation have been
modified to take this in to account when creating values
in such way that it doesn't overflow the max range of the format.

Affects:

dEQP-GLES31.functional.shaders.framebuffer_fetch.framebuffer_format.*

Components: OpenGL

VK-GL-CTS issue: 2016

Change-Id: I686f6548cafee13dd2a0f564bb302d269ca6b0a0
modules/gles31/functional/es31fShaderFramebufferFetchTests.cpp