Dispatch base test does not enable pipeline flag
authorMarcin Rogucki <marcin.rogucki@mobica.com>
Tue, 10 Oct 2017 09:04:05 +0000 (11:04 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 10 Oct 2017 18:14:08 +0000 (14:14 -0400)
commitb8fedc1584751f778286b94ccc1ca6c4a8653d87
tree1fa450efb2c92e55b0214da28b7a3b16b91677da
parente09e233b1c941e9b24404b93d05f54a58cf30f07
Dispatch base test does not enable pipeline flag

dEQP-VK.compute.device_group.dispatch_base does not enable pipeline flag which violates valid usage rule: If any of baseGroupX, baseGroupY, or baseGroupZ are not zero, then the currently bound
compute pipeline must have been created with the VK_PIPELINE_CREATE_DISPATCH_BASE flag.

An overloaded method vktComputeTestsUtil.cpp::makeComputePipeline was added that allows to pass additional parameters:
- flags for pipeline creation
- flags for compute shader creation
Old method redirected to call a new one with flags set to zero.

A method vktComputeTestsUtil.cpp::makePipelineLayout no longer takes useDeviceGroups parameter and always sets pipeline layout flags to 0.

New method used in test with proper flags passed in.

Component: Vulkan

VK-GL-CTS issue: 760

Affects: dEQP-VK.compute.device_group.dispatch_base

Change-Id: I2c7400a55809b28bb7096dcdfeba2095c1541e1b
external/vulkancts/modules/vulkan/compute/vktComputeBasicComputeShaderTests.cpp
external/vulkancts/modules/vulkan/compute/vktComputeTestsUtil.cpp
external/vulkancts/modules/vulkan/compute/vktComputeTestsUtil.hpp