Fix race condition in shader_image_load_store.multiple-uniforms
authorSlawomir Cygan <slawomir.cygan@intel.com>
Mon, 20 Mar 2017 17:28:03 +0000 (18:28 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 24 Mar 2017 16:03:42 +0000 (12:03 -0400)
commitf4d02e510a7d3da59769bea59dbde3f68b0a0d5c
tree128bc0f801a88b4f0ac4db4398c5ca1fe5efaa38
parent64bda4f69512710ce30b2db7cca589e52d214e1c
Fix race condition in shader_image_load_store.multiple-uniforms

There is a race condition in this tests, where 4 TCS invocation read-modify-write
same image load-store locations. This may lead to indeterminate results data.

As a fix a predicate is used in TCS, limiting image-load-store accessed to only one shader
invocation

Components: OpenGL
VK-GL-CTS issue: 262

Affects test:
GL44-CTS.shader_image_load_store.multiple-uniforms

Change-Id: I7b14ef4e291cf382c4d0c2766dea4b4955c76f5b
external/openglcts/modules/gl/gl4cShaderImageLoadStoreTests.cpp