[PATCH] winex11.drv: Add video adapter description to the registry.
Paul Gofman
pgofman at codeweavers.com
Wed Oct 13 06:20:04 CDT 2021
On 10/13/21 13:57, Dmitry Timoshkov wrote:
> + if (RegSetValueExW(hkey, dac_typeW, 0, REG_SZ, (const BYTE *)ramdacW, (strlenW(ramdacW) + 1) * sizeof(WCHAR)))
> + size = 0x7fffffff; /* FIXME */
We used to have all sort of issues in various games querying VRAM size
through any sources the game is aware about and misbehaving due to
assuming wrong VRAM size. Is it possible to get the real VRAM size at
once? HardwareInformation.MemorySize seems to be capped at 0xfff00000
here with 8GB card on Windows. But there is also .qwMemorySize which is
QWORD and holds real VRAM size. I thing once filling the legacy one we'd
better also fill the full value as well. I suppose we can add VRAM size
to x11drv_gpu and fill that in when querying GPU info through Vulkan.
That might be still not entirely trivial as there are multiple heaps
reported by Vulkan. I guess we should enumerate heaps with
MEMORY_HEAP_DEVICE_LOCAL_BIT flag and choose the largest size.
More information about the wine-devel
mailing list