Pat Suwalski <p...@suwalski.net> writes:
> I would like an opinion on the patch I've attached.
>
> In the past in my company, we have always had the Mesa libGL,
> nVidia libGL, and ATI libGL installed in /usr/lib, /usr/lib/nvidia,
> and /usr/lib/ati respectively. We would then simply change
> /etc/ld.so.conf(.d) to give the appropriate libGL preference.
[snip]

If all your after is a way to select OpenGL implementation at runtime
for *your* app, I have some GLEW patches you might be interested in.
Of course, your scheme works globally / for all OGL apps on the system,
which may be valuable to you.

>       def printRealFooter(self):
>               print ''
> -             print '#if defined(GLX_USE_TLS) && defined(__linux__)'
> -             print ' .section ".note.ABI-tag", "a"'
> -             print ' .p2align 2'
> -             print ' .long   1f - 0f   /* name length */'
> -             print ' .long   3f - 2f   /* data length */'
> -             print ' .long   1         /* note length */'
> -             print '0:       .asciz "GNU"      /* vendor name */'
> -             print '1:       .p2align 2'
> -             print '2:       .long   0         /* note data: the ABI tag */'
> -             print ' .long   2,4,20    /* Minimum kernel version w/TLS */'
> -             print '3:       .p2align 2        /* pad out section */'
> -             print '#endif /* GLX_USE_TLS */'
> -             print ''

Isn't this going to allow a TLS-enabled Mesa to run on a
non-TLS-capable kernel?

-tom

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to