[PATCH vkd3d 1/2] vkd3d: Always return a valid allocation size for D3D12 default alignments.
cmccarthy at codeweavers.com
Mon Nov 18 05:20:59 CST 2019
November 18, 2019 7:30 PM, "Henri Verbeet" <hverbeet at gmail.com> wrote:
>> What are the returned and requested alignments in that case?
>> Requested 0x10000, returned 0x20000. No invalid heap offsets are sent to vkd3d_bind_heap_memory(),
>> so the game uses the returned value.
> I'm probably missing something, but in that case, why would this patch
> be needed?
Hitman 2 doesn't check for the error value ~0 in SizeInBytes. Somehow it truncates it to 32 bits, then allocates heaps of size 0xffffffff until the system freezes.
More information about the wine-devel