<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/mesa.git/src/glx/applegl_glx.c, branch baserock/james/test</title>
<subtitle>gitlab.freedesktop.org: mesa/mesa.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/'/>
<entry>
<title>Fix build of appleglx</title>
<updated>2014-05-23T14:24:07+00:00</updated>
<author>
<name>Jon TURNEY</name>
<email>jon.turney@dronecode.org.uk</email>
</author>
<published>2014-05-12T09:47:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=5a459a036e33683410bab4df431ed553bd0eeb66'/>
<id>5a459a036e33683410bab4df431ed553bd0eeb66</id>
<content type='text'>
Define GLX_USE_APPLEGL, as config/darwin used to, to turn on specific code to
use the applegl direct renderer

Convert src/glx/apple/Makefile to automake

Since the applegl libGL is now built by linking libappleglx into libGL, rather
than by linking selected files into a special libGL:

- Remove duplicate code in apple/glxreply.c and apple/apple_glx.c.  This makes
apple/glxreply.c empty, so remove it

- Some indirect rendering code is already guarded by !GLX_USE_APPLEGL, but we
need to add those guards to indirect_glx.c, indirect_init.c (via it's
generator), render2.c and vertarr.c so they don't generate anything

Fix and update various includes

glapi_gentable.c (which is only used on darwin), should be included in shared
glapi as well, to provide _glapi_create_table_from_handle()

Note that neither swrast nor indirect is supported in the APPLEGL path at the
moment, which makes things more complex than they need to be.  More untangling
is needed to allow that

v2: Correct apple/Makefile.am for srcdir != builddir

Signed-off-by: Jon TURNEY &lt;jon.turney@dronecode.org.uk&gt;
Reviewed-by: Jeremy Huddleston Sequoia &lt;jeremyhu@apple.com&gt;
Reviewed-by: Emil Velikov &lt;emil.l.velikov@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Define GLX_USE_APPLEGL, as config/darwin used to, to turn on specific code to
use the applegl direct renderer

Convert src/glx/apple/Makefile to automake

Since the applegl libGL is now built by linking libappleglx into libGL, rather
than by linking selected files into a special libGL:

- Remove duplicate code in apple/glxreply.c and apple/apple_glx.c.  This makes
apple/glxreply.c empty, so remove it

- Some indirect rendering code is already guarded by !GLX_USE_APPLEGL, but we
need to add those guards to indirect_glx.c, indirect_init.c (via it's
generator), render2.c and vertarr.c so they don't generate anything

Fix and update various includes

glapi_gentable.c (which is only used on darwin), should be included in shared
glapi as well, to provide _glapi_create_table_from_handle()

Note that neither swrast nor indirect is supported in the APPLEGL path at the
moment, which makes things more complex than they need to be.  More untangling
is needed to allow that

v2: Correct apple/Makefile.am for srcdir != builddir

Signed-off-by: Jon TURNEY &lt;jon.turney@dronecode.org.uk&gt;
Reviewed-by: Jeremy Huddleston Sequoia &lt;jeremyhu@apple.com&gt;
Reviewed-by: Emil Velikov &lt;emil.l.velikov@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>glx/apple: explicitly assign struct components for glx_*_vtable</title>
<updated>2014-04-28T18:13:38+00:00</updated>
<author>
<name>Emil Velikov</name>
<email>emil.l.velikov@gmail.com</email>
</author>
<published>2014-02-18T15:46:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=31a3b58cb7302ae1cc473626da4fba727da37d33'/>
<id>31a3b58cb7302ae1cc473626da4fba727da37d33</id>
<content type='text'>
... to improve readability of code. Set applegl_screen_vtable as a static const.

Signed-off-by: Emil Velikov &lt;emil.l.velikov@gmail.com&gt;
Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
Reviewed-by: Kristian Høgsberg &lt;krh@bitplanet.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... to improve readability of code. Set applegl_screen_vtable as a static const.

Signed-off-by: Emil Velikov &lt;emil.l.velikov@gmail.com&gt;
Reviewed-by: Ian Romanick &lt;ian.d.romanick@intel.com&gt;
Reviewed-by: Kristian Høgsberg &lt;krh@bitplanet.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use calloc instead of malloc/memset-0</title>
<updated>2012-09-06T05:28:50+00:00</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2012-09-05T06:09:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=6bda027e01c15df24d36de5bf3838ea8ed7e9e56'/>
<id>6bda027e01c15df24d36de5bf3838ea8ed7e9e56</id>
<content type='text'>
This patch has been generated by the following Coccinelle semantic
patch:

@@
expression E;
identifier I;
@@
- I = malloc(E);
+ I = calloc(1, E);
...
- memset(I, 0, sizeof *I);

Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch has been generated by the following Coccinelle semantic
patch:

