From 24463844e848bf30055943e540ec6cf28c072dea Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 7 Sep 2016 01:40:28 +0100 Subject: 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. --- src/tests/func/compute-local-id.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3