[PATCH vkd3d] vkd3d: Return the standard D3D12 resource alignment instead the Vulkan requirement.
Henri Verbeet
hverbeet at gmail.com
Wed Jun 23 07:05:50 CDT 2021
On Fri, 4 Jun 2021 at 16:30, Conor McCarthy <cmccarthy at codeweavers.com> wrote:
> Some apps, e.g. WoW, ignore a non-standard alignment and use the expected one.
>
This seems like something that would benefit from a test.
> + /* Pad by the maximum heap offset increase which may be needed to align an offset
> + * supplied by the calling application to a higher Vulkan requirement. This allows
> + * us to return the standard D3D12 alignment and adjust resource placement later. */
> + if(info->Alignment > requested_alignment)
> + {
> + info->SizeInBytes += info->Alignment - requested_alignment;
> + info->Alignment = requested_alignment;
> + }
Space between "if" and "(". By convention, "d3d12".
More information about the wine-devel
mailing list