[PATCH vkd3d 6/7] vkd3d: Use the resource's stored format in init_default_texture_view_desc().
Henri Verbeet
hverbeet at gmail.com
Wed Jan 19 09:25:35 CST 2022
On Tue, 18 Jan 2022 at 06:08, Conor McCarthy <cmccarthy at 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.
More information about the wine-devel
mailing list