On Tue, 18 Jan 2022 at 06:08, Conor McCarthy cmccarthy@codeweavers.com wrote:
@@ -2439,7 +2439,11 @@ static bool init_default_texture_view_desc(struct vkd3d_texture_view_desc *desc, { const struct d3d12_device *device = resource->device;
- if (!(desc->format = vkd3d_format_from_d3d12_resource_desc(device, &resource->desc, view_format)))
- if (view_format == resource->desc.Format)
- {
desc->format = resource->format;
- }
That's not wrong, but note that we can also use the stored resource format when "view_format" is 0/DXGI_FORMAT_UNKNOWN.