Fix negative shift in bitfieldExtract tests
authorAri Suonpaa <ari.suonpaa@siru.fi>
Mon, 13 Dec 2021 12:10:09 +0000 (14:10 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 6 Jan 2022 22:46:34 +0000 (22:46 +0000)
commit6da509fb6d9094152ac9f6a35f38af280db75b7c
treeb4c9f88d6d00d0ba353efecccdbf1a3b49dcd57d
parentcb9a4b5b6ef5b3750db1e81a6967a64e52bf9725
Fix negative shift in bitfieldExtract tests

Reference calculation was using a negative shift when the
number of bits for bitfieldExtract was zero. This is
undefined behavior so now the bits = 0 case is handled
separately.

VK-GL-CTS Issue: 3333

Affects:

dEQP-GLES31.functional.shaders.builtin_functions.integer.bitfieldextract.*

Components: OpenGL ES
Change-Id: I7691962d7ffd8ceed4dc1267d6730f1a6cb3e564
modules/gles31/functional/es31fShaderIntegerFunctionTests.cpp