Re: about video memory detection in wine

2009-08-25 Thread Roderick Colenbrander
I'm sure what will happen to the GL_ATI_meminfo but perhaps it makes sense to unify it with WGL_AMD_gpu_association ? Roderick

Re: about video memory detection in wine

2009-08-19 Thread Stefan Dösinger
Am Wednesday 19 August 2009 04:02:37 schrieb Sun, Sunny: Hi Dösinger Have you done that? Not yet. After Henri's objection I have decided to wait until either the spec is fixed or you two reach an agreement.

RE: about video memory detection in wine

2009-08-18 Thread Sun, Sunny
:52 AM To: Stefan Dösinger Cc: Sun, Sunny; wine-devel@winehq.org; Roderick Colenbrander Subject: Re: about video memory detection in wine 2009/8/15 Stefan Dösinger stefandoesin...@gmx.at: I'll send the patches on monday with a few minor improvements. I think the spec should be fixed/extended first.

RE: about video memory detection in wine

2009-08-15 Thread Sun, Sunny
: about video memory detection in wine 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

Re: about video memory detection in wine

2009-08-15 Thread Stefan Dösinger
Am Saturday 15 August 2009 09:25:27 schrieb Sun, Sunny: It doesn't matter that the total memory is not documented, as long as it can tell you the true value. The concern is that lack of spec documentation makes it harder to maintain the code. Like the GL_ATI_texture_compression_3dc code, which

Re: about video memory detection in wine

2009-08-15 Thread Henri Verbeet
2009/8/15 Stefan Dösinger stefandoesin...@gmx.at: I'll send the patches on monday with a few minor improvements. I think the spec should be fixed/extended first.

Re: about video memory detection in wine

2009-08-14 Thread Stefan Dösinger
Am Friday 14 August 2009 11:58:12 schrieb Sun, Sunny: #define GL_TOTAL_PHYSICAL_MEMORY_ATI0x87FE const char *glExtensions = (const char*)glGetString(GL_EXTENSIONS); if(strstr(glExtensions, GL_ATI_meminfo)) That sounds very helpful! Is this supported on all drivers that support

Re: about video memory detection in wine

2009-08-14 Thread Stefan Dösinger
} Regards Sunny -Original Message- From: Roderick Colenbrander [mailto:thunderbir...@gmail.com] Sent: Friday, August 14, 2009 1:44 AM To: Stefan Dösinger Cc: wine-devel@winehq.org; Hu, Li; Jin, Jian-Rong; Wang, Robin; Guan, Xiao-Feng; Sun, Sunny Subject: Re: about video memory

Re: about video memory detection in wine

2009-08-14 Thread Henri Verbeet
Could you please subscribe to wine-devel (http://www.winehq.org/mailman/listinfo/wine-devel) so your mail doesn't have to go through moderation? It's possible to disable mail delivery if you don't want to receive all the mail.

Re: about video memory detection in wine

2009-08-14 Thread Stefan Dösinger
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

Re: about video memory detection in wine

2009-08-14 Thread Henri Verbeet
2009/8/14 Stefan Dösinger stefandoesin...@gmx.at: 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. I'm only seeing half of the discussion here (the other half is

Re: about video memory detection in wine

2009-08-14 Thread Jesse Allen
On Fri, Aug 14, 2009 at 10:30 AM, Stefan Dösingerstefandoesin...@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

Re: about video memory detection in wine

2009-08-14 Thread King InuYasha
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

Re: about video memory detection in wine

2009-08-14 Thread Stephen Eilert
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

Re: about video memory detection in wine

2009-08-14 Thread Roderick Colenbrander
On Fri, Aug 14, 2009 at 9:41 PM, Stephen Eilertspedr...@gmail.com wrote: 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

Re: about video memory detection in wine

2009-08-14 Thread Stefan Dösinger
Am Friday 14 August 2009 18:52:36 schrieb Henri Verbeet: I'm only seeing half of the discussion here (the other half is probably still in moderation...), but that doesn't sound like a good idea. Is there any reason the extension can't be fixed to include this, or alternatively a second

RE: about video memory detection in wine

2009-08-14 Thread Sun, Sunny
@winehq.org; Hu, Li; Jin, Jian-Rong; Wang, Robin; Guan, Xiao-Feng; Sun, Sunny Subject: Re: about video memory detection in wine On Thu, Aug 13, 2009 at 6:59 PM, Stefan Dösingerstefandoesin...@gmx.at wrote: Am Wednesday 12 August 2009 10:04:10 schrieb Sun, Sunny: I think you can first

RE: about video memory detection in wine

2009-08-14 Thread Sun, Sunny
! Regards Sunny -Original Message- From: Stefan Dösinger [mailto:stefandoesin...@gmx.at] Sent: Friday, August 14, 2009 7:13 PM To: Sun, Sunny Cc: Roderick Colenbrander; wine-devel@winehq.org; ORCA Linux Subject: Re: about video memory detection in wine Hi, Can you give the attached patches

RE: about video memory detection in wine

2009-08-14 Thread Sun, Sunny
Thanks, I will do it later Regards Sunny -Original Message- From: Henri Verbeet [mailto:hverb...@gmail.com] Sent: Friday, August 14, 2009 7:26 PM To: Sun, Sunny Cc: wine-devel@winehq.org Subject: Re: about video memory detection in wine Could you please subscribe to wine-devel (http

Re: about video memory detection in wine

2009-08-13 Thread Henri Verbeet
2009/8/12 Sun, Sunny sunny@amd.com: I think you can first detect GL_ATI_meminfo in glGetString(GL_EXTENSIONS); if GL_ATI_meminfo exists, then you can use glGetIntegerv(GL_VBO_FREE_MEMORY_ATI, param) to get the current free video memory, you can see more info at: Is VBO_FREE_MEMORY_ATI the

Re: about video memory detection in wine

2009-08-13 Thread Stefan Dösinger
Am Wednesday 12 August 2009 10:04:10 schrieb Sun, Sunny: I think you can first detect GL_ATI_meminfo in glGetString(GL_EXTENSIONS); if GL_ATI_meminfo exists, then you can use glGetIntegerv(GL_VBO_FREE_MEMORY_ATI, param) to get the current free video memory, you can see more info at: A minor

Re: about video memory detection in wine

2009-08-13 Thread Roderick Colenbrander
On Thu, Aug 13, 2009 at 6:59 PM, Stefan Dösingerstefandoesin...@gmx.at wrote: Am Wednesday 12 August 2009 10:04:10 schrieb Sun, Sunny: I think you can first detect GL_ATI_meminfo in glGetString(GL_EXTENSIONS); if GL_ATI_meminfo exists, then you can use glGetIntegerv(GL_VBO_FREE_MEMORY_ATI,

about video memory detection in wine

2009-08-12 Thread Sun, Sunny
Hi You are using the hardcoded method to get the vidmem now (in function IWineD3DImpl_FillGLCaps), first you call glGetString(GL_RENDERER) to get the GPU renderer string, and then you use this string to set the vidmem in your code. Unfortunately you don't get all of the ATI GPU's string now, for

RE: about video memory detection in wine

2009-08-12 Thread Sun, Sunny
, Thanks Regards Sunny From: Sun, Sunny Sent: Wednesday, August 12, 2009 4:04 PM To: 'wine-devel@winehq.org' Cc: Jin, Jian-Rong; Hu, Li; Guan, Xiao-Feng; Wang, Robin Subject: about video memory detection in wine Hi You are using the hardcoded method to get