Fix crashes in dEQP-VK.glsl.matrix.inverse.*
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 2 Feb 2017 09:09:53 +0000 (10:09 +0100)
committerPyry Haulos <phaulos@google.com>
Fri, 10 Feb 2017 21:31:31 +0000 (13:31 -0800)
commit446a2fdc65c554d54b4cb58327a8ed9190486463
treebd4d26bdd8e51b8bbf954eee40afd46af8562547
parent7e7f368725deb7e93f9ed08633d75e93ea0c3a0e
Fix crashes in dEQP-VK.glsl.matrix.inverse.*

This is a regression caused by altering the value of the GRID_SIZE
in commit 2ba66fa2, which results in the inverse() tests generating
input matrices which determinant is zero, and thus, cannot be
inverted, which makes the tests hit an assertion.

This patch adds a mechanism for shader tests to specify a grid size
different from the default. This allows shader testst that are
sensitive to this value, such as matrix inverse tests, to define
their own requirements.

Fixes VK-GL-CTS isssue: 66
Components: Vulkan

Affects:
dEQP-VK.glsl.matrix.inverse.*

Change-Id: I31a34c2d156ee5b98d2de1b10ac4cec1a90d480e
external/vulkancts/modules/vulkan/shaderrender/vktShaderRender.cpp
external/vulkancts/modules/vulkan/shaderrender/vktShaderRender.hpp
external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderMatrixTests.cpp