Stop reading from uninitialized memory
authorJames Helferty <jhelferty@nvidia.com>
Mon, 12 Jun 2017 21:49:29 +0000 (17:49 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Sun, 25 Jun 2017 11:41:59 +0000 (07:41 -0400)
commit79df5799eb0b77e3f1a335f92a0a961b5db0461c
tree643dbccfd24b170df4653cebd5004b720cc0e3df
parentcaa11dcaba487fa93ec92117fe78d3904e5d7965
Stop reading from uninitialized memory

The compute pipeline statistics query test was accessing uninitialized
memory, which was causing an assert to randomly fail depending on what
tests were run beforehand.

Besides removing the access of the uninitialized memory, this change
also initializes the culprit memory in the base class to known invalid
values so that if another subclass is ever created with the same bug,
it will consistently assert.

VK-GL-CTS issue: 496
Components: OpenGL

Affects:

KHR-GL45.pipeline_statistics_query_tests_ARB.functional_compute_shader_invocations

Change-Id: Icc7478c98f617afee2fd53564473492fecd8836e
external/openglcts/modules/gl/gl4cPipelineStatisticsQueryTests.cpp