From 37f4c9d2a334738486e00bc1cf6968628e83703e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Thu, 7 Sep 2017 17:48:43 +0200 Subject: [PATCH] libs/vkd3d: Print only TRACE() messages for not initialized descriptors. A descriptor do not have to be initialized if it is not used by shaders. --- libs/vkd3d/command.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index 2af3367b..e0996e36 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -1804,8 +1804,12 @@ static bool vk_write_descriptor_set_from_d3d12_desc(VkWriteDescriptorSet *vk_des vk_descriptor_write->pImageInfo = vk_image_info; break; + case VKD3D_DESCRIPTOR_MAGIC_FREE: + TRACE("Descriptor %u not initialized.\n", vk_descriptor_write->dstBinding); + return false; + default: - FIXME("Unhandled descriptor %#x.\n", descriptor->magic); + ERR("Invalid descriptor %#x.\n", descriptor->magic); return false; }