From ed1f146c91f853d7e71322d7ab2801c828a229f7 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 21 Apr 2020 10:19:11 +0200 Subject: [PATCH] vkd3d: Fix vkd3d_create_shader_module parameter order. Otherwise, the SPIRV_CODE is useless when using the function directly. Signed-off-by: Philip Rebohle --- libs/vkd3d/meta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/vkd3d/meta.c b/libs/vkd3d/meta.c index 7c8b1f99..8d8c0376 100644 --- a/libs/vkd3d/meta.c +++ b/libs/vkd3d/meta.c @@ -22,7 +22,7 @@ #define SPIRV_CODE(name) name, sizeof(name) static VkResult vkd3d_create_shader_module(struct d3d12_device *device, - size_t code_size, const uint32_t *code, VkShaderModule *module) + const uint32_t *code, size_t code_size, VkShaderModule *module) { const struct vkd3d_vk_device_procs *vk_procs = &device->vk_procs; VkShaderModuleCreateInfo shader_module_info; @@ -92,7 +92,7 @@ static VkResult vkd3d_create_compute_pipeline(struct d3d12_device *device, pipeline_info.stage.pName = "main"; pipeline_info.stage.pSpecializationInfo = specialization_info; - if ((vr = vkd3d_create_shader_module(device, code_size, code, &pipeline_info.stage.module)) < 0) + if ((vr = vkd3d_create_shader_module(device, code, code_size, &pipeline_info.stage.module)) < 0) { ERR("Failed to create shader module, vr %d.", vr); return vr;