[vlc-devel] [PATCH] nVidia affinity
David R Robison
drrobison at openroadsconsulting.com
Thu Aug 29 13:58:43 CEST 2013
OK, let me try and incorporate all these comments and I'll re-post the
patch. Thanks for your help. David
David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison at openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
On 8/29/2013 7:49 AM, Jean-Baptiste Kempf wrote:
> On 29 Aug, David R Robison wrote :
>> The reason for specifying nVidia each time is because these are nVidia
>> specific OpenGL extensions. There are also extensions for other card
> There are other extensions too.
> For ATI (until they die)
> http://www.opengl.org/registry/specs/AMD/wgl_gpu_association.txt
> Intel is hopeless for now.
>
>> explanation. Any thoughts on how you want to handle this?
> Make it generic. It will only work with cards who have the NV extensions
> for now. Then, for people with the ATI extensions, when it gets
> implemented.
> People with hybrid setup can modify their code themselves.
>
>> To get the OpenGL function pointers you have to have an active OpenGL
>> context. However, you have to call the affinity routines outside an
>> OpenGL context. So I create a "dummy" context and fetch the function
>> pointers and then throw away the dummy context. I was hoping to cache
>> these function pointer so I did not have to fetch them each time I
>> needed them by creating another OpenGL context. They are used in the
>> open and the close functions. I could either 1) fetch them each time
>> they are needed or 2) attach them to some structure like vd->sys. Which
>> would you prefer.
> 2)
>
>> For the debug messages, I wanted some way to positively tell the user if
>> the GPU selection was successful or failed because the nVidia affinity
>> extensions did not exist. Without this there is no real way to know if
>> the selection worked. However I set them to debug so they would normally
>> be silent. Also, they would only be displayed if the user actually
>> selected a GPU affinity. But I can remove them if you wish.
> Yes, but the messages should be shown only if the affinity option is not
> the default one (aka auto).
>
This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.
More information about the vlc-devel
mailing list