mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Normalise layer counts in d3d12_dsv_desc_create_dsv().
Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4c07252da6
commit
3f6f615e50
@ -3296,6 +3296,7 @@ void d3d12_dsv_desc_create_dsv(struct d3d12_dsv_desc *dsv_desc, struct d3d12_dev
|
|||||||
vkd3d_desc.miplevel_idx = desc->u.Texture2DArray.MipSlice;
|
vkd3d_desc.miplevel_idx = desc->u.Texture2DArray.MipSlice;
|
||||||
vkd3d_desc.layer_idx = desc->u.Texture2DArray.FirstArraySlice;
|
vkd3d_desc.layer_idx = desc->u.Texture2DArray.FirstArraySlice;
|
||||||
vkd3d_desc.layer_count = desc->u.Texture2DArray.ArraySize;
|
vkd3d_desc.layer_count = desc->u.Texture2DArray.ArraySize;
|
||||||
|
vkd3d_texture_view_desc_normalise(&vkd3d_desc, &resource->desc);
|
||||||
break;
|
break;
|
||||||
case D3D12_DSV_DIMENSION_TEXTURE2DMS:
|
case D3D12_DSV_DIMENSION_TEXTURE2DMS:
|
||||||
vkd3d_desc.view_type = VK_IMAGE_VIEW_TYPE_2D;
|
vkd3d_desc.view_type = VK_IMAGE_VIEW_TYPE_2D;
|
||||||
@ -3304,6 +3305,7 @@ void d3d12_dsv_desc_create_dsv(struct d3d12_dsv_desc *dsv_desc, struct d3d12_dev
|
|||||||
vkd3d_desc.view_type = VK_IMAGE_VIEW_TYPE_2D_ARRAY;
|
vkd3d_desc.view_type = VK_IMAGE_VIEW_TYPE_2D_ARRAY;
|
||||||
vkd3d_desc.layer_idx = desc->u.Texture2DMSArray.FirstArraySlice;
|
vkd3d_desc.layer_idx = desc->u.Texture2DMSArray.FirstArraySlice;
|
||||||
vkd3d_desc.layer_count = desc->u.Texture2DMSArray.ArraySize;
|
vkd3d_desc.layer_count = desc->u.Texture2DMSArray.ArraySize;
|
||||||
|
vkd3d_texture_view_desc_normalise(&vkd3d_desc, &resource->desc);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
FIXME("Unhandled view dimension %#x.\n", desc->ViewDimension);
|
FIXME("Unhandled view dimension %#x.\n", desc->ViewDimension);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user