diff options
author | Dave Airlie <airlied@redhat.com> | 2016-09-07 01:40:28 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-09-16 05:33:40 +0100 |
commit | 24463844e848bf30055943e540ec6cf28c072dea (patch) | |
tree | b3d7053014b3319799ac57e4183786148caf44bb | |
parent | c87ec7ff113a9e102aa9e9d8462fdc00db51cb10 (diff) |
crucible: the push constant tests need to be stated in the layout.
The layout doesn't mention the push constants, but the test
goes ahead and uses push constants.
-rw-r--r-- | src/tests/func/compute-local-id.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tests/func/compute-local-id.c b/src/tests/func/compute-local-id.c index 90eb0ea..dcd10ae 100644 --- a/src/tests/func/compute-local-id.c +++ b/src/tests/func/compute-local-id.c @@ -48,9 +48,16 @@ common_init(VkShaderModule cs, const uint32_t ssbo_size) }, }); + VkPushConstantRange constants = { + .stageFlags = VK_SHADER_STAGE_COMPUTE_BIT, + .offset = 0, + .size = 4, + }; VkPipelineLayout pipeline_layout = qoCreatePipelineLayout(t_device, .setLayoutCount = 1, - .pSetLayouts = &set_layout); + .pSetLayouts = &set_layout, + .pushConstantRangeCount = 1, + .pPushConstantRanges = &constants); VkPipeline pipeline; vkCreateComputePipelines(t_device, t_pipeline_cache, 1, |