On 26 April 2016 at 10:29, Ken Thomases ken@codeweavers.com wrote:
case WGL_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_WINE:
/* FIXME: not sure what this means */
Mostly whether the GPU has its own dedicated video memory that's not directly accessible by the CPU, or instead shares the memory between the CPU and GPU.
case WGL_RENDERER_VERSION_WINE:
/* FIXME: anything better we can return? */
If the driver doesn't have its own version number, the next best thing is probably the OS version number. This typically matches the final part of the GL_VERSION string.
On Apr 26, 2016, at 4:41 AM, Henri Verbeet hverbeet@gmail.com wrote:
On 26 April 2016 at 10:29, Ken Thomases ken@codeweavers.com wrote:
case WGL_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_WINE:
/* FIXME: not sure what this means */
Mostly whether the GPU has its own dedicated video memory that's not directly accessible by the CPU, or instead shares the memory between the CPU and GPU.
"Shares" as in uses system RAM for the GPU, like an integrated Intel GPU? Or something else?
I'm not aware of any way to query this from the Mac APIs. I could just return true for Intel GPUs and false for everything else. Or I could just leave it as a FIXME, since there's no current or anticipated client that will ever query it. ;)
case WGL_RENDERER_VERSION_WINE:
/* FIXME: anything better we can return? */
If the driver doesn't have its own version number, the next best thing is probably the OS version number. This typically matches the final part of the GL_VERSION string.
OK, I can try to extract it from that string. I gather that nothing past major.minor is standardized in that string, in general, but it may be more predictable on OS X.
Thanks, Ken
Ken Thomases wrote on Tue, 26 Apr 2016:
"Shares" as in uses system RAM for the GPU, like an integrated Intel GPU? Or something else?
I'm not aware of any way to query this from the Mac APIs. I could just return true for Intel GPUs and false for everything else.
There are also some NVidia GPUs that use system memory, such as the 320M.
Jonas
On 26 April 2016 at 13:21, Ken Thomases ken@codeweavers.com wrote:
On Apr 26, 2016, at 4:41 AM, Henri Verbeet hverbeet@gmail.com wrote:
On 26 April 2016 at 10:29, Ken Thomases ken@codeweavers.com wrote:
case WGL_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_WINE:
/* FIXME: not sure what this means */
Mostly whether the GPU has its own dedicated video memory that's not directly accessible by the CPU, or instead shares the memory between the CPU and GPU.
"Shares" as in uses system RAM for the GPU, like an integrated Intel GPU? Or something else?
Typically this means integrated Intel GPUs, yes.
I'm not aware of any way to query this from the Mac APIs. I could just return true for Intel GPUs and false for everything else. Or I could just leave it as a FIXME, since there's no current or anticipated client that will ever query it. ;)
It's probably fine the way it is.
On Tue, Apr 26, 2016 at 4:21 AM, Ken Thomases ken@codeweavers.com wrote:
On Apr 26, 2016, at 4:41 AM, Henri Verbeet hverbeet@gmail.com wrote:
On 26 April 2016 at 10:29, Ken Thomases ken@codeweavers.com wrote:
case WGL_RENDERER_VERSION_WINE:
/* FIXME: anything better we can return? */
If the driver doesn't have its own version number, the next best thing is probably the OS version number. This typically matches the final part of the GL_VERSION string.
OK, I can try to extract it from that string. I gather that nothing past
major.minor is standardized in that string, in general, but it may be more predictable on OS X.
With N vidia GPUs, at least, there's something resembling an NV driver version at the very end of the GL_VERSION string. For example, on my system I get: 3.3 NVIDIA-10.0.47 310.90.10.05b12
As far as I know, this only works on Nvidia's stuff, thoug h. I once had an ATI card; I forget what the version string looked like there.
More generally, OS X version strings tend to be somewhat predictable. Following the OpenGL version, you have a vendor name, followed by a dash, followed by some sort of driver version (with the Nvidia version immediately following for NV cards).
Chip