22 Nov
2023
22 Nov
'23
7:14 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/winex11.drv/xrandr.c:
{ if (mem_properties.memoryHeaps[heap_idx].flags & VK_MEMORY_HEAP_DEVICE_LOCAL_BIT) { - gpu->memory_size = mem_properties.memoryHeaps[heap_idx].size; - break; + gpu->memory_size += mem_properties.memoryHeaps[heap_idx].size; } } + + /* We failed to retrieve the gpu memory size set a default of 4Gb */
The default should be set in add_gpu(). Otherwise, we need to set the default for all other graphics drivers, e.g., winemac.drv. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4466#note_53266