[PATCH] winex11.drv: Add video adapter description to the registry.

Dmitry Timoshkov dmitry at baikal.ru
Wed Oct 13 06:32:58 CDT 2021


Paul Gofman <pgofman at codeweavers.com> wrote:

> 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.

I haven't found a way to specify real card memory size from winex11.drv.
Is there one that I've missed?

-- 
Dmitry.



More information about the wine-devel mailing list