=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: libs/vkd3d: Fix crash when creating NULL CBVs.
Alexandre Julliard
julliard at winehq.org
Tue Jan 9 13:38:51 CST 2018
Module: vkd3d
Branch: master
Commit: 8e3302d532ef8e90c91ebb372ff184321982e893
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=8e3302d532ef8e90c91ebb372ff184321982e893
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Tue Jan 9 13:13:06 2018 +0100
libs/vkd3d: Fix crash when creating NULL CBVs.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
libs/vkd3d/resource.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c
index 780b358..72848a4 100644
--- a/libs/vkd3d/resource.c
+++ b/libs/vkd3d/resource.c
@@ -963,6 +963,12 @@ void d3d12_desc_create_cbv(struct d3d12_desc *descriptor,
return;
}
+ if (!desc->BufferLocation)
+ {
+ FIXME("NULL CBV not implemented.\n");
+ return;
+ }
+
resource = vkd3d_gpu_va_allocator_dereference(&device->gpu_va_allocator, desc->BufferLocation);
buffer_info = &descriptor->u.vk_cbv_info;
buffer_info->buffer = resource->u.vk_buffer;
More information about the wine-cvs
mailing list