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.