[PATCH] winemac: Implement the WGL_WINE_query_renderer extension.

Ken Thomases ken at codeweavers.com
Tue Apr 26 06:21:08 CDT 2016


On Apr 26, 2016, at 4:41 AM, Henri Verbeet <hverbeet at gmail.com> wrote:
> 
> On 26 April 2016 at 10:29, Ken Thomases <ken at 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




More information about the wine-devel mailing list