On Fri, Aug 14, 2009 at 4:23 PM, King InuYasha <ngomp...@gmail.com> wrote:
> 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... Just a nitpick: Wine does not *use* DirectDraw, it *implements* DirectDraw, as there's no DirectDraw anywhere other than win32. I see no problem querying OpenGL, if the extensions can be trusted to provide useful values - even if they are undocumented or not always available. The problem with the approach so far seems to be that this extension is ATI-specific. Then again, the current fallback can be left in place if Wine does not find a way to properly detect the VRAM amount. As for asking Xorg, I do not have the knowledge to say if it is feasible - but one would think that would've been tried long ago if it were straightforward. --Stephen programmer, n: A red eyed, mumbling mammal capable of conversing with inanimate monsters.