Signed-off-by: Conor McCarthy cmccarthy@codeweavers.com --- libs/vkd3d/resource.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c index c5666b67..725ce34f 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -3298,6 +3298,9 @@ void d3d12_dsv_desc_create_dsv(struct d3d12_dsv_desc *dsv_desc, struct d3d12_dev default: FIXME("Unhandled view dimension %#x.\n", desc->ViewDimension); } + /* A UINT_MAX layer count is not compatible with Vulkan frame buffers. */ + vkd3d_desc.layer_count = vkd3d_get_texture_layer_count(vkd3d_desc.layer_idx, + vkd3d_desc.layer_count, &resource->desc); }
assert(d3d12_resource_is_texture(resource));