This seems like the wrong way to go. I'm wondering if there is another way to detect VRAM? There should be a way to determine VRAM from Xorg? Why should OpenGL or DirectDraw be the method that Wine uses to determine video RAM? Why should Wine have a fixed value based on a list? Maybe I'm being stupid, but I think it would make sense for the display server (xorg) to know how much VRAM a graphics card has... On Fri, Aug 14, 2009 at 1:42 PM, Jesse Allen <the3dfxdude(a)gmail.com> wrote:
On Fri, Aug 14, 2009 at 10:30 AM, Stefan Dösinger<stefandoesinger(a)gmx.at> wrote:
Am Friday 14 August 2009 18:01:07 schrieb Sun, Sunny:
+ if(gl_info->vidmem < 64 * 1024 * 1024) + gl_info->vidmem = 64 * 1024 * 1024; I guess the idea is that no ATI card that was ever supported on fglrx has less than 64 mb of memory? My old radeon 9000, which isn't supported by fglrx since years now has 64 MB. Does this hold true for radeon 8500 cards too?
I think I'll use the guessed amount of vidmem in this case instead of hardcoding 64 MB.
Using the undocumented value and the check for older drivers which don't support it is a bit hacky, but its a well-isolated hack and avoids a lot of problems, so it should be ok.
My Radeon 9200 has 128 MB. But I've never used fglrx on it either, so I don't know what this gains.