@@
expression E;
identifier I;
@@
- I = malloc(E);
+ I = calloc(1, E);
...
- memset(I, 0, sizeof *I);

Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove Xcalloc/Xmalloc/Xfree calls</title>
<updated>2012-09-06T05:28:49+00:00</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2012-09-05T05:52:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=7c7b7b068b1d0dc8e14b87dab5dbd4108f874f74'/>
<id>7c7b7b068b1d0dc8e14b87dab5dbd4108f874f74</id>
<content type='text'>
These calls allowed Xlib to use a custom memory allocator, but Xlib has
used the standard C library functions since at least its initial import
into git in 2003. It seems unlikely that it will grow a custom memory
allocator. The functions now just add extra overhead. Replacing them
will make future Coccinelle patches simpler.

This patch has been generated by the following Coccinelle semantic
patch:

// Remove Xcalloc/Xmalloc/Xfree calls

@@ expression E1, E2; @@
- Xcalloc (E1, E2)
+ calloc (E1, E2)

@@ expression E; @@
- Xmalloc (E)
+ malloc (E)

@@ expression E; @@
- Xfree (E)
+ free (E)

@@ expression E; @@
- XFree (E)
+ free (E)

Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These calls allowed Xlib to use a custom memory allocator, but Xlib has
used the standard C library functions since at least its initial import
into git in 2003. It seems unlikely that it will grow a custom memory
allocator. The functions now just add extra overhead. Replacing them
will make future Coccinelle patches simpler.

This patch has been generated by the following Coccinelle semantic
patch:

// Remove Xcalloc/Xmalloc/Xfree calls

@@ expression E1, E2; @@
- Xcalloc (E1, E2)
+ calloc (E1, E2)

@@ expression E; @@
- Xmalloc (E)
+ malloc (E)

@@ expression E; @@
- Xfree (E)
+ free (E)

@@ expression E; @@
- XFree (E)
+ free (E)

Reviewed-by: Brian Paul &lt;brianp@vmware.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apple: Implement applegl_unbind_context</title>
<updated>2011-10-24T23:21:28+00:00</updated>
<author>
<name>Jeremy Huddleston</name>
<email>jeremyhu@apple.com</email>
</author>
<published>2011-10-24T23:21:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=5c44c1348ea13f51a1616968daa7034bb48e42b1'/>
<id>5c44c1348ea13f51a1616968daa7034bb48e42b1</id>
<content type='text'>
glXMakeCurrent(dpy, None, NULL) would not correctly unbind the context
causing subsequent GLX requests to fail in peculiar ways

http://xquartz.macosforge.org/trac/ticket/514

Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
glXMakeCurrent(dpy, None, NULL) would not correctly unbind the context
causing subsequent GLX requests to fail in peculiar ways

http://xquartz.macosforge.org/trac/ticket/514

Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>glx: Allow a context-specific fallback for glXGetProcAddress</title>
<updated>2011-06-20T23:54:58+00:00</updated>
<author>
<name>Jeremy Huddleston</name>
<email>jeremyhu@apple.com</email>
</author>
<published>2011-06-15T07:27:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=559e4f8ebcb186b491d7d687ac43f22a62448fc1'/>
<id>559e4f8ebcb186b491d7d687ac43f22a62448fc1</id>
<content type='text'>
In applegl, GLX advertises the same extensions provided by OpenGL.framework
even if such extensions are not provided by glapi.  This allows a client
to get access to such API.

Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In applegl, GLX advertises the same extensions provided by OpenGL.framework
even if such extensions are not provided by glapi.  This allows a client
to get access to such API.

Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apple: Set the glapi dispatch table on context bind</title>
<updated>2011-06-14T07:48:20+00:00</updated>
<author>
<name>Jeremy Huddleston</name>
<email>jeremyhu@apple.com</email>
</author>
<published>2011-06-14T07:45:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=a128355ecb5b782a69461a04991e4cffb32249db'/>
<id>a128355ecb5b782a69461a04991e4cffb32249db</id>
<content type='text'>
Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apple: applegl_destroy_context: Pass along the correct display</title>
<updated>2011-06-13T21:51:01+00:00</updated>
<author>
<name>Jeremy Huddleston</name>
<email>jeremyhu@apple.com</email>
</author>
<published>2011-06-13T19:00:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=c6cf82fb553405bee241170f6e51cafd751d46ea'/>
<id>c6cf82fb553405bee241170f6e51cafd751d46ea</id>
<content type='text'>
Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apple: Dead code removal</title>
<updated>2011-06-13T21:51:01+00:00</updated>
<author>
<name>Jeremy Huddleston</name>
<email>jeremyhu@apple.com</email>
</author>
<published>2011-06-13T19:10:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=e903cc17bbf7152b3f7d64fe7fbb5ceebcc7452e'/>
<id>e903cc17bbf7152b3f7d64fe7fbb5ceebcc7452e</id>
<content type='text'>
Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>apple: Finish build fixes for applegl_glx.c</title>
<updated>2011-06-06T15:27:19+00:00</updated>
<author>
<name>Jeremy Huddleston</name>
<email>jeremyhu@apple.com</email>
</author>
<published>2011-06-06T15:27:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/mesa.git/commit/?id=2ee5272e1671aff8c8d9e0c12bf37ed006717283'/>
<id>2ee5272e1671aff8c8d9e0c12bf37ed006717283</id>
<content type='text'>
libGL.dylib now *builds* on darwin.

Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
libGL.dylib now *builds* on darwin.

Signed-off-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
