• Home
  • History
  • Annotate
  • only in /external/mesa3d/src/glx/
History log of /external/mesa3d/src/glx/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f84fe6aa2eac6984b77ca6da0c7e5a571b425827 15-Feb-2013 Zack Rusin <zackr@vmware.com> DRI2: Don't disable GLX_INTEL_swap_event unconditionally

GLX_INTEL_swap_event is broken on the server side, where it's
currently unconditionally enabled. This completely breaks
systems running on drivers which don't support that extension.
There's no way to test for its presence on this side, so instead
of disabling it uncondtionally, just disable it for drivers
which are known to not support it. It makes sense because
most drivers do support it right now.
We'll be able to remove this once Xserver properly advertises
GLX_INTEL_swap_event.

Note: This is a candidate for stable branch branches.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60052
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 076403c30d9f5cc79374e30d9f6007b08a63bf2d)
ri2_glx.c
5fdc42fb877644ae4c3343c9391f959bc7d71515 11-Feb-2013 Brian Paul <brianp@vmware.com> dri_glx: fix use after free report

the critical error would use driverName.

Found by internal RH coverity scan.

Note: This is a candidate for stable branches.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit a0ec9185eb90568ab57170dc682de0ba0c9e5e62)

Conflicts:

src/glx/dri_glx.c
ri_glx.c
63f858943084b5cbeb20cce96ccae3c25e633663 25-Jan-2013 Zack Rusin <zackr@vmware.com> glx: only advertise GLX_INTEL_swap_event if it's supported

Only drivers supporting DRI2 version >=4 support GLX_INTEL_swap_event.
So lets mark it as such otherwise applications which use this extension
(i.e. everything based on Clutter, e.g. gnome-shell) break horribly on
drivers supporting DRI2 versions only up to 3.

Note: This is a candidate for the 9.0 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit dbb2d192de33064ae6cdb799d71c5ac89a6ea8ff)
ri2_glx.c
d63e946587bb104e2b320fbebafe25bb969d01b8 29-Dec-2012 Johannes Obermayr <johannesobermayr@gmx.de> tests: AM_CPPFLAGS must include $(top_srcdir) instead of $(top_builddir).

Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
(cherry picked from commit ebcabb88cfd19b35cd1b0a327fa055fff0c1b2be)

Additionally it fixes the missing $(top_srcdir)/include in
src/glsl/tests/Makefile.am

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59383
ests/Makefile.am
4b507f809c66a1b4245e63778943aeeed71f575c 12-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> glx: Set sRGBCapable to a default value

Previously, if the server didn't send a GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT
tag, it would still be set to GLX_DONT_CARE (which is -1). Set it to
GL_FALSE instead.

NOTE: This is a candidate for stable release branches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Maciej Wieczorek <maciej.t.wieczorek@intel.com>
(cherry picked from commit 7b0f912e70d79bcb863ea38f7d3910ab2be0860e)
lxext.c
8d00f077c9672ed2f00a1c67b688c82c3fc7d480 17-Oct-2012 Adam Jackson <ajax@redhat.com> glx: Add GLXBadProfileARB to the error string list

Note: This is a candidate for the stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit a30d14635d5d55ce0e022b0b66770da32155a3d7)
lxext.c
8aab8a50d3c56e73ea53be111bbb8b477f6e8c99 17-Oct-2012 Owen W. Taylor <otaylor@fishsoup.net> glx: Fix listing of INTEL_swap_event in glXQueryExtensionsString()

Due to a string mismatch, INTEL_swap_event wasn't listed among GLX
extensions for the connection, even when present on both client and
server. That is, glXQueryServerString and glXGetClientString reported the
extension, but glXQueryExtensionsString did not.

Note: This is a candidate for the stable branches.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56057
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 1d0c6211212a2d486c8f7f64349fd9683061342e)
ri2_glx.c
a2f28ceea22254f09ee37039eec873ccdf689e6c 19-Sep-2012 Matt Turner <mattst88@gmail.com> build: Use AX_PTHREAD's HAVE_PTHREAD preprocessor definition
(cherry picked from commit 814345f54b74eee2597cf84f3c34817488f07522)

Conflicts:

src/mapi/glapi/gen/gl_x86-64_asm.py
src/mapi/glapi/gen/gl_x86_asm.py
pple/Makefile
lxclient.h
lxcurrent.c
421dda800de3aff588e97ccb6398b94e780590cd 19-Sep-2012 Matt Turner <mattst88@gmail.com> build: Use PTHREAD_LIBS and PTHREAD_CFLAGS
(cherry picked from commit b6651ae6ad314a93287e431a41f5c7a8f8f6c855)

Conflicts:

src/mesa/main/tests/Makefile.am
ests/Makefile.am
2fe673fec3d602ba2b686eedbdf2d70a42794a82 10-Sep-2012 Jonas Maebe <jonas.maebe@elis.ugent.be> darwin: do not create double-buffered offscreen pixel formats

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

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
(cherry picked from commit 5fdf1f784bf449d7ce9839506fa23c5357696c4c)
pple/apple_visual.c
f9786394e5969593f9a0ea6e5653168197506523 18-Aug-2012 Matt Turner <mattst88@gmail.com> build: Clean glx Makefile.am

mapi/glapi is already built when make is run in src/glx.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
akefile.am
6a3ac03f2b80c80655d66b31c0218754f70156de 12-Mar-2010 Dave Airlie <airlied@redhat.com> glx/dri2: add dri2 prime support.

This adds support for having libGL pick a different driver for prime support.

DRI_PRIME env var is set to the value retrieved from the server randr
provider calls, by the calling process. (generally DRI_PRIME=1 will be
the right answer).

Signed-off-by: Dave Airlie <airlied@redhat.com>
ri2.c
726f534bbb3f0356fbd5ceef7a1bba23024b4147 18-Jul-2012 Christopher James Halse Rogers <christopher.halse.rogers@canonical.com> build/glx: fix include paths for out-of-tree builds

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
akefile.am
b2ecaab7ad671f97840867c26869e0accf25592c 18-Jul-2012 Christopher James Halse Rogers <christopher.halse.rogers@canonical.com> build: fix location of generated files in src/mesa (v4)

Also fix include paths for the generated headers.

v2: Switch to using self-explanatory BUILDDIR/SRCDIR defined from
top_builddir/top_srcdir rather than the ambiguous TOP.
v3: Add both top_builddir and top_srcdir to include flags for mesa asm.
These rely on both in-tree and build-time-generated includes.
v4: Rebased on top of 948c8f502a.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
pple/Makefile
68bccc40f55aee7f4af8eb64b15a95f0b49d6a17 07-Aug-2012 Kenneth Graunke <kenneth@whitecape.org> glx/dri: Initialize reset to __DRI_CTX_RESET_NO_NOTIFICATION.

If the application has requested reset notification, then
dri2_convert_glx_attribs will initialize this to the correct value.

Otherwise, it's supposed to initialize this to NO_NOTIFICATION, but
doesn't when num_attribs == 0. (The consensus seems to be that we
should make it do so, but that's more invasive, so I'm pushing this for
now.)

Fixes a regression since a8724d85f8cb2f0fb73b9c6c1f268f9084c6d473
where trying to run OilRush_x86 or apitrace heaven_x64 would result in:

dri_util.c:221: dri2CreateContextAttribs: Assertion `!"Should not get
here."' failed.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53076
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
ri2_glx.c
risw_glx.c
99fee476a102be898a1a093c037e06382f90a5b9 01-Aug-2012 Ian Romanick <ian.d.romanick@intel.com> glx: Don't use glapitable.h at all

When --enable-shared-glapi is used, all non-ABI entries in the table are
lies. Avoiding the use of glapitable.h avoids the lies. The only
entries used in this code are entries that are ABI. For these, the ABI
offset can be used directly.

Since this code is in src/glx, it can't use src/mesa/main/dispatch.h to
get the pretty names for these offsets.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
lxclient.h
ingle2.c
inglepix.c
f5dffb7e36487ff8a012725aaf78a4b7d3169102 01-Aug-2012 Ian Romanick <ian.d.romanick@intel.com> glx: Don't rely on struct _glapi_table

When --enable-shared-glapi is used, all non-ABI entries in the table are
lies. There are two completely separate code generation paths used to
assign dispatch offset. Neither has any clue about the other.
Unsurprisingly, the can't agree on what offsets to assign.

This adds a bunch of overhead to __glXNewIndirectAPI, but this function
is called at most once.

The test ExtensionNopDispatch was removed. There was just no way to
make this test work with the information provided in shared-glapi.
Since indirect_glx.c uses _glapi_get_proc_offset now, it was also
impossible to make the tests work without shared-glapi. So much pain.

This fixes indirect rendering with shared-glapi.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
ests/Makefile.am
ests/indirect_api.cpp
27382c0f7ba2ae826531ba4c254741b2a9df1882 16-Jul-2012 Brad King <brad.king@kitware.com> automake: Honor GL_LIB for mangled/custom lib names

Commit 2d4b77c7 (automake: Convert src/mesa/drivers/x11/Makefile to
automake, 2012-06-12) dropped the old Makefile, which used GL_LIB, and
replaced it with a Makefile.am hard-coding the name "GL". This broke
handling of --enable-mangling and --with-gl-lib-name options which
depend on GL_LIB to specify the GL library name.

Use "@GL_LIB@" in src/mesa/drivers/x11/Makefile.am to configure the
library name. Also use this approach to simplify src/glx/Makefile.am
and drop the HAVE_MANGLED_GL conditional. While at it, fix the
compatibility link we create in "lib" for the software-only driver to
use version GL_MAJOR instead of hard-coding "1".

Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
akefile.am
f42e601ce0263808ba36c88763196856ecdb79c1 17-Jul-2012 Matt Turner <mattst88@gmail.com> glx: build tests after libglx.la

Previously, if you ran make followed by make check it would work, but
if you just ran make check the test program would fail to compile.

Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
akefile.am
b2a37e242ea60fde6d616814a30b89325875d0df 29-Jun-2012 Jon TURNEY <jon.turney@dronecode.org.uk> automake: convert libglapi

* "configure substitutions are not allowed in _SOURCES variables" in automake,
so remove the AC_SUBST'ed GLAPI_ASM_SOURCES and instead use some AM_CONDITIONALS
to choose which asm sources are used

* Change GLAPI_LIB to point to the .la file in other Makefile.am files, and make a link
to the .a file for the convenience of other Makefiles which have not yet been converted
to automake

v2:
- Use AM_CPPFLAGS for cleaner build output
- EXTRA_SOURCES is not needed
- Remove libglapi.a compatibility link on clean

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Matt Turner <mattst88@gmail.com>
akefile.am
bd3aab8d7915b0bc5829a32964955d9da84bef3b 12-Jul-2012 José Fonseca <jfonseca@vmware.com> scons: Also require recent XCB.

And don't trip when it's not found -- simply skip building src/glx.
Conscript
6882381a2efbdf06b7002d11468c94b9964c2bc8 04-Jul-2012 Eric Anholt <eric@anholt.net> mesa: Require current libxcb.

Without that, people with buggy apps that looked at just the server
string for GLX_ARB_create_context would call this function that just
threw an error when you tried to make a context. Google shows plenty
of complaints about this.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
lientinfo.c
reate_context.c
lxextensions.c
ests/Makefile.am
a8724d85f8cb2f0fb73b9c6c1f268f9084c6d473 03-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> glx/dri2: Add support for GLX_ARB_create_context_robustness

Add the infrastructure required for this extension. There is no
xserver support and no driver support yet. Drivers can enable this be
advertising DRI2 version 4 and accepting the
__DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS flag and the
__DRI_CTX_ATTRIB_RESET_STRATEGY attribute in create context.

Some additional Mesa infrastructure is needed before drivers can do
this. The GL_ARB_robustness spec, which all Mesa drivers already
advertise, requires:

"If the behavior is LOSE_CONTEXT_ON_RESET_ARB, a graphics reset
will result in the loss of all context state, requiring the
recreation of all associated objects."

It is necessary to land this infrastructure now so that the related
infrastructure can land in the xserver. The xserver has very long
release schedules, and the remaining Mesa parts should land long, long
before the next xserver merge window opens.

v2: Expose robustness as a DRI2 extension rather than bumping
__DRI_DRI2_VERSION.

v3: Add a comment explaining why dri2->base.version >= 3 is also
required for GLX_ARB_create_context_robustness.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
ri2_glx.c
ri_common.c
ri_common.h
risw_glx.c
lxextensions.c
lxextensions.h
5fb178ee43fbc364b150fe6c6f0f79e8d8b0b179 04-Jun-2012 Ian Romanick <ian.d.romanick@intel.com> glx/tests: Fix off-by-one error in allocating extension string buffer

NOTE: This is a candidate for the 8.0 release branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50621
Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=418161
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Markus Oehme <oehme.markus@gmx.de>
ests/fake_glx_screen.h
f2f05e50b1e88b431cb98348bf67e6d5a35d8cf1 20-Jun-2012 Paul Berry <stereotype441@gmail.com> glx/tests: Fix signed/unsigned comparison warnings.
ests/clientinfo_unittest.cpp
ests/create_context_unittest.cpp
4b7b4c46c5eeceb5ce5c0cb0aac50f32284d29d3 14-Jun-2012 Paul Berry <stereotype441@gmail.com> glx/tests and mesa/tests: Update .gitignore files.

This patch updates .gitignore files to account for the new build
artifacts introduced by the following commits:

ae376f0 glx/tests: Rename test as glx-test
8fecdcc mesa/tests: Add tests for _mesa_lookup_enum_by_{name,nr} functions
a29ad2b mesa/tests: Add tests for the generated dispatch table
ests/.gitignore
3c22f7941288699e040c8841e57aa81563616c55 24-May-2012 Ian Romanick <ian.d.romanick@intel.com> glx/tests: Add unit tests for generated code in indirect_init.c

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
ests/Makefile.am
ests/indirect_api.cpp
4c270f9c6b1594d06d2d78542ba1908be941b629 24-May-2012 Ian Romanick <ian.d.romanick@intel.com> glx/tests: Add unit tests for generated code in indirect_size.c

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
ests/Makefile.am
ests/enum_sizes.cpp
ae376f056791607017908e726b14ce1202edc33b 30-May-2012 Ian Romanick <ian.d.romanick@intel.com> glx/tests: Rename test as glx-test

This matches the existing test in src/glsl/tests.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
ests/Makefile.am
2e8c866f104202a1c05a7036b44b0c8c434b9ef3 24-May-2012 Ian Romanick <ian.d.romanick@intel.com> glx: Move tests from tests/glx to src/glx/tests

This matches the organization of other unit tests in Mesa.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
akefile.am
ests/.gitignore
ests/Makefile.am
ests/clientinfo_unittest.cpp
ests/create_context_unittest.cpp
ests/fake_glx_screen.cpp
ests/fake_glx_screen.h
ests/mock_xdisplay.h
0256edd709d976198d5354fdd88143d8da9e51d5 25-May-2012 Stéphane Marchesin <marcheu@chromium.org> glx: Handle a null reply in QueryVersion.

Works around crashes when X connections break.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>

NOTE: This is a candidate for the 8.0 branch.
lxext.c
743e505315b6be851618caed61981d7c1617bf45 15-May-2012 Eric Anholt <eric@anholt.net> automake: Globally add stub automake targets to the old Makefiles.

I tried to update all the old Makefiles that included the default
config to be sure they had a default target if they didn't previously
have one, since this new all target will always point at it. Almost
everything had one.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
pple/Makefile
dff36e900c645401b26c9a44106459e96ee7a24d 30-May-2012 Brian Paul <brianp@vmware.com> scons: add code to generate the various GL API files

This fixes recent build breakage when we began building the generated
API files from xml as part of the normal build process.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=50475
Conscript
0ce0f7c0c8fa9902678af7f3ecad2541be5808d2 15-May-2012 Eric Anholt <eric@anholt.net> mesa: Remove the generated glapi from source control, and just build it.

Mesa already always depends on python to build. The checked in
changes are not reviewed (because any trivial change rewrites the
world). We also have been pushing commits between xml change and
regen where at-build-time xml-generated code disagrees with committed
xml-generated code. And worst of all, sometimes we ("I") check in
*stale* xml-generated code.

Acked-by: Ian Romanick <ian.d.romanick@intel.com>
gitignore
ndirect.c
ndirect.h
ndirect_init.c
ndirect_size.c
ndirect_size.h
27b821bc95ea01cc4292ada9c7c65211580d1f98 18-May-2012 Jeremy Huddleston <jeremyhu@apple.com> darwin: Address a build failure on Leopard and earlier OS versions

<https://trac.macports.org/ticket/34499>

Regression-from: 51691f0767f6a75a1f549cd979a878a0ad12a228
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glx_log.c
d65bd195ecbd6623b962a3c98725a484ef2791a8 28-Apr-2012 Jeremy Huddleston <jeremyhu@apple.com> darwin: Eliminate a possible race condition while destroying a surface

Introduced by: c60ffd2840036af1ea6f2b6c6e1e9014bb8e2c34
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glx_surface.c
a73a800b3200d21c32fac9f28e2f86919bc0a2ba 11-May-2012 Jeremy Huddleston <jeremyhu@apple.com> darwin: Unlock our mutex before destroying it

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

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glx_drawable.c
51691f0767f6a75a1f549cd979a878a0ad12a228 29-Apr-2012 Jeremy Huddleston <jeremyhu@apple.com> darwin: Use ASL for logging

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/Makefile
pple/apple_glx.c
pple/apple_glx.h
pple/apple_glx_log.c
pple/apple_glx_log.h
cf5db0a418b63d71385b43897a7ea9be7bb785d1 29-Apr-2012 Jeremy Huddleston <jeremyhu@apple.com> darwin: Make reported errors more user-friendly

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glx_drawable.c
244dc0521439379a0a44f81ba432aa04ca6c1a91 29-Apr-2012 Jeremy Huddleston <jeremyhu@apple.com> darwin: Fix an error message

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glx_context.c
1a33c1b2b895566299ec76643659adacc239a3dc 24-Apr-2012 Jeremy Huddleston <jeremyhu@apple.com> darwin: Eliminate a pthread mutex leak

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Charles Davis <cdavis@mines.edu>
pple/apple_glx_drawable.c
c60ffd2840036af1ea6f2b6c6e1e9014bb8e2c34 24-Apr-2012 Jonas Maebe <jonas.maebe@elis.ugent.be> apple: Fix a use after free

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glx_surface.c
94726d263ebee6364e9be2f254c3ca7d1f85dde4 06-Mar-2012 Eric Anholt <eric@anholt.net> glx: Hook up the unit tests again using the internal gtest.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
gitignore
akefile.am
8b5b3b93d73d80a54d12d0d7a6a74fb97b27bf8a 28-Mar-2012 Yuanhan Liu <yuanhan.liu@linux.intel.com> glx: fix compile warnings

Fix 'set but not used' warnings; gl_version, gl_versions_profiles and
glx_extensions variables are used just only HAVE_XCB_GLX_CREATE_CONTEXT
is defined. Thus those warnings are shown when that macro isn't defined.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lientinfo.c
ba83b8b4ae8adfc7520baf119f8c56bdcbf6547f 13-Mar-2012 Jon TURNEY <jon.turney@dronecode.org.uk> Use -no-undefined libtool flag in src/glx/Makefile.am

"Use -no-undefined to assure libtool that the library has no unresolved
symbols at link time, so that libtool will build a shared library on
platforms that require that all symbols are resolved when the library is linked."

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
akefile.am
7a6324dbfe8d354b9b5f3181af0ce6bebbb374cc 20-Mar-2012 Wang YanQing <udknight@gmail.com> glx:dri_common.c: check psc->driScreen->createDrawable return value

createDrawable may return NULL value, we should check it, or it will
make a segment failed.

[minor-indent-issue-fixed-by: Yuanhan Liu]

Signed-off-by: Wang YanQing <udknight@gmail.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
ri_common.c
2c778375a1356ffb8db1522bc3fc64c568c35cb1 23-Mar-2012 Dave Airlie <airlied@redhat.com> glx/drisw: avoid segfaults when we fail to get visual

piglit glx-tfp segfaults on llvmpipe when run vs a 16-bit radeon screen,

it now fails instead of segfaulting, much prettier.

Signed-off-by: Dave Airlie <airlied@redhat.com>
risw_glx.c
e07b1603e24ddd21a61b11390712c4b39d6a3c5c 20-Mar-2012 Eric Anholt <eric@anholt.net> glx: Fix glXGetProcAddress() of global glX symbols post-automake conversion.

When a GL LD_PRELOAD library like apitrace was used,
glXGetProcAddress() would return the preload's symbols instead of
libGL's symbol, leading to infinite recursion when the returned
function was called. This didn't hit apitrace on most apps because
who calls glXGetProcAddress() on the global functions.

The -Bsymbolic, which was present in mklib before automake conversion,
causes the glxcmds.c:GLX_functions table to be resolved at link time,
so that LD_PRELOADs don't affect it any more.

Fixes crashes when running wine under apitrace.

Tested-by: Matt Turner <mattst88@gmail.com>
Tested-by: Marek Olšák <maraeo@gmail.com>
akefile.am
dfce56ba4dd444cdb1148425a2cc0662bb79932d 20-Mar-2012 Kenneth Graunke <kenneth@whitecape.org> Add Makefile.in to toplevel .gitignore

To avoid redundancies, this patch also removes Makefile.in from the
other .gitignore files.

Acked-by: Eric Anholt <eric@anholt.net>
gitignore
b41ab3b42c989926389e599d5794412a628f277f 16-Mar-2012 Paul Berry <stereotype441@gmail.com> Add .deps/, .libs/, and *.la to toplevel .gitignore

To avoid redundancies, this patch also removes .deps, .libs, and *.la
from .gitignore files in subdirectories.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
gitignore
ca760181b4420696c7e86aa2951d7203522ad1e8 16-Mar-2012 Kristian Høgsberg <krh@bitplanet.net> shared-glapi: Convert to automake

This fixes a build problem where EGL links to libgbm.la, which encodes
a relative path to it's libglapi.so dependency. The relative path
breaks when the linker tries to resolve it from src/egl/main instead
of src/gbm. Typically we silently fall back to the system
libglapi.so, which is wrong and breaks when there isn't one.

Morale of the story: don't mix mklib and libtool.
akefile.am
f9e1295cffc3cf096611e193cca016326715e6ca 17-Mar-2012 Jeremy Huddleston <jeremyhu@apple.com> darwin: Build create_context.c

Fixes a build regression from: 588042a8ec4ea91a952c07a0768516fd590758f4

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/Makefile
reate_context.c
b60120608f6ddf4098bc324363197c979ee04cb7 10-Dec-2011 David Fries <David@Fries.net> Set close on exec flag FD_CLOEXEC

Set the close on exec flag when opening dri character devices, so they
will be closed and free any resouces allocated in exec.

Signed-off-by: David Fries <David@Fries.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
ri2_glx.c
d249bd9cbd38c8da5b3f11d3c50bdbfc612cf1e5 03-Mar-2012 Johannes Obermayr <johannesobermayr@gmx.de> glx: Also put a symlink from libGL.so in lib/ for now.

This fixes the libGLU.so.* build when a system libGL.so is not present
since it is relying on the lib/ to build against until it gets
converted to automake.

Tested-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
akefile.am
8ffb098234fbc3d2e3c8b3db6912dec9ea7a65eb 05-Feb-2012 Eric Anholt <eric@anholt.net> glx: Convert to automake.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
gitignore
akefile
akefile.am
26de5273acf1ebe6730b5e72b55b3bcceba167c6 04-Feb-2012 Carl Worth <cworth@cworth.org> dri: Emit a critical error if the swrast driver fails to load.

Something has gone wrong if swrast is requested but cannot be
loaded. The user really should be made aware of this, (and instructed
to set LIBGL_DEBUG for more details).

The wording of this error message is updated from "reverting to
indirect rendering" to the more objectively descriptive "failed to
load driver: swrast". The former wording makes assumptions about what
the calling code will decide to do next, rather than simply describing
what went wrong within the current function. The new wording is
consistent with the critical errors recently added for hardware
drivers that fail to load.

Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
risw_glx.c
6c9af977401ff986964d678f8870eee23c504077 04-Feb-2012 Carl Worth <cworth@cworth.org> dri: Emit a critical error if a named driver fails to load.

Something has gone wrong if we were asked to load a driver of a
specific name, but it failed to load for some reason. The user really
should be made aware of this, (and instructed to set LIBGL_DEBUG for
more details).

Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
ri2_glx.c
ri_glx.c
92bef0bfa121e0e58112ffae352c8ad9e5da6307 04-Feb-2012 Carl Worth <cworth@cworth.org> dri: Add a CriticalErrorMessageF macro.

Sometimes an error is so sever that we want to print it even when the
user hasn't specifically requested debugging by setting LIBGL_DEBUG.

Add a CriticalErrorMessageF macro to be used for this case. (The error
message can still be slienced with the existing LIBGL_DEBUG=quiet).

For critical error messages we also direct the user to set the
LIBGL_DEBUG environment variable for more details.

Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
ri_common.c
ri_common.h
c09504c343d904dc8c135c9b7241e8315c134d0f 04-Feb-2012 Carl Worth <cworth@cworth.org> dri: Clarify comments on InfoMessageF and ErrorMessageF macros.

The description of ErrorMessageF was misleading in the case of
LIBGL_DEBUG being unset, (the previous comment could be understood to
mean the error should be printed, but the code does not print in this
case).

InfoMessageF previously had no comment at all.

Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
ri_common.c
8937c166efaaae6e05d8c8cd30be220b577729b8 09-Sep-2010 Jon TURNEY <jon.turney@dronecode.org.uk> Have __glImageSize handle format GL_DEPTH_STENCIL_NV the same way as the server does

There is a mismatch between the way the X server and GLX library
calculates the image size for format GL_DEPTH_STENCIL(|_NV|_EXT)

See https://bugs.freedesktop.org/show_bug.cgi?id=30102

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
ompsize.c
027ce0c493a85c863df88b43f61aea34bcd4cd58 24-Jan-2012 Matt Turner <mattst88@gmail.com> Revert "Always build shared glapi"

This reverts commit adefee50d954151f76150af80207081ae3c247d9.

Shared glapi was never tested with --enable-xlib-glx and turns out
to cause a lot of problems.

Conflicts:

configure.ac
akefile
Conscript
lxcmds.c
ndirect.c
ndirect.h
adefee50d954151f76150af80207081ae3c247d9 12-Jan-2012 Matt Turner <mattst88@gmail.com> Always build shared glapi

libglapi.so, libGL.so, libGLESv2.so, libGLESv1_CM.so must all
come from the same version of Mesa or bad things may happen.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Matt Turner <mattst88@gmail.com>
akefile
Conscript
lxcmds.c
ndirect.c
ndirect.h
6c2c2c5a07c81a15a89519a8a84ef7c69698903b 13-Jan-2012 Roland Scheidegger <sroland@vmware.com> scons: Fix libGL.so build.
Conscript
10a6fde333f0170fbac70924581c647e531aba3e 11-Jan-2012 Kenneth Graunke <kenneth@whitecape.org> glx/dri: Initialize api even if num_attribs == 0.

Both dri2_create_context_attribs and drisw_create_context_attribs call
dri2_convert_glx_attribs, expecting it to fill in *api on success.

However, when num_attribs == 0, it was returning true without setting
*api, causing the caller to use an uninitialized value.

Tested-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
ri_common.c
765ed3a6a9317607311bac1dcb0edee13ebcee16 09-Jan-2012 Paul Berry <stereotype441@gmail.com> glx: Suppress unused variable warning for cmdlen

No functional change. In the function
__indirect_glAreTexturesResident(), the variable cmdlen is only used
if USE_XCB is not defined. This patch avoids a compile warning in the
event that USE_XCB is defined.

v2: just move cmdlen declaration inside the #else part.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
ingle2.c
f9b2d2fea586f772551abbb675970b71b2fdf8c9 10-Jan-2012 José Fonseca <jfonseca@vmware.com> scons: Fix libGL.so build.
Conscript
f82d40d4b1aa60364c03c32578ecd675d4d86dcf 04-Jan-2012 Marek Olšák <maraeo@gmail.com> glx/dri2: print FPS when env var LIBGL_SHOW_FPS is 1 (v2)

This is useful for apps which don't print FPS.
Only enabled in SwapBuffers.

v2: track state per drawable, use libGL prefix

Reviewed-by: Michel Dänzer <michel@daenzer.net>
ri2_glx.c
4becf676e0b09b421821b6895251549ec98d4e5d 03-Jan-2012 Ian Romanick <ian.d.romanick@intel.com> glx: More hacking around versions of XCB that lack GLX_ARB_create_context support

Detect whether a new enough version of XCB is installed at configure
time. If it is not, don't enable the extension and don't build the
unit tests.

v2: Move the AM_CONDIATION outside the case-statement so that it is
invoked even for non-GLX builds. This prevents build failures with
osmesa, for example.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Robert Hooker <robert.hooker@canonical.com>
lientinfo.c
reate_context.c
lxextensions.c
2af17433b5b037af99198acfac567c57618286c3 03-Jan-2012 Adam Jackson <ajax@redhat.com> drisw: Fix drawable creation against non-default screens

We don't want to match the visual against the default screen. If the
drawable is on a non-default screen then the appropriate visual might not
exist on the default screen. Conversely, if the same visual is
available on multiple screens then simply selecting for the right VID is
sufficient, since the server has promised that the same visual is
compatible with multiple screens.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
risw_glx.c
f433fe015e903424d25673ebfe5dcb115381d753 03-Jan-2012 Ian Romanick <ian.d.romanick@intel.com> glx: Hack around versions of XCB that lack GLX_ARB_create_context support

A lot of tests in 'make check' will fail under these circumstances,
but at least the build should work.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
reate_context.c
lxextensions.c
3ef3ba4d2eee36f64062a21ce030c3f4d8c4cac4 16-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> tests/glx: Add unit tests for GLX_ARB_create_context GLX protocol

This adds a new tests directory at the top-level and some extra build
infrastructure. The tests use the Google C++ Testing Framework, and
they will only be built if configure can detect its availability. The
tests are automatically wired-in to run with 'make check'.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Chad Versace <chad.versace@linux.intel.com>
akefile
8a4b36de05a133c1c9527836ca58bf8ebdf229bd 29-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Don't use 'new' as a function parameter name

Using 'new' as a function parameter name prevents including
glxclient.h the unit tests (future patch) that use the Google C++
Testing Framework.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
lxclient.h
e6280c3ba9579bf01f8b82e19497ba8f142a8d09 02-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Enable GLX_EXT_create_context_es2_profile

This extension is only enabled if the underlying driver advertises
support for OpenGL ES 2.0. This happens either through the getAPIMask
function in version 2 of the DRI2 extension or implicity through
version 2 of the DRISW extension.

Since there is no OpenGL ES 2.0 protocol, this extension is marked as
only available with direct-rendering.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
ri2_glx.c
ri_common.c
risw_glx.c
lxextensions.c
lxextensions.h
296fe21ae5be838268e51fdd9a4a3009ab961265 01-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx/dri2: Implement glx_screen_vtable::create_context_attribs for DRISW contexts

This also enables GLX_ARB_create_context and
GLX_ARB_create_context_profile if the driver supports DRI_DRISW
version 3 or greater.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
risw_glx.c
b45f77dc4c9662a774c19db764bb8f95c4f61073 01-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx/dri: Add utility function dri2_convert_glx_attribs

This converts all of the GLX data from glXCreateContextAttribsARB to
the values expected by the DRI driver interfaces.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
ri_common.c
ri_common.h
c9d25cf73fceebf55d5b1bbe0f3f6704a45223b5 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Add extension strings for GLX_ARB_create_context and GLX_ARB_create_context_profile

Note that these extensions are not automatically enabled for screens
capable of direct-rendering.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
lxextensions.c
lxextensions.h
78aa71a3ce8a999d64f30ce4f6d3939eec198f16 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Connect glXCreateContextAttribsARB to glXGetProcAddress

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
lxcmds.c
588042a8ec4ea91a952c07a0768516fd590758f4 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Initial implementation of glXCreateContextAttribsARB

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
akefile
reate_context.c
lxclient.h
lxcmds.c
48ffc6a1553083280c217640629cc6ebed1bf982 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx/dri2: Implement glx_screen_vtable::create_context_attribs for DRI2 contexts

This also enables GLX_ARB_create_context and
GLX_ARB_create_context_profile if the driver supports DRI_DRI2 version
3 or greater.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
ri2_glx.c
6a0640971f5e12d329e91f92996382a7227d7b08 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Implement glx_screen_vtable::create_context_attribs for indirect contexts

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
ndirect_glx.c
43409fa7b0e64f6d73c3d33bc9a39ba26dd4caeb 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Add glx_screen_vtable::create_context_attribs

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
ri2_glx.c
ri_glx.c
lxclient.h
ndirect_glx.c
eacd61bfefc416166998b2344540dab1e4e77beb 29-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Use __glX_send_client_info with XCB

__glX_send_client_info only supports XCB, so use that instead of
__glXClientInfo when USE_XCB is defined.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
lxext.c
6ccda72bf87a27844f8b9807fc080984f48af1cf 29-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Add __glX_send_client_info super function

This function picks the correct client-info protocol (based on the
server's GLX version and set of extensions) and sends it to the
server.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
akefile
lientinfo.c
lxclient.h
ed4a65c3cfdf88afba48860be34ce26f7c371869 08-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Propagate the glXIsDirect protocol error back to the application

If the server returned BadContext, the error would just get droped on
the floor.

Fixes the piglit test glx-import-context-single-process

NOTE: This is a candidate for the 7.11 branch, but it also requires
the previous patch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
lxcmds.c
fba400072fb64dd326d35bb12a27ca17f9e03ada 12-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Deliver an xlib style error to the application from an XCB error

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
lx_error.c
lx_error.h
c66242a6c69f266eef5c6a5f2a1cece911ea9568 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Remove GLX_USE_APPLEGL cruft in extension string handling

All of the extensions require that both libGL and either the server or
the direct rendering driver (or both) enable the extension before it's
advertised. It seems safe to assume that none of the other components
on OS X will enable these extensions, so all the #ifdef blocks here
just clutter the code.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: Jeremy Huddleston <jeremyhu@apple.com>
lxextensions.c
d3f7597bc9f6d5a5035999cdbd22501dfe9ea8aa 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: GLX 1.4 does not require GLX_INTEL_swap_event

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
lxextensions.c
8e5efbe62bfd4a1f5c960fa9b061c9dffac2bbce 30-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Remove some extensions that are not, and never will be, supported

There are a few unsupported extensions (e.g., the ATI and NV float
extensions) that are still in the list. There is some small chance
that these may be supported some day.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
lxextensions.c
lxextensions.h
e4be406f09fcb3756cd0e8dd0539f62bafb1bcca 29-Nov-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Explicitly reject servers that only support GLX 1.0

__glXInitialize calls AllocAndFetchScreenConfigs.
AllocAndFetchScreenConfigs unconditionally sends a glXQuerySeverString
request to the server. This request is only supported with GLX 1.1 or
later, so we were already implicitly incompatible with GLX 1.0
servers. How many more similar bugs lurk in the code that nobody has
noticed in years?

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
lxext.c
a832aa5ba097253f53983e3f1186b71626d164ae 09-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Initialize share_xid in CreateContext

Previously the share_xid was only set in the glXImportContextEXT path,
and it was left set to None in all of the other create-context paths.

Fixes the piglit test glx-query-context-info-ext.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
lxcmds.c
b1ffb3335f629ed43bde44cee789dc9cdb35c306 12-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Make parameter types for __glXSendError match protocol types

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: Jeremy Huddleston <jeremyhu@apple.com>
lx_error.c
lx_error.h
6f76efa9224f6a1cbe35f419172549abafdd751e 08-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Make __glXSendError available in non-Apple builds

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: Jeremy Huddleston <jeremyhu@apple.com>
akefile
pple/Makefile
pple/glx_error.c
pple/glx_error.h
lx_error.c
lx_error.h
4dbd13cb3f5aeff6ddc85fd091b4677369c19778 07-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Send DestroyContext protocol at the correct times

Send the DestroyContext protocol immediately when glXDestroyContext is
called, and never call it when glXFreeContextEXT is called. In both
cases, either destroy the client-side structures or, if the context is
current, set xid to None so that the client-side structures will be
destroyed later.

I believe this restores the behavior of the original SGI code. See
src/glx/x11 around commit 5df82c8. The spec doesn't say anything
about glXDestroyContext not really destroying imported contexts (it
acts like glXFreeContextEXT instead), but that's what the original
code did. Note that glXFreeContextEXT on a non-imported context does
not destroy it either.

Fixes the piglit test glx-free-context.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
ri2_glx.c
ri_glx.c
risw_glx.c
lxclient.h
lxcmds.c
ndirect_glx.c
3b9b42250ca9f0da6e979afc047d1c8524466076 07-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Don't segfault if glXGetContextIDEXT is pased a NULL context

Fixes the piglit test glx-get-context-id.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
lxcmds.c
5a849e864ea2db3b705ba301089ee2ec1fe78aa1 07-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Fix handling of property list received from the server in glXImportContextEXT

The primary problem was that the number of reply bytes read is clamped
to sizeof(propList), but the loop that processes the properties tries
to examine all of the properties sent by the server. If the server
sends 47,000 properties, we only read 3 but process all 47,000.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
lxcmds.c
7c2f1160c23970929a2846d210357447d07ff5f0 07-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Don't segfault if xcb_glx_is_direct_reply returns NULL

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
lxcmds.c
c4a8c54c3bb31547cba57702ffea99293afef522 06-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> glx: Don't create a shared context if the other context isn't the same kind

Each of the DRI, DRI2, and DRISW backends contain code like the
following in their create-context routine:

if (shareList) {
pcp_shared = (struct dri2_context *) shareList;
shared = pcp_shared->driContext;
}

This assumes that the glx_context *shareList is actually the correct
derived type. However, if shareList was created as an
indirect-rendering context, it will not be the expected type. As a
result, shared will contain garbage. This garbage will be passed to
the driver, and the driver will probably segfault. This can be
observed with the following GLX code:

ctx0 = glXCreateContext(dpy, visinfo, NULL, False);
ctx1 = glXCreateContext(dpy, visinfo, ctx0, True);

Create-context is the only case where this occurs. All other cases
where a context is passed to the backend, it is the 'this' pointer
(i.e., we got to the backend by call something from ctx->vtable).

To work around this, check that the shareList->vtable->destroy method
is the same as the destroy method of the expected type. We could also
check that shareList->vtable matches the vtable or by adding a "tag"
to glx_context to identify the derived type.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
ri2_glx.c
ri_glx.c
risw_glx.c
5016b09f897dd9d93ee1fc86949e0c3d7bd3b36f 17-Dec-2011 Marek Olšák <maraeo@gmail.com> drisw: remove unused variable
risw_glx.c
7e9cb2ac6dd9af5ea1597df8a2015b620aad57a1 08-Dec-2011 Ian Romanick <ian.d.romanick@intel.com> Regenerate files from previous commits

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
ndirect.h
ndirect_size.c
ndirect_size.h
63a6fd6603574c1c01324fbeb0863e39d3864c16 06-Dec-2011 Aaron Plattner <aplattner@nvidia.com> glx: Fix indirect fallback when a non-Mesa GLX extension is present.

When driCreateScreen calls driConvertConfigs to try to convert the
configs for swrast, it fails and returns NULL. Instead of checking,
it just clobbers psc->base.configs. Then, when the application asks
for the FBconfigs, there aren't any.

Instead, make the caller responsible for freeing the old modes lists
if both calls to driConvertConfigs succeed.

Without the second fix, glxinfo fails unless you run it with
LIBGL_ALWAYS_INDIRECT:

$ glxinfo
name of display: :0.0
Error: couldn't find RGB GLX visual or fbconfig

$ LIBGL_ALWAYS_INDIRECT=1 glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: No (LIBGL_ALWAYS_INDIRECT set)
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
[...]

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
ri2_glx.c
ri_common.c
ri_glx.c
risw_glx.c
6d3d0ca9e9ef0d0a1e3ba0940f7127298e078a7d 01-Nov-2011 Adam Jackson <ajax@redhat.com> drisw: Enable SGI_make_current_read for direct contexts

Equivalent to glXMakeContextCurrent, which had better already work since
we advertise GLX 1.3.

Signed-off-by: Adam Jackson <ajax@redhat.com>
risw_glx.c
25620eb1d277c6b80edb136eaeca12532fcfd3ce 29-Oct-2011 Adam Jackson <ajax@redhat.com> glx: Don't enable INTEL_swap_event unconditionally

DRI2 supports this now - and already enables it explicitly - but drisw
does not and should not. Otherwise toolkits like clutter will only ever
SwapBuffers once and wait forever for an event that's not coming.

Signed-off-by: Adam Jackson <ajax@redhat.com>
lxextensions.c
5c44c1348ea13f51a1616968daa7034bb48e42b1 25-Oct-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Implement applegl_unbind_context

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 <jeremyhu@apple.com>
pplegl_glx.c
9f2abbee6215d89e48b7fe042f8a905997f5c232 21-Oct-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Use the correct (OpenGL.framework) glViewport and glScissor during init

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glapi.c
pple/apple_glx.h
pple/apple_glx_pbuffer.c
pple/apple_glx_pixmap.c
pple/apple_glx_surface.c
098ecfad83a63bd8eb04c37f268c18d8744dff2c 21-Oct-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Silence some debug spew

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/appledri.c
511dc295f82c61acefe026d0f4de43d4a31dbf90 10-Oct-2011 Thomas Hellstrom <thellstrom@vmware.com> dri2: Implement a throttle dri extension.

The X server has limited throttle support on the server side,
but doing this in the client has some benefits:

1) X server throttling is per client. Client side throttling can be done
per drawable.

2) It's easier to control the throttling based on what client is run,
for example using "driconf".

3) X server throttling requires drm swap complete events.

So implement a dri2 throttling extension intended to be used by direct
rendering clients.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
ri2_glx.c
f8aeb1c990b6e127497da1e46e0e4cdcb67ce9b3 20-Sep-2011 José Fonseca <jfonseca@vmware.com> scons: MacOSX build fixes.
Conscript
116e896aaf768737fc2ab26e474ed57fc2dd1307 18-Sep-2011 Matt Turner <mattst88@gmail.com> Remove unneeded xdamages header from dri2_glx.c.

It's needed for dri1 but not dri2.

Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
ri2_glx.c
d8c443ddde5e9734d60b63b3ec3b5a5ba756d022 14-Sep-2011 Michel Dänzer <michel.daenzer@amd.com> glx/dri2: Don't call X server for SwapBuffers when there's no back buffer.

As already done in dri2CopySubBuffer().

Should fix:

https://bugs.freedesktop.org/show_bug.cgi?id=36371
https://bugs.freedesktop.org/show_bug.cgi?id=40533

Might fix:

https://bugs.freedesktop.org/show_bug.cgi?id=32589

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
ri2_glx.c
45e0a7a51d88c397a27317d22b325ec31b3e2e99 14-Sep-2011 Andrew Deason <adeason@dson.org> GLX: Say something if we cannot connect via DRI2

See https://bugs.freedesktop.org/show_bug.cgi?id=40437
ri2_glx.c
55e763c86da1aa2042d50d190d797574d6fb6fa8 30-Aug-2011 nobled <nobled@dreamwidth.org> Enable GLX_EXT_texture_from_pixmap in software.

Signed-off-by: nobled <nobled@dreamwidth.org>
Signed-off-by: Stuart Abercrombie <sabercrombie@chromium.org>
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
risw_glx.c
e4344161bde2e24fcfba65d30d58f087bd8bf94d 25-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> dri: Remove all DRI1 drivers

Acked-by: Kristian Høgsberg <krh@bitplanet.net>
Acked-by: Marek Olšák <maraeo@gmail.com>
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Build-Tested-by: Jakob Bornecrantz <jakob@vmware.com>
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
ri_common.c
ri_glx.c
e975e18bebb54b20f00c568e7870932402b79f8f 19-Aug-2011 Brian Paul <brianp@vmware.com> glx: use a block to fix declarations after code warning
lxcmds.c
4a7667b96b7bd7cdffbe929182c15935b74facd2 18-Aug-2011 Kristian Høgsberg <krh@bitplanet.net> glx: Don't flush twice if we fallback to dri2CopySubBuffer

The flush extensions flush call indicates end of frame and should only
be called once per frame. However, in the dri2SwapBuffer fallback
path, we call flush and then call dri2CopySubBuffer, which also calls
flush. Refactor the code to only call flush once.
ri2_glx.c
e0496b63ff0d41a36812b78e9062e92590fcdd55 09-Aug-2011 Brian Paul <brianp@vmware.com> glx: move declarations before code
ri2_glx.c
fbc2fcf685d22ec9bc9465e1f731529979497eaa 03-Aug-2011 Christopher James Halse Rogers <christopher.halse.rogers@canonical.com> glx/dri2: Paper over errors in DRI2Connect when indirect

DRI2 will throw BadRequest for this when the client is not local, but
DRI2 is an implementation detail and not something callers should have
to know about. Silently swallow errors in this case, and just propagate
the failure through DRI2Connect's return code.

Note: This is a candidate for the stable release branches.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=28125
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
ri2.c
0f20e2e18f902b4319851643e1775a18c2aacb3d 18-Jul-2011 Henri Verbeet <hverbeet@gmail.com> glx: Avoid calling __glXInitialize() in driReleaseDrawables().

This fixes a regression introduced by commit
a26121f37530619610a78a5fbe5ef87e44047fda (fd.o bug #39219).

Since the __glXInitialize() call should be unnecessary anyway, this is
probably a nicer fix for the original problem too.

NOTE: This is a candidate for the 7.10 and 7.11 branches.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: padfoot@exemail.com.au
ri_common.c
lxext.c
7eed3d4808097606bf2854e687589a8503db435d 17-Jul-2011 Jeremy Huddleston <jeremyhu@apple.com> darwin: Include glxhash.c in libGL on darwin

Fixes a build regression introduced by 4df137691ee29bb812347fa2c5f19095243ede22

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/Makefile
cfec000e7514342fd51859906e173ba2d474a55c 28-Jun-2011 Marc Pignat <marc@pignat.org> drisw: Fix 24bpp software rendering, take 2

This patch add the support for 24bpp in the dri/swrast implementation.
See http://bugs.freedesktop.org/show_bug.cgi?id=23525

Signed-off-by: Marc Pignat <marc at pignat.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
risw_glx.c
5fe54df58f31e5d321f7cbd5b095eb8c2417deb1 27-Jun-2011 Marek Olšák <maraeo@gmail.com> Rename swrastg_dri to swrast_dri

I prefer it this way and it has been suggested earlier by others too.
Opinions?
risw_glx.c
4df137691ee29bb812347fa2c5f19095243ede22 06-May-2011 Jesse Barnes <jbarnes@virtuousgeek.org> GLX/DRI2: handle swap event swap count wrapping

Create a new GLX drawable struct to track client related info, and add a
wrap counter to it drawable and track it as we receive events. This
allows us to support the full 64 bits of the event structure we pass to
the client even though the server only gives us a 32 bit count.

Reviewed-by: Michel Dänzer <michel@daenzer.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
ri2.c
lx_pbuffer.c
lxclient.h
lxcmds.c
lxext.c
1e39fc784bc3d0d5ad01d9c147529ac0e10f1262 05-May-2011 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2/GLX: use new swap event types

Use the new swap event type so we get valid SBC values.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
ri2.c
lxext.c
4482eba9b221f5c6cda9a649455bc5485080dbc1 01-Jul-2011 José Fonseca <jfonseca@vmware.com> scons: Actually add src/glx/SConscript.
Conscript
d44f821213d7ed67fed18d6ea6c34b61a665c89e 28-Apr-2011 Adam Jackson <ajax@redhat.com> drisw: Remove cargo culting that breaks GLX 1.3 ctors

Signed-off-by: Adam Jackson <ajax@redhat.com>
risw_glx.c
4833104718677caad0027d5e7539ca9bba389392 31-Mar-2011 Adam Jackson <ajax@redhat.com> glx: Verify that drawable creation on the client side actually worked

... and clean up if it didn't.

Signed-off-by: Adam Jackson <ajax@redhat.com>
lx_pbuffer.c
lxcmds.c
9e2bc5d4b0385e374e06c0b26db266067a723bf3 02-Jun-2011 Adam Jackson <ajax@redhat.com> glx: Alias glXFreeContextEXT to glXDestroyContext

Signed-off-by: Adam Jackson <ajax@redhat.com>
lxcmds.c
75be6b76eef00352195220a4beefbc7ca0b76453 21-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> glx: Fix compile.
lxcurrent.c
4fbdde889ce5875243c588e4c7c9f4b775d0d7a5 17-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> glx: Bind to our context before __glXSetCurrentContext

We want to bind to our context before calling __glXSetCurrentContext or
messing with the gc rect in order to properly handle error conditions.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
lxcurrent.c
517614141be2a1f392a4ea87c1077911ccadf35f 17-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> glx: Destroy the old context only after the new one has been bound

This fixes a regression introduced by 49d7e48b33264d94e30af6129c281b6acafa9427

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
lxcurrent.c
559e4f8ebcb186b491d7d687ac43f22a62448fc1 15-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> glx: Allow a context-specific fallback for glXGetProcAddress

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 <jeremyhu@apple.com>
pplegl_glx.c
ri2_glx.c
ri_glx.c
risw_glx.c
lxclient.h
lxcmds.c
ndirect_glx.c
cb5a5f055b6a9f05aed927d28a242bde81dd5bfc 15-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Use apple_cgl_get_dl_handle() rather than opening a new handle

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glapi.c
bf69ce37f0dcbb479078ee676d5100ac63e20750 16-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> glx: implement drawable refcounting.

The current dri context unbind logic will leak drawables until the process
dies (they will then get released by the GEM code). There are two ways to fix
this: either always call driReleaseDrawables every time we unbind a context
(but that costs us round trips to the X server at getbuffers() time) or
implement proper drawable refcounting. This patch implements the latter.

Signed-off-by: Antoine Labour <piman@chromium.org>
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
ri2_glx.c
ri_common.c
ri_glx.c
risw_glx.c
lxclient.h
lxcurrent.c
a128355ecb5b782a69461a04991e4cffb32249db 14-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Set the glapi dispatch table on context bind

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glapi.c
pple/apple_glx.c
pple/apple_glx.h
pplegl_glx.c
816b8acfe81d5e2d666eb926f669d6015df0bbac 13-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> glx: Remove check for gc->vtable->destroy

gc->vtable->destroy is always set and is used unconditionally
in other places, so don't bother checking for it first.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
lxcmds.c
c6cf82fb553405bee241170f6e51cafd751d46ea 13-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: applegl_destroy_context: Pass along the correct display

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pplegl_glx.c
e903cc17bbf7152b3f7d64fe7fbb5ceebcc7452e 13-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Dead code removal

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pplegl_glx.c
lxclient.h
9a00dd974699e369b1eb292103fbde8bc6adfb87 12-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Request OpenGL 3.2 from OpenGL.framework if available

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_visual.c
df1dacf093058e74ec102d8828d2751a9ed6e34e 12-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Store the CGL API version number for future reference

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_cgl.c
pple/apple_cgl.h
02b6e97c75bf2e013064e789b70704c6376e0628 12-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Use a struct glx_config * rather than a void * in apple_visual_create_pfobj

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_visual.c
pple/apple_visual.h
f35913b96e743c5014e99220b1a1c5532a894d69 10-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Use _glapi_create_table_from_handle to initialize our dispatch table

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glapi.c
3b23cf43a4ac308df8875025fed333383b520105 08-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> glx: Remove some GLX_USE_APPLEGL guards around glapi

Now that we're using glapi, we don't need some GLX_USE_APPLEGL ifdef-foo

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
lxcurrent.c
1b90d7d36bba4ca24099cd4c0d1cc3d8ac7ae415 08-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> darwin: Use -fvisibility=hidden to set default symbol visibility

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glapi.c
pple/apple_xgl_api.h
4bb748b609288205ddea750550185d7642025bff 08-Jun-2011 Chia-I Wu <olv@lunarg.com> mesa: merge glapidispatch.h into dispatch.h

glapidispatch.h was located in glapi and shared with mesa core. Because
the way it was shared, mesa core must include it indirectly via
main/dispatch.h.

Now that it is no longer needed by glapi and is located in core mesa,
merging it with main/dispatch.h to avoid wrong uses.
pple/apple_glapi.c
3a71f880d2284cb4d3f7f4de44f83eff95e6a789 08-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Update dispatch table to current OpenGL specs

This updates the apple dispatch table to match the current glapi.
Aliases are still not handled very well.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glapi.c
3871e74733f47202372b34a0a8aa73a9d927ccd2 08-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Dead code removal

Now that we're using glapi, all of this is no longer needed.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/.gitignore
pple/GL_aliases
pple/GL_extensions
pple/GL_noop
pple/GL_promoted
pple/OVERALL_DESIGN
pple/README_UPDATING
pple/apple_exports.list
pple/gen_api_header.tcl
pple/gen_api_library.tcl
pple/gen_code.tcl
pple/gen_defs.tcl
pple/gen_exports.tcl
pple/gen_funcs.tcl
pple/gen_types.tcl
pple/specs/enum.spec
pple/specs/enumext.spec
pple/specs/gl.spec
pple/specs/gl.tm
pple/specs/glx.spec
pple/specs/glxenum.spec
pple/specs/glxenumext.spec
pple/specs/glxext.spec
pple/specs/update.sh
e157f381f21a1d5307f64b6ec3cc1b26d4ddf576 08-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Remove apple_glx_get_proc_address

Now that we're using glapi, we don't need to special case this.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glx.c
pple/apple_glx.h
lxcmds.c
7d215e7c4d0ca8a18d91d4f30f79b97835a6d6c4 08-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Use glapi rather than reinventing the wheel

With this change, Apple's libGL is now using glapi rather than implementing
its own dispatch. In this implementation, two dispatch tables are created:

__ogl_framework_api always points into OpenGL.framework.
__applegl_api is the vtable that is used. It points into OpenGL.framework
or to local implementations that override / interpose this in OpenGL.framework

The initialization for __ogl_framework_api was copied from XQuartz with some
modifications and probably still needs further edits to better deal with
aliases.

This is a good step towards supporting both indirect and direct rendering
on darwin.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/.gitignore
pple/Makefile
pple/apple_glapi.c
pple/apple_glx.c
pple/apple_glx.h
pple/apple_xgl_api.h
pple/apple_xgl_api_additional.c
pple/apple_xgl_api_read.c
pple/apple_xgl_api_stereo.c
pple/apple_xgl_api_viewport.c
pple/gen_api_library.tcl
88cec591706ff63870c9c2a04394034b6f761f9c 08-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Rename __gl_api to __ogl_framework_api

In starting the migration to using mapi, rename __gl_api to
__ogl_framework_api since it is a vtable for OpenGL.framework

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_xgl_api_read.c
pple/apple_xgl_api_stereo.c
pple/apple_xgl_api_viewport.c
pple/gen_api_library.tcl
3d3ecb8520ccca0863026a94e7fda9840aff6c0a 04-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> dri2: protect dri2FlushFrontBuffer against NULL buffers.
ri2_glx.c
2ee5272e1671aff8c8d9e0c12bf37ed006717283 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Finish build fixes for applegl_glx.c

libGL.dylib now *builds* on darwin.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pplegl_glx.c
7c5f37c032231ad144a8a5c5a0b18f3e26c0aea7 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: More fixes for compilation failures

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pplegl_glx.c
5d35343d12ab462100c9eec50a579b73463e465a 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Fix multiple build failures in applegl_glx.c

It is still not building, but this gets us many steps closer

See https://bugs.freedesktop.org/show_bug.cgi?id=29162

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/Makefile
pplegl_glx.c
1885cf27c9c4642a049c60a8236cb84735cb9eba 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Build darwin using applegl rather than indirect

This reverts portions of 6849916170c0275c13510251a7b217c20f2b993e that caused
the darwin config to fail to build due to missing implementations in that
commit.

See https://bugs.freedesktop.org/show_bug.cgi?id=29162

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
lxclient.h
lxcmds.c
lxext.c
3843bbcb4ca4de232dbae6ba3ae619ddfc93508b 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> glx: Dead code removal

Remove a redundant ifndef GLX_USE_APPLEGL

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
lxcurrent.c
8593bb32eae5368c1ba52504133b0bf200bf8e74 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: ifdef out come glapi-foo on darwin

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
lxcurrent.c
7cdf969527fa6d753ad2eb3dd971fe16725eb440 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Change from XExtDisplayInfo to struct glx_display

Fixes regression introduced by: ab434f6b7641a64d30725a9ac24929240362d466 and
c356f5867f2c1fad7155df538b9affa8dbdcf869

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/glx_error.c
279e471750e3ee6a4841ebf16ef2d038e1c12077 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Rename GLXcontext

Fixes regression introduced by: c356f5867f2c1fad7155df538b9affa8dbdcf869

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
lxcmds.c
b7f0ed8444544b7fc927823a903db93ebf723cad 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Rename _gl_context_modes_find_visual to glx_config_find_visual

Fixes regression introduced by: 6ddf66e9230ee862ac341c4767cf6b3b2dd2552b

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
lxcmds.c
488d6c739f5b6cdfa2c670322057c699644d4e52 06-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Re-add driContext and do_destroy

Fixes regression introduced by: c491e585e43d48a2aeec96ccc4008da6c443fb42

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
lxclient.h
22613d1670e3aafcfd3b95191b908a0adabe3eb9 05-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Rename GLXcontext

Fixes regression introduced by: c356f5867f2c1fad7155df538b9affa8dbdcf869

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_xgl_api_read.c
pple/apple_xgl_api_stereo.c
pple/apple_xgl_api_viewport.c
pple/glx_error.c
bb621cb61e0c6d7fcd06df5a77c75efe5c76926d 05-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Rename __GLcontextModes to struct glx_config

Fixes regression introduced by: 6ddf66e9230ee862ac341c4767cf6b3b2dd2552b

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glx_pbuffer.c
lx_pbuffer.c
4c9bab78a118953baf307e31cd53e731299f0151 05-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Rename glcontextmodes.[ch] to glxconfig.[ch]

Fixes regression introduced by: 65d98e25770487456eb3d7eb8ec3ec8272f170b1

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/Makefile
pple/apple_glx_pbuffer.c
pple/apple_glx_pixmap.c
pple/apple_visual.c
pple/glx_empty.c
8e89d0bea7df553a6c937aaa87b1a3c179f69599 05-Jun-2011 Jeremy Huddleston <jeremyhu@apple.com> apple: Update GL specs

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/specs/enum.spec
pple/specs/enumext.spec
pple/specs/gl.spec
pple/specs/gl.tm
pple/specs/glxenum.spec
pple/specs/glxenumext.spec
pple/specs/glxext.spec
164108e3db5ba09d8e0605f88aa17dab83b68742 01-Jun-2011 Eric Anholt <eric@anholt.net> glx: Fix use-before-null-check in dri2InvalidateBuffers().

The compiler used our dereference here to skip the NULL check below.
Fixes window resize in "jconsole -J-Dsun.java2d.opengl=True" under
OpenJDK 6.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37766
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
ri2_glx.c
e09e5cb7d8b2d7a9d0ec61476e654528010b2b91 01-Jun-2011 Adam Jackson <ajax@redhat.com> glx: Remove (unused, broken) fastImageUnpack fast path

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
lxclient.h
ndirect_glx.c
enderpix.c
776a2a54473194e2f0926902276a1f880cded91f 01-Jun-2011 Adam Jackson <ajax@redhat.com> glx: Fix another case of using req outside of the display lock

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
lxcmds.c
fc48de4fabcf3a42a1cd7d447790afefc7d27af8 27-May-2011 Stéphane Marchesin <marcheu@chromium.org> glx: Fix glXGetFBConfigFromVisualSGIX.

We want to check for Success, otherwise it will fail even with the right visual.

NOTE: This is a candidate for the 7.10 branch.

Signed-off-by: Antoine Labour <piman@chromium.org>
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
lxcmds.c
a95ec18549b677b5e9912ca9e2c92df5cfef3b4e 25-May-2011 Adam Jackson <ajax@redhat.com> glx: Don't refer to the request buffer outside of {L,Unl}ockDisplay

... because that's not a safe thing to do. The request buffer is shared
storage among all threads, and after UnlockDisplay the 'req' pointer may
point into someone else's request.

NOTE: This is a candidate for the 7.10 branch.

Signed-off-by: Adam Jackson <ajax@redhat.com>
lx_pbuffer.c
3869be74afb184dbdf9d67fda3de3e3ac7e3db6c 29-Apr-2011 Adam Jackson <ajax@redhat.com> glx: More comment cleanup

Signed-off-by: Adam Jackson <ajax@redhat.com>
lxcmds.c
a3aecd190b7c411d399350f83ee663f8744e94ac 29-Apr-2011 Adam Jackson <ajax@redhat.com> glx: Remove some misleading comments

These functions have already been modified for direct rendering.

Signed-off-by: Adam Jackson <ajax@redhat.com>
lx_pbuffer.c
5a6897ff0b62c6ec3ec49663a7e6a00550194bb9 29-Apr-2011 Adam Jackson <ajax@redhat.com> drisw: Namespace better for ease of navigation

Signed-off-by: Adam Jackson <ajax@redhat.com>
risw_glx.c
b24f291e429b94ca7de74f8b32279e3a0375cd9c 28-Apr-2011 Adam Jackson <ajax@redhat.com> drisw: dead store removal

Signed-off-by: Adam Jackson <ajax@redhat.com>
risw_glx.c
a3e2c8f31f0c5d8d5c1c76e33a572c7be8938573 06-May-2011 nobled <nobled@dreamwidth.org> glx: Check flush DRI extension version at runtime

The DRI driver itself might not have version 3 of the
DRI2 flush extension, in which case this would've
pointed to out of bounds memory...
ri2_glx.c
dc4a3edcf9d414d5098618d5d3b79d8dd90adcc3 05-May-2011 Dave Airlie <airlied@redhat.com> Revert "DRI2/GLX: make swap event handling match spec"

This reverts commit 70227e21bbd4411956ceeb5039640140e64a11a8.

revert this until we sort things out, with a new glproto release
with compatible struct names.
ri2.c
lxext.c
70227e21bbd4411956ceeb5039640140e64a11a8 03-May-2011 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2/GLX: make swap event handling match spec

We only handle a 32 bit swap count, so use the new structure definitions.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
ri2.c
lxext.c
6ae9e8cbabdc8a18a821ea3f716b18b3eb82a495 03-May-2011 Jesse Barnes <jbarnes@virtuousgeek.org> GLX: don't crash when indirect clients try to set an event mask

After sending the GLXChangeDrawableAttributes request, we also set a
local set of attributes on the DRI drawable. But in the indirect case
this array won't be present, so skip the setting in that case to avoid a
crash.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
lx_pbuffer.c
3be1c7f2601a4e8accfa653a095a716b18cf3710 02-May-2011 Marek Olšák <maraeo@gmail.com> glapi: regenerate files for AMD_draw_buffers_blend
ndirect.h
ndirect_size.c
ndirect_size.h
6b329b9274b18c50f4177eef7ee087d50ebc1525 26-Apr-2011 Brian Paul <brianp@vmware.com> Squashed commit of the following:

commit 864fe253b04105b7469e5f7b064dc37637b944f8
Author: Brian Paul <brianp@vmware.com>
Date: Thu Apr 21 20:13:07 2011 -0600

mesa: s/exec/disp/ in _mesa_init_histogram_dispatch()

This function isn't normally compiled (FEATURE_histogram).

commit f4bf45e2b94b582cacd19cdca873c5be627e4250
Author: nobled <nobled@dreamwidth.org>
Date: Thu Apr 21 07:53:58 2011 -0600

mesa: hook up GL_ARB_robustness dispatch functions

...and advertise the extension.

Signed-off-by: Brian Paul <brianp@vmware.com>

commit 2b89e38e5f572dc40cebc06381ae7c5d04386998
Author: nobled <nobled@dreamwidth.org>
Date: Thu Apr 21 07:53:58 2011 -0600

mesa: regenerated API files for GL_ARB_robustness

Signed-off-by: Brian Paul <brianp@vmware.com>

commit 5d5ebfb7135cec9d833adef86cbf4d0f3d9beca8
Author: nobled <nobled@dreamwidth.org>
Date: Thu Apr 21 07:53:57 2011 -0600

glapi: add ARB_robustness xml

Signed-off-by: Brian Paul <brianp@vmware.com>

commit 0159d1d6d99f4bbc18381dc2081c20d3aff17ac9
Author: nobled <nobled@dreamwidth.org>
Date: Thu Apr 21 07:53:57 2011 -0600

mesa: implement GL_ARB_robustness functions

Signed-off-by: Brian Paul <brianp@vmware.com>

commit 938fd71f4c4742f274922d53492a7290ab8d9c9b
Author: nobled <nobled@dreamwidth.org>
Date: Thu Apr 21 07:53:57 2011 -0600

mesa: add context fields for GL_ARB_robustness

Signed-off-by: Brian Paul <brianp@vmware.com>

commit 72075137bc79e65be03dac7e97b6dba93c3a86a4
Author: nobled <nobled@dreamwidth.org>
Date: Thu Apr 21 07:53:57 2011 -0600

mesa: standardize more bounds-checking error messages

Signed-off-by: Brian Paul <brianp@vmware.com>

commit 32a3fc23746db49da903fbc08afa0135af3007d2
Author: nobled <nobled@dreamwidth.org>
Date: Thu Apr 21 07:53:57 2011 -0600

mesa: standardize some bounds-checking error messages

Signed-off-by: Brian Paul <brianp@vmware.com>

commit cecbf1f4d164207de373dec0cadee2e84e1f9656
Author: nobled <nobled@dreamwidth.org>
Date: Thu Apr 21 07:53:57 2011 -0600

mesa: add more bounds-checking support for client memory buffers

Signed-off-by: Brian Paul <brianp@vmware.com>

commit edc895b52383d5bd274422db56adead1d81daf5f
Author: nobled <nobled@dreamwidth.org>
Date: Thu Apr 21 07:53:57 2011 -0600

mesa: add bounds-checking support for client memory buffers

Signed-off-by: Brian Paul <brianp@vmware.com>

commit 3a96ef28a538f158a219b406cd090dee70470c85
Author: nobled <nobled@dreamwidth.org>
Date: Thu Apr 21 07:53:57 2011 -0600

mesa: use is_bufferobj() helper function

Signed-off-by: Brian Paul <brianp@vmware.com>
ndirect.c
ndirect_size.c
ndirect_size.h
a26121f37530619610a78a5fbe5ef87e44047fda 07-Apr-2011 Henri Verbeet <hverbeet@gmail.com> glx: Only remove the glx_display from the list after it's destroyed.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
lxext.c
a75de67c51e9124a7c3846b4110552ea28c60349 07-Apr-2011 Henri Verbeet <hverbeet@gmail.com> glx: Destroy dri2Hash on DRI2 display destruction.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
ri2_glx.c
3bdd12ecb57e9cdc2b21cd665fab14698c1c07df 16-Feb-2011 Marek Olšák <maraeo@gmail.com> mesa: regenerate glapi files
ndirect.c
ndirect.h
ndirect_init.c
7fa53f37e632880c9760aee31270841c83325709 08-Mar-2011 Marek Olšák <maraeo@gmail.com> mesa: regenerate glapi files

Be sure to type "make clean" after this commit, otherwise your binaries
will segfault.
ndirect.c
76a43c5fba9ccb5e7f945a06ce711b381da0819b 10-Mar-2011 Brian Paul <brianp@vmware.com> glx: fix null pointer deref in __glXGenerateError()

The gc var would be NULL if called from line 238. Instead, get
the opcode from __glXSetupForCommand(dpy) as done in other places.
And remove the unused gc parameter.

Fixes a bug reported by "John Doe" on 3/9/2011.

NOTE: This is a candidate for the 7.10 branch.
lxcurrent.c
c3c91a0fe5e9a497c44481bcd072093e6edaac50 07-Mar-2011 Henri Verbeet <hverbeet@gmail.com> glx: Take GLPROTO_CFLAGS into account.
akefile
6538b5824e298eaebede2d9686c7607c44ab446a 06-Mar-2011 Dave Airlie <airlied@redhat.com> glx/dri: add initial dri interface for GLX_EXT_framebuffer_sRGB.

This realigns the name of the glx bit to align with the core mesa names.
ri_common.c
lxconfig.c
lxconfig.h
lxext.c
b09b3e5c8f4f5d71b986bf359b56e7b60424538d 06-Mar-2011 Dave Airlie <airlied@redhat.com> glx: add initial GLX_EXT_framebuffer_sRGB support.

this doesn't bind to drivers yet, just enough to in theory make indirect
work against other servers.

I'm really not sure what the rules for adding extensions to the known_gl_extensions list as it looks to be missing a few. are these GL extensions that have GLX
protocol??

Signed-off-by: Dave Airlie <airlied@redhat.com>
lxconfig.c
lxconfig.h
lxext.c
lxextensions.c
lxextensions.h
74cde6505c233f388e902d1daa0e9f186dd012a9 15-Feb-2011 Eric Anholt <eric@anholt.net> dri2: Don't call the dri2 flush hook for swapbuffers unless we have a context.

The driver only has one reasonable place to look for its context to
flush anything, which is the current context. Don't bother it with
having to check.
ri2_glx.c
4d01bea808592aec74be2d2a4bbb6488b9299cda 15-Feb-2011 Eric Anholt <eric@anholt.net> glx: Don't do the implicit glFlush in SwapBuffers if it's the wrong drawable.

The GLX Spec says you only implicitly glFlush if the drawable being
swapped is the current context's drawable.
lxcmds.c
49d7e48b33264d94e30af6129c281b6acafa9427 04-Feb-2011 Eric Anholt <eric@anholt.net> mesa: Add new MESA_multithread_makecurrent extension.

This extension allows a client to bind one context in multiple threads
simultaneously. It is then up to the client to manage synchronization of
access to the GL, just as normal multithreaded GL from multiple contexts
requires synchronization management to shared objects.
lxclient.h
lxcurrent.c
lxextensions.c
lxextensions.h
b5dc40710d0e5edffb9f673dfbf26df4d0043eef 19-Aug-2010 nobled <nobled@dreamwidth.org> glx: Put null check before use

'dpy' was being checked for null *after* it was already used once.

Also add a null check for psc, and drop gc's redundant initialization.
lxcmds.c
7d9e0ea7393c14cbf2d58364726951b14e0d4fc7 31-Jan-2011 Henri Verbeet <hverbeet@gmail.com> glx: Properly check for a valid fd in dri2CreateScreen().

Signed-off-by: Brian Paul <brianp@vmware.com>
ri2_glx.c
0b47d59e5be0fb5eb0277f02646914f4a55d35d5 30-Jan-2011 Henri Verbeet <hverbeet@gmail.com> glx: Fix leaks in DRISW screen creation error paths.

Signed-off-by: Brian Paul <brianp@vmware.com>
risw_glx.c
0e8e8ba29a7cbe2fe45939cb972f437ccd21bcd5 30-Jan-2011 Henri Verbeet <hverbeet@gmail.com> glx: Fix leaks in DRI screen creation error paths.

Signed-off-by: Brian Paul <brianp@vmware.com>
ri_glx.c
bfc889517ad0d490cce1817eecac146d66bcd923 30-Jan-2011 Henri Verbeet <hverbeet@gmail.com> glx: Fix leaks in DRI2 screen creation error paths.

Signed-off-by: Brian Paul <brianp@vmware.com>
ri2_glx.c
lxclient.h
lxext.c
cbe9fc12a64c3ae89fd1b20e9e165aa4b76293a5 26-Jan-2011 Julien Cristau <jcristau@debian.org> glx: fix length of GLXGetFBConfigsSGIX

The extra length is the size of the request *minus* the size of the
VendorPrivate header, not the addition.

NOTE: This is a candidate for the 7.9 and 7.10 branches

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
lxext.c
e27913f805acbb7d00f83ba625a8605576738a13 26-Jan-2011 Julien Cristau <jcristau@debian.org> glx: fix GLXChangeDrawableAttributesSGIX request

xGLXChangeDrawableAttributesSGIXReq follows the GLXVendorPrivate header
with a drawable, number of attributes, and list of (type, value)
attribute pairs. Don't forget to put the number of attributes in there.
I don't think this can ever have worked.

NOTE: This is a candidate for the 7.9 and 7.10 branches

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
lx_pbuffer.c
4324d6fdfbba17e66b476cf008713d26cac83ad1 23-Jan-2011 Julien Cristau <jcristau@debian.org> glx: fix request lengths

We were sending too long requests for GLXChangeDrawableAttributes,
GLXGetDrawableAttributes, GLXDestroyPixmap and GLXDestroyWindow.

NOTE: This is a candidate for the 7.9 and 7.10 branches

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
lx_pbuffer.c
e8c7d7598fb48237508f566204c71ba8f74d544f 26-Dec-2010 Chia-I Wu <olv@lunarg.com> glapi: Fix OpenGL and OpenGL ES interop.

When --enable-shared-glapi is specified, libGL will share libglapi with
OpenGL ES instead of defining its own copy of glapi. This makes sure an
app will get only one copy of glapi in its address space.

The new option is disabled by default. When enabled, libGL and libglapi
must be built from the same source tree and distributed together. This
requirement comes from the fact that the dispatch offsets used by these
libraries are re-assigned whenever GLAPI XMLs are changed.

For GLX, indirect rendering for has_different_protocol() functions is
tricky. A has_different_protocol() function is assigned only one
dispatch offset, yet each entry point needs a different protocol opcode.
It cannot be supported by the shared glapi. The fix to this is to make
glXGetProcAddress handle such functions specially before calling
_glapi_get_proc_address.

Note that these files are automatically generated/re-generated

src/glx/indirect.c
src/glx/indirect.h
src/mapi/glapi/glapi_mapi_tmp.h
akefile
lxcmds.c
ndirect.c
ndirect.h
1250e2330b913d3e90bd0b28e46bf565a827b5bf 15-Jan-2011 Brian Paul <brianp@vmware.com> glapi: regenerated files
ndirect.c
ndirect_size.c
ndirect_size.h
841ad6bfad27b2d8a196169b81235312a5e5f36a 14-Jan-2011 Eric Anholt <eric@anholt.net> glapi: Regenerate for GL_ARB_ES2_compatibility.
ndirect.c
ndirect_size.c
ndirect_size.h
e59fa4c46c8857f2e04447777dd197464c95b2cb 09-Jan-2011 Juan Zhao <juan.j.zhao@intel.com> dri2: release texture image.

Add release function for texture_from_pixmap extension.
Some platform need to release texture image for texture_from_pixmap
extension, add this interface for those platforms.
ri2_glx.c
48af60b46540a30c3754f0e59801a62dfb1a146d 17-Nov-2010 Brian Paul <brianp@vmware.com> mesa: upgrade to glext.h version 66

The type of the num/count parameter to glProgramParameters4[df]vNV()
changed so some API dispatch code needed updates too.
ndirect.c
ndirect.h
e4dbfa44ed018d124e1531077d506c8c914c1a51 25-Oct-2010 Chia-I Wu <olv@lunarg.com> glapi: Do not use glapioffsets.h.

glapioffsets.h exists for the same reason as glapidispatch.h does. It
is of no use to glapi. This commit also drops the use of glapioffsets.h
in glx as glx is considered an extension to glapi when it comes to
defining public GL entries.
ndirect.h
inglepix.c
b5022ad03584f119b27c143b53e7ed80e8c12ffb 25-Oct-2010 Chia-I Wu <olv@lunarg.com> glapi: Do not use glapidispatch.h.

glapidispatch.h exists so that core mesa (libmesa.a) can be built for
DRI drivers or for non-DRI drivers as a compile time decision (whether
IN_DRI_DRIVER is defined). It is of no use to glapi. This commit also
drops the use of glapidispatch.h in glx and libgl-xlib as they are
considered extensions to glapi when it comes to defining public GL
entries.
ndirect.c
ingle2.c
inglepix.c
bb45ab0a96bd17bc4c575ef5460d5c65acd8768b 20-Nov-2009 Ian Romanick <ian.d.romanick@intel.com> ARB_texture_rg: Add GLX protocol support
ompsize.c
lxextensions.c
lxextensions.h
7eed3dba58740a8ade94cfab315afa198d1beebe 30-Sep-2010 Nicolas Kaiser <nikai@nikai.net> glx: remove duplicated include

Remove duplicated include.

Signed-off-by: Brian Paul <brianp@vmware.com>
lxclient.h
4b70fe8421f5132c585ff1dfb8d90229be26e71f 29-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Only remove drawables from the hash when we actually delete them

https://bugs.freedesktop.org/show_bug.cgi?id=30457
ri_common.c
4b1f98241f9601c2b163bb41e45aa567f9cd61dd 18-Sep-2010 Ian Romanick <ian.d.romanick@intel.com> Remove GL_MESA_packed_depth_stencil

This extension was never enabled in any driver.
ompsize.c
86a1938aa56c02d7da137b09e579d24d7da50d9e 22-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Invalidate buffers after binding a drawable

If the server doesn't send invalidate events, we may miss a
resize before the rendering starts. Invalidate the buffers now
so the driver will recheck before rendering starts.

https://bugs.freedesktop.org/show_bug.cgi?id=29984
https://bugs.freedesktop.org/show_bug.cgi?id=30155
ri2_glx.c
a0e510320009766faa5ff8c0ed744e87f8095df7 22-Sep-2010 Luca Barbieri <luca@luca-barbieri.com> glx: decouple dri2.c and GLX, fixing Gallium EGL and d3d1x build

The Gallium EGL state tracker reuses dri2.c but not the GLX code.

Currently there is a bit of code in dri2.c that is incorrectly tied
to GLX: instead, make it call an helper that both GLX and Gallium EGL
implement, like dri2InvalidateBuffers.

This avoids a link error complaining that dri2GetGlxDrawableFromXDrawableId
is undefined.

Note that we might want to move the whole event translation elsewhere,
and probably stop using non-XCB DRI2 altogether, but this seems to be
the minimal fix.
ri2.c
ri2_glx.c
lxclient.h
441344ba7ed2a1d162ee33ac4bac4bf645188ceb 21-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Hold on to drawables if we're just switching to another context

https://bugs.freedesktop.org/show_bug.cgi?id=30234
ri2_glx.c
4cd751bcc48798f19b089f6cff58bfca2f18fe36 14-Sep-2010 Brian Paul <brianp@vmware.com> glx: add const qualifiers to __indirect_glMultiDrawArraysEXT()
ndirect_vertex_array.c
7993832c12bba578010005b344dcd3817be84a42 14-Sep-2010 Brian Paul <brianp@vmware.com> mesa: update to version 64 of GL/glext.h

A number of other files had to be updated as well because const
qualifiers were added to the glMultiDrawArrays() function.
Also, GL_FIXED is now defined in glext.h.
ndirect.c
ndirect.h
ndirect_init.c
4ebf07a426771b62123e5fcb5a8be0de24037af1 13-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Don't destroy DRI2 drawables for legacy glx drawables

For GLX 1.3 drawables, we can destroy the DRI2 drawable when the GLX
drawable is destroyed. However, for legacy drawables, there os no
good way of knowing when the application is done with it, so we just
let the DRI2 drawable linger on the server. The server will destroy
the DRI2 drawable when it destroys the X drawable or the client exits
anyway.

https://bugs.freedesktop.org/show_bug.cgi?id=30109
ri2_glx.c
94118fe2d4b1e5d0b9f39d9d2c44706db462e97e 09-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Optimize out no-op make current calls

This make a lot more sense now that we might have to recreate the
glx drawables for legacy code paths.
lxcurrent.c
80e48ddcf6d5bdc1fc063f28b7af478dae330233 09-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix another use-after-free problem
lx_pbuffer.c
d8ab9aac54c3b6e4d97016172527d4b7c85b27a2 09-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Destroy pixmap after destroying glx and dri drawables

Now that we suppress BadDrawable from DRI2DestroyDrawable, this doesn't
matter, but we would get that error before when destroying pbuffers.
lx_pbuffer.c
f24ec6367b1cf6c6822fa998df8a877288711427 09-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Ignore DRI2 event for drawables we've destroyed

Since we now actually destroy GLX drawables, we get into situations where
we get events for drawables that no longer exist. Just ignore the
event in that case.
ri2.c
659dab6be6bc82f8a0551c30f1133e0010f04ed8 08-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix use after free problem
lxcurrent.c
16887d042a917fa4773e4d853f50051b54e9948c 27-Aug-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop broken drawable garbage collection

Doesn't work for pixmaps, was looking up the GLX XID and was never thread
safe. Instead, just destroy the client side structures when the
drawable is no long current for a context.
ri2.c
ri2_glx.c
ri_common.c
ri_common.h
ri_glx.c
risw_glx.c
lxcmds.c
lxcurrent.c
ndirect_glx.c
3ea3f5e0a542cfd9f9a3433515fd27e0a5d1b1ac 07-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Set an all NULL vtable for dummyContext

This reverts 6a6e6d7b0a84e20f9754af02a575ae34081d310c and initializes
dummyContext with an all NULL vtable. The context vtable pointer is
supposed to always be non-NULL, but the vtable entries can be NULL.
lxclient.h
lxcmds.c
lxcurrent.c
57d3f71132a59315d47c42a110228a523f9ea23d 07-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix compilation with out xf86vidmode
lxcmds.c
f84d8fab99e10b5575c0f4f93b67846fc1ebad13 07-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Use GLX_BufferSwapComplete unconditionally, we require glproto 1.4.11
lxext.c
6a6e6d7b0a84e20f9754af02a575ae34081d310c 07-Sep-2010 Michel Dänzer <daenzer@vmware.com> Fix crashes when some GLX API entrypoints are called with no current context.

I was hitting this with gliv.

The GLX spec explicitly mentions that glXWaitX, glXWaitGL and glXUseXFont calls
are ignored when there's no current context. Not sure what if anything the
GLX_EXT_texture_from_pixmap spec says about this, but I think ignoring the
calls makes more sense than crashing there as well. :)
lxcmds.c
2b9dac397bd97909876bbda8532e2cbce9d8a77f 21-Apr-2010 Jon TURNEY <jon.turney@dronecode.org.uk> Make XF86VIDMODE extension optional

Code in glx/glxcmds.c which uses the XF86VIDMODE extension is already guarded. Also use
that guard to control inclusion of the xf86vmode.h header, and only enable that guard if the
XF86VIDMODE extension is found by pkgconfig.

This changes the behaviour on platforms which XF86VIDMODE exists, in that XF86VIDMODE used to
be mandatory, but is now optional.

Presumably other build systems are already arranging for -DXF86VIDMODE to be supplied to the
complier when glxcmds.c is compiled, so are not affected by this change

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
akefile
lxcmds.c
dd2658d0ac50665c96ba91e1428afb4651202af3 07-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop unused dri2proto.h include
lxext.c
60fce15447da7d4135ace6f1433896b0a02bcfee 07-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move dpy and scr fields out of direct rendering conditional

Nothing direct rendering specific about these fields. Moving them out
makes no-direct-rendering compilation work again.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
lxclient.h
ae9487c29984addc96a6d617292370fbc3f8ff9a 09-Aug-2010 Jon TURNEY <jon.turney@dronecode.org.uk> Some fixes for GLX_INDIRECT_RENDERING only build

This fixes some of the build issues with GLX_INDIRECT_RENDERING but !GLX_DIRECT_RENDERING due to recent changes.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
lx_pbuffer.c
lxcmds.c
lxext.c
23e2dec1a1cae26430a988e0c74b1f2b13eb0f6f 07-Sep-2010 Jon TURNEY <jon.turney@dronecode.org.uk> glx: Only clear the stored context tag when the context has been unbound

The calling order of ->bind and ->unbind changed and then ->unbind would
clear the currentContextTag of the old context before ->bind could reuse
it in the make current request, in the indirect case.

Instead, clear the old currentContextTag if and only if we send a request
to the server to actually unbind it or reassign it to another context.

https://bugs.freedesktop.org/show_bug.cgi?id=29977

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
ndirect_glx.c
ad58f0d9e021065d8e6d82e1aa7387dcd206f86e 24-Aug-2010 Brian Paul <brianp@vmware.com> make: Use C++ compiler to link stdc++ library.

glxinfo and glxgears run on swrast and softpipe without undefined symbol
errors.
akefile
2542d8e0c2ec3eb4de266c0b2ad93dba918cb89c 04-Aug-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move deref after NULL check
ri2_glx.c
e3a0e468bc67e4169406bb4c96b5ab483dc48a28 04-Aug-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix use after free in drisw error path
risw_glx.c
e71c44cedd6d22930bf873504d89faf68d93e1cc 04-Aug-2010 Kristian Høgsberg <krh@bitplanet.net> glx: We no longer need screen extensions for drisw

https://bugs.freedesktop.org/show_bug.cgi?id=29177
risw_glx.c
9da1c9da139327132dea57b18048a4eb386b6bad 04-Aug-2010 Kristian Høgsberg <krh@bitplanet.net> glx: dri2InvalidateBuffers() needs the X drawable XID not the GLX one

This never ceases to entertain.
ri2_glx.c
1f1928db001527c3dcf1d78d6a5d2ef8f519327b 02-Aug-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop _Xglobal_lock while we create and initialize glx display
lxext.c
e3e25dee2019b2c75acadeaf4358cd9a8d93db0b 30-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix copy/paste bug in glXWaitX and glXWaitGL

https://bugs.freedesktop.org/show_bug.cgi?id=29304
lxcmds.c
f485ee724d1f1bb57a5c8931f28e7a45ceb5b5d5 30-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Compare old ctx against dummyCtx, not NULL

https://bugs.freedesktop.org/show_bug.cgi?id=29302
lxclient.h
lxcurrent.c
ndirect_glx.c
cd601513f5ff4f488a6f6527bb033e39ee62ffda 29-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix linked list deletion in __glXCloseDisplay()

I hate single linked lists.
lxext.c
6849916170c0275c13510251a7b217c20f2b993e 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Split indirect and applegl implementations into different files
akefile
pplegl_glx.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
ndirect_glx.c
c491e585e43d48a2aeec96ccc4008da6c443fb42 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move bind and unbind to context vtable
ri2_glx.c
ri_common.c
ri_common.h
ri_glx.c
risw_glx.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
ndirect.c
inglepix.c
c356f5867f2c1fad7155df538b9affa8dbdcf869 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types.
pple/glxreply.c
lientattrib.c
ri2.c
ri2_glx.c
ri_glx.c
risw_glx.c
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
lxextensions.c
lxextensions.h
ndirect.c
ndirect.h
ndirect_init.c
ndirect_init.h
ndirect_vertex_array.c
ndirect_vertex_program.c
ackrender.h
acksingle.h
ixel.c
ixelstore.c
enderpix.c
ingle2.c
inglepix.c
ertarr.c
font.c
66fc35cde9ed68a09920ad6a28de794dd1d3aa8c 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Rename __GLXscreenConfigs to struct glx_screen

Because double underscores in private type names is painful.
ri2_glx.c
ri_glx.c
risw_glx.c
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
lxextensions.c
lxextensions.h
38c51a76533a90cf2c9381c99247cfac45fe70eb 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Use _X_EXPORT instead of our own PUBLIC macro

We're an X client library, so we can use Xfuncproto.h.
F86dri.c
pple/glx_empty.c
ri_glx.c
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
65d98e25770487456eb3d7eb8ec3ec8272f170b1 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Rename glcontextmodes.[ch] to glxconfig.[ch]
akefile
ri_common.c
lcontextmodes.c
lcontextmodes.h
lxclient.h
lxcmds.c
lxconfig.c
lxconfig.h
lxext.c
6ddf66e9230ee862ac341c4767cf6b3b2dd2552b 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Rename __GLcontextModes to struct glx_config

With this rename, we use 'config' consitently to refer to GLX configurations
instead of the modes/configs/visual mess before.
pple/apple_glx_drawable.h
pple/apple_glx_pbuffer.c
pple/apple_glx_pixmap.c
pple/apple_visual.c
pple/apple_visual.h
ri2_glx.c
ri_common.c
ri_common.h
ri_glx.c
risw_glx.c
lcontextmodes.c
lcontextmodes.h
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
4f9f066485d93cd6bb0e21fec0775ceed96d14de 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Delete unused glcontextmodes.c functions
lcontextmodes.c
lcontextmodes.h
lxext.c
38765fe4c2ba96e642510eaed0c2f8c44f0c2b1d 28-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Stop using glcore.h and glxint.h in glx

We'd like to get rid of these header files.
lcontextmodes.c
lcontextmodes.h
lxclient.h
db011c8141d7b01b67f2ded4e634657b92ed707a 28-Jul-2010 Carl Worth <cworth@cworth.org> Avoid a compiler warning about a potentially unused variable.

There is no assignment to the "ret" variable if X_DRI2SwapBuffers is
not defined. In this case, the earlier explicit "return 0" is likely
to be used, but the compiler can't be sure of that, (nor can I for
that matter).

We cover this case by explicitly initializing "ret" to 0.
ri2_glx.c
14a3d61ea37c0b0a2bf211a12118e592c3e0677b 28-Jul-2010 Carl Worth <cworth@cworth.org> Avoid compiler warning for unused glx_dpy variable.

My earlier attempt to eliminate this warning (c0ca2bfb2ad8c) was
invalid as it removed the variable declaration. Jerome correctly
reverted that (600c85efdb0ff) since the variable is used when
X_DRI2SwapBuffers is defined.

Here, instead of removing the declaration, we move it to inside the
correct #ifdef.
ri2.c
5403ca79b225605c79f49866a6497c97da53be3b 26-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Remove function prototypes no longer necessary
lxext.c
e4aa9440d9a71a04e9122588191d0357cc5e0c18 26-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop debug fprintf that snug in with the previous commit
lxcmds.c
2235b1c72d79ec00a03c99219154e3f9103e692b 26-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Enable copy subbuffer patch when GLX_DIRECT_RENDERING is #defined

Depending on __DRI_COPY_SUB_BUFFER doesn't work when we no longer include
dri_interface.h.

https://bugs.freedesktop.org/show_bug.cgi?id=29264
lxcmds.c
bc34aa6128b9d509a25232d70dc826f1921fd221 26-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop duplicate psc field in dri context struct

Same problem as fixed for drisw in 4d58b5b482d06ab8d4c4b2db33d0b48b7c82d064.
ri_glx.c
4d58b5b482d06ab8d4c4b2db33d0b48b7c82d064 25-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop duplicate psc field in drisw context struct

Causing a crash in drisw MakeCurrent.
risw_glx.c
af6a2aede696ad3c45798d6c28aa04e8f5035e6e 24-Jul-2010 Eric Anholt <eric@anholt.net> glx: Fix another case of confusing driContext and dri2_context *
ri2_glx.c
566373967a6a63b6a9c85a2392bc827ac7ef679f 23-Jul-2010 Eric Anholt <eric@anholt.net> glx: Correctly look up the dri2 context pointer for SetTexBuffer.

gc->driContext points at the second member of the dri2 context. The
dri2 context is just a subclass of the GLX context.

Fixes piglit tfp testcase.
ri2_glx.c
d77bb8e059ecfed9b714301fc31b093c6026c7bc 24-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Don't destroy context with XID 0

We use XID 0 to indicate the context has already been destroyed, but it's
currently bound.
ri2_glx.c
ri_glx.c
risw_glx.c
lxcmds.c
6739d52fdced53a566188215d204ffef1e85a5e6 24-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix use after free case when destroying screens
lxext.c
6393a33944ec9983426cecd5f6c9f05ac089e1ae 24-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: zero out drawable structs after allocation
ri2_glx.c
ri_glx.c
risw_glx.c
6ec39db726beead21d97bf64ddbe1f0b2d2d6ca1 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Refactor and simplify context creation

This lets us better separate context creation between the different
backends.
ri2_glx.c
ri_glx.c
risw_glx.c
lxclient.h
lxcmds.c
lxext.c
b5dedd7c3b4425127d8b85b7e8df0ecda4009fd7 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix indirect screen initialization

https://bugs.freedesktop.org/show_bug.cgi?id=29225
lxext.c
c796bb0cc3fde409545bff320540ddf5c029e513 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move context destroy to context vtable
ri2_glx.c
ri_glx.c
risw_glx.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
9a12a3925a82475fd8f01ba53987581d30dd1128 23-Jul-2010 Eric Anholt <eric@anholt.net> glx: Don't try to swap a front buffer if we don't have one.

Fixes glean glsl1 since 7b7845a076c933e096ac511b4184141ba194449a
ri2_glx.c
eeaab2047cfce8a7445fd9f835e737682eb503ac 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop screen argument to GetGLXDRIDrawable

We'll just get it from the returned drawable when we need it.
ri2_glx.c
lx_pbuffer.c
lxclient.h
lxcmds.c
7b7845a076c933e096ac511b4184141ba194449a 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move WaitGL, WaitX, UseXFont to context vtable functions
ri2_glx.c
ri_glx.c
risw_glx.c
lxclient.h
lxcmds.c
font.c
31819830b66a49f1b62e09090cc65aefc657aeb8 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Allocate the __GLXcontext in the DRI drivers
ri2_glx.c
ri_glx.c
risw_glx.c
lxclient.h
lxcmds.c
lxcurrent.c
ab434f6b7641a64d30725a9ac24929240362d466 23-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Use _Xglobal_lock for protecting extension display list

Avoids double locking glXLock in the X wire to event handlers.
ri2.c
lxclient.h
lxext.c
7a66e549583a3168f05acc7df1e872d218fd670d 21-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move last few dri_interface.h types out of glxclient.h and drop include
ri_common.c
ri_common.h
lxclient.h
lxcmds.c
f679640868ae6ef700d8672702c31ba2515220a7 21-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move __driContext field out of __GLXcontextRec
ri2_glx.c
lxclient.h
600c85efdb0ff498c1f62e74efbda9f7096a74d3 21-Jul-2010 Jerome Glisse <jglisse@redhat.com> Revert "dri2: Remove an unused variable."

glx_info is used if X_DRI2SwapBuffers is defined
This reverts commit c0ca2bfb2ad8cf7fb9d756b5ae52cb77236ff605.
ri2.c
c0ca2bfb2ad8cf7fb9d756b5ae52cb77236ff605 21-Jul-2010 Carl Worth <cworth@cworth.org> dri2: Remove an unused variable.

To quiet a compiler warning.
ri2.c
c1cbdbfde0a1f016f9d3f23a39cb7bc0b9825e12 20-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: #ifdef DRI specific prototype

https://bugs.freedesktop.org/show_bug.cgi?id=29162
lxclient.h
bd3d2724f51a44b7fc814a5bc43d8ddafa8e3cba 20-Jul-2010 Michel Dänzer <daenzer@vmware.com> glx/dri2: Fix dri2CopySubBuffer() again.

Only refresh the fake front buffer if there is one, and only destroy the region
once.

Fixes X11 protocol errors reported by 'mcgreg' on IRC.
ri2_glx.c
a7292f2920a28a190ca39ce530454a852ec36d59 20-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move DRI CopySubBuffer extension to DRI1 code

We do this in the X server for DRI2.
ri2_glx.c
ri_common.c
ri_common.h
ri_glx.c
risw_glx.c
lxclient.h
bab13969d8bf3ff9259524c3f4ab96d81485ccef 20-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move driver_configs to DRI screen privates
ri2_glx.c
ri_common.c
ri_common.h
ri_glx.c
risw_glx.c
lxclient.h
lxext.c
e3e8196c025bd344a59b4671e473c395a6ea426b 20-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move drawHash to display private

The XIDs are display wide so the natural location of the hash is here.
This way we don't have to lookup in each of the screen hashes.
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
037755122e9011c768e5caa4d4cb83aba783d3e9 20-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Don't use __glXInitialize() when we might be holding __glXLock()
ri2_glx.c
lxclient.h
lxext.c
8d0228912bfef173139296a96a097f1a6348c963 20-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Workaround mismatch in signedness between extensions and protocol

The DRI2 protocol for ust, msc and sbc are unsigned but the extensions
talk about int64_t. Do a little dance to make the compiler shut up.
ri2_glx.c
271c3c3a90ccfd01da9d7ac7fa451518f4e6a27c 20-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move __DRIdrawable pointers to DRI drawable privates
ri2_glx.c
ri_glx.c
risw_glx.c
lxclient.h
lxcmds.c
22266c391fbe17603b15a83d4ccf5fa9455ccf8d 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Remove support for MESA_swap_frame_usage

The extension never worked, the implementation returns GLX_BAD_CONTEXT
when enabling the frame tracking.
pple/glx_empty.c
ri_common.c
lxclient.h
lxcmds.c
lxextensions.c
70887d517290060a80c7f5dd8c0ea0c834c4d91e 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move __driScreen into the dri screen privates
ri2_glx.c
ri_glx.c
risw_glx.c
lxclient.h
089fc37c6fa158824279e08e3b378ced94d6f803 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move DRI1 specific extensions and code to DRI1 screen private
ri2_glx.c
ri_common.c
ri_common.h
ri_glx.c
risw_glx.c
lxclient.h
lxcmds.c
9e546ecfd446abf1236cdb0b9469157de5d084ce 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move DRI2 extensions to DRI2 screen private
ri2_glx.c
ri_common.c
ri_common.h
lxclient.h
cb2a66fd0c095fe03be5aaf88c8d48f5867425d3 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Drop support for GLX_MESA_allocate_memory

Only r200 implemented it.
pple/gen_exports.tcl
pple/glx_empty.c
ri_common.c
lxclient.h
lxcmds.c
lxextensions.c
lxextensions.h
f972115d33e391499e049b83a1559959f2ca9f72 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Add screen privates for dri drivers and moved some fields there

GLXscreenConfigs is badly named and a dumping ground for a lot of stuff.
This patch creates private screen structs for the dri drivers and moves
some of their fields over there.
ri2_glx.c
ri_common.c
ri_common.h
ri_glx.c
risw_glx.c
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
a296d96de45d38a6ed0b3c817334d443facc169b 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Rename various DRI structs away from obnoxious __GLXfooRec convention

Enough is enough.
ri2_glx.c
ri_glx.c
risw_glx.c
308e13ecd12a2fd894e5b509d5756bffc2035ec6 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Factor out common code from dri2WaitGL() and dri2WaitX()
ri2_glx.c
b006d465ea0ea680326f702ad248544c576301a2 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Dont use dri2WaitX() to update fake front

This saves a superfluous flush and a create/destryo region.
ri2_glx.c
3750ebd540510324ef5ada769537ae05309adadb 19-Jul-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix drawable lookup in DRI2 event handler

DRI2 events are sent to the X drawable ID used to create the DRI2 drawable,
not the GLX drawable ID. So when an event comes in, we need to look up
the __GLXDRIdrawable by its X drawable ID, which needs a new hash table.
ri2.c
ri2_glx.c
lxclient.h
5c9e54f2ff2eb651b5bf594ac95d39ba5747c500 15-Jul-2010 Vinson Lee <vlee@vmware.com> glx: Move dereference and initialization to after NULL check.
lx_pbuffer.c
f8d81c31cee30821da3aab331a57f484f6a07a5d 14-Jul-2010 Nick Bowler <nbowler@draconx.ca> dri2: Track event mask in client code.

When direct rendering is being used, DRI2 BufferSwapComplete events are
sent unconditionally to clients, even if they haven't been requested.
This causes error messages to be printed by every freeglut application
of the form

freeglut (./gears): Unknown X event type: 104

and might confuse other clients.

This is a fixed up version of the patch by Jesse Barnes, which drops
BufferSwapComplete events if they are not requested by clients.

Fixes fdo bug 27962.

Signed-off-by: Nick Bowler <nbowler@draconx.ca>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
ri2.c
lx_pbuffer.c
lxclient.h
d2fe97a209134ff5267e8aa065865c3398bfb280 01-Jul-2010 Fernando Carrijo <fcarrijo@yahoo.com.br> mesa: Purge macros NEED_EVENTS and NEED_REPLIES

Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
Signed-off-by: Brian Paul <brianp@vmware.com>
F86dri.c
pple/appledri.c
ri2.c
lxclient.h
2c30a8d8f9aa405d3d30e75371b2d6643ecd8d32 03-Jun-2010 Brian Paul <brianp@vmware.com> glx: fix indentation and remove extraneous break
lxext.c
fc72452b976e368caf133e108ecaddfea8b2b147 03-Jun-2010 Brian Paul <brianp@vmware.com> glx: reformat and silence unused expression warning
lxext.c
ab780bccb737e0dc25a55b5e54faad9c4a790ac0 21-May-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Invalidate drawable in glXBindTexImageEXT() if we don't get events

When we don't get invalidate events, we need to invalidate a drawable
before using it for tfp to make sure we have uptodate buffers.
ri2_glx.c
643b2af0203764cb9f0a5b9e082937ab3f243523 21-May-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Split tfp functions out to context vtable

This introduces a new per-context vtable, which lets us clean up all the
#ifdef's a bit and move the DRI2 specific implementation into dri2_glx.c.
ri2_glx.c
ri_glx.c
lxclient.h
lxcmds.c
4cd259ca59128ff2712c42ff2d2340b01a3b74a8 18-May-2010 Kristian Høgsberg <krh@bitplanet.net> dri2_glx: Put the invalidate b/c code back in

The backwards compatibility code calls the DRI driver invalidate hook
on swap buffer and flush front buffer. This lets the DRI driver rely
on invalidate callbacks and drop the glViewport() hack, even if the
server doesn't send invalidate events. This is essentially a revert
of 2d00d16da7f5d2255cb37b48edaf4cbb9ca7e930, except that we now also
pass the __DRI_USE_INVALIDATE extension even when the server doesn't
have DRI2 invalidate events.
ri2_glx.c
c8f407bcec7619eb2030ea9fe52501ad33075699 18-May-2010 Kristian Høgsberg <krh@bitplanet.net> dri2_glx: Terminate loader extension list outside #ifdef
ri2_glx.c
4258e3a2e1c3278694ed10f7fc544d2154d91a96 11-May-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Provide the __DRI_USE_INVALIDATE extension to the driver when we can

When we have DRI2 protocol at least 2.3, we get an event from the
server when the back buffers get invalidated. When that's the case
let the driver know that it can rely on invalidate instead of the
glViewport polling.
ri2_glx.c
2d00d16da7f5d2255cb37b48edaf4cbb9ca7e930 10-May-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Only call DRI2 invalidate when necessary

We only need this when the server may have swapped the buffers or
when we receive an invalidate event from the server. The default
behaviour is still that the DRI driver will invalidate its own buffers
when glViewport is called.

https://bugs.freedesktop.org/show_bug.cgi?id=27277
ri2_glx.c
db178af09d734f2f973d50de9ff90fe1cbb5e9c9 08-May-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Get GLX_SCREEN first in __glXQueryContextInfo()

And lookup the GLX screen for the context. Otherwise we'll end up
jumping through a NULL-pointer once we try to look up the visual
or config for the shared context.

https://bugs.freedesktop.org/show_bug.cgi?id=14245
lxcmds.c
50c940707ec191c6f4d90fcb763370477c1bacde 07-May-2010 Vinson Lee <vlee@vmware.com> apple: Move glapi to mapi.

This was missed in commit 296adbd545b8efd38c9ed508166b2de2764a444b.
Fixes darwin build.
pple/Makefile
296adbd545b8efd38c9ed508166b2de2764a444b 25-Apr-2010 Chia-I Wu <olv@lunarg.com> glapi: Move to src/mapi/.

Move glapi to src/mapi/{glapi,es1api,es2api}.
akefile
a18702f067d060ca9d56e9fcd5d2cd1a5093177f 01-May-2010 Jeremy Huddleston <jeremyhu@apple.com> darwin: Fix build

This is a regression from e42d84eaba228d4d96a46d116c6ca24581e29439

https://bugs.freedesktop.org/show_bug.cgi?id=27929

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit 4d63be67f320839d115987211d0d9b4297f6d17d)
lxcmds.c
26a9b7e4c737c89b47844303bb7413ceab0280a5 02-May-2010 Dave Airlie <airlied@redhat.com> glx: fix regression with GLX_USE_GL

update for fbconfig_style_tags
lxext.c
e42d84eaba228d4d96a46d116c6ca24581e29439 28-Apr-2010 Jakob Bornecrantz <jakob@vmware.com> glx: Fix build
lxcmds.c
1fa7789e828d1005e2473fc7cd364bd45eb30843 28-Apr-2010 Brian Paul <brianp@vmware.com> Merge branch '7.8'

Conflicts:

src/glx/dri2_glx.c
src/glx/glx_pbuffer.c
d20fce057ee94fc3441c01a9e54cb5e19f7ddfd3 27-Apr-2010 Pierre Willenbrock <pierre@pirsoft.de> Initialize have_back.

There is a user somewhere that tests it before its initial set.

Signed-off-by: Eric Anholt <eric@anholt.net>
ri2_glx.c
cc806f70b2749dd9013491f43f442f5b1fe7cc7f 27-Apr-2010 Pierre Willenbrok <pierre@pirsoft.de> glx: Initialize have_back.

Signed-off-by: Brian Paul <brianp@vmware.com>
ri2_glx.c
a1cb3babbef2af222b839a058694acc82a7074f1 13-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> Buildfixes to work around issues in OpenGL.framework

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/apple_glx.h
pple/apple_glx_context.h
pple/apple_glx_drawable.h
pple/apple_glx_pbuffer.c
pple/apple_visual.c
pple/apple_xgl_api_read.c
pple/apple_xgl_api_read.h
pple/apple_xgl_api_stereo.c
pple/apple_xgl_api_stereo.h
pple/apple_xgl_api_viewport.c
pple/apple_xgl_api_viewport.h
f64773010d0dd204177d08716565db69f6263e0f 13-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> Update OpenGL specs

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/gen_funcs.tcl
pple/specs/enum.spec
pple/specs/enumext.spec
pple/specs/gl.spec
pple/specs/gl.tm
pple/specs/glx.spec
pple/specs/glxenum.spec
pple/specs/glxenumext.spec
pple/specs/glxext.spec
pple/specs/update.sh
f5aa5377a52c50c94b6a6d6d48c0057dbe874692 02-Jan-2010 Jeremy Huddleston <jeremyhu@freedesktop.org> apple: Use mesa gl.h rather than generating one.

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
pple/GL_aliases
pple/Makefile
pple/apple_glx_pbuffer.c
pple/apple_xgl_api_additional.c
pple/gen_funcs.tcl
pple/gen_gl_h.sh
pple/include/GL/gl.h.template
de96d063b1eba9137d96074c9434aafe858d3271 02-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> apple: Integrate our libGL into the existing build system better

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
akefile
pple/Makefile
163901bc7f89dc3a5c65d66b960f18dd561631c1 02-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> darwin: Use clientattrib

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/Makefile
lientattrib.c
lxcmds.c
80b280db883edc9550484dba03bd5c124b6a9bf9 02-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> apple: Change ifdefs for DRI to be DRI && !APPLE

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
F86dri.c
pple/Makefile
pple/apple_xgl_api_read.c
pple/apple_xgl_api_stereo.c
pple/apple_xgl_api_viewport.c
ri2_glx.c
ri_common.c
ri_glx.c
risw_glx.c
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
ndirect.c
inglepix.c
font.c
77dc40b2897dfaf1b7adedee4bd0e88f13bc76d3 24-Dec-2009 Jeremy Huddleston <jeremyhu@freedesktop.org> apple: Remove duplicate headers that already exist in mesa.

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
pple/include/GL/gl.hMESA
pple/include/GL/glext.h
pple/include/GL/glext.hMESA
pple/include/GL/glx.h
pple/include/GL/glxext.h
pple/include/GL/internal/glcore.h
pple/include/simple_list.h
ad503c41557606d15b0420c824369456f6d20a8f 01-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> apple: Initial import of libGL for OSX from AppleSGLX svn repository.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/.gitignore
pple/GL_aliases
pple/GL_extensions
pple/GL_noop
pple/GL_promoted
pple/Makefile
pple/OVERALL_DESIGN
pple/README_UPDATING
pple/RELEASE_NOTES
pple/TODO
pple/apple_cgl.c
pple/apple_cgl.h
pple/apple_exports.list
pple/apple_glx.c
pple/apple_glx.h
pple/apple_glx_context.c
pple/apple_glx_context.h
pple/apple_glx_drawable.c
pple/apple_glx_drawable.h
pple/apple_glx_pbuffer.c
pple/apple_glx_pixmap.c
pple/apple_glx_surface.c
pple/apple_visual.c
pple/apple_visual.h
pple/apple_xgl_api_read.c
pple/apple_xgl_api_read.h
pple/apple_xgl_api_stereo.c
pple/apple_xgl_api_stereo.h
pple/apple_xgl_api_viewport.c
pple/apple_xgl_api_viewport.h
pple/appledri.c
pple/appledri.h
pple/appledristr.h
pple/gen_api_header.tcl
pple/gen_api_library.tcl
pple/gen_code.tcl
pple/gen_defs.tcl
pple/gen_exports.tcl
pple/gen_funcs.tcl
pple/gen_gl_h.sh
pple/gen_types.tcl
pple/glx_empty.c
pple/glx_error.c
pple/glx_error.h
pple/glxreply.c
pple/include/GL/gl.h.template
pple/include/GL/gl.hMESA
pple/include/GL/glext.h
pple/include/GL/glext.hMESA
pple/include/GL/glx.h
pple/include/GL/glxext.h
pple/include/GL/internal/glcore.h
pple/include/simple_list.h
pple/specs/enum.spec
pple/specs/enumext.spec
pple/specs/gl.spec
pple/specs/gl.tm
pple/specs/glx.spec
pple/specs/glxenum.spec
pple/specs/glxenumext.spec
pple/specs/glxext.spec
lcontextmodes.c
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
lxextensions.c
ndirect_size.c
font.c
e4c54d404959aa1bce26caa313c0a47e65ff211a 23-Apr-2010 Ian Romanick <ian.d.romanick@intel.com> Merge branch '7.8'
ad7d36e91933a49ce3f6ed2c14ae585a8a84fdf5 22-Apr-2010 Aaron Plattner <aplattner@nvidia.com> Fix __glXInitializeVisualConfigFromTags's handling of unrecognized fbconfig tags.

__glXInitializeVisualConfigFromTags doesn't skip the payload of
unrecognized tags. Instead, it treats the value as if it were the
next tag, which can happen if the server's GLX extension is not
Mesa's. For example, this falls down when NVIDIA sends a
GLX_FLOAT_COMPONENTS_NV = 0 pair, causing
__glXInitializeVisualConfigFromTags to bail out early.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
lxext.c
ff20543c815a14fddad1efaaef1610454a1924d4 23-Apr-2010 Michel Dänzer <daenzer@vmware.com> Merge branch '7.8'
c37e275e778e8c944e3dfad159b1eb94c601af60 23-Apr-2010 Michel Dänzer <daenzer@vmware.com> glx/dri2: Fix build with dri2proto which doesn't define X_DRI2SwapInterval.
ri2_glx.c
45e2b51c853471b79004a954ce3092a253b20b77 22-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2/GLX: check for vblank_mode in DRI2 GLX code

Re-add support for the vblank_mode environment and configuration
variable. Useful for benchmarking and app control.
ri2_glx.c
234286c0f8b7d30ed49223c648d4c73c1a517ab3 22-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: add config query extension

Add a new DRI2 configuration query extension. Allows for DRI2 client
code to query for common DRI2 configuration options.
ri_common.c
lxclient.h
35489ef285f1fde234b2b9bbb91fdc41fddefc02 19-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> Merge branch '7.8'
0a18cdb0ed2f4b747688f653d9947d174fae77ff 19-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: check for swapAvailable before using swap interval protocol

This should have been part of the last change...
ri2_glx.c
64644ec3b21884d4a974fa29087fa98c4ed9e112 19-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> Merge branch '7.8'
385e2896ebf54ac0b016132fe513f21a5b67ba4f 19-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: synchronize swap interval with server at startup time

In the direct rendered case, we need to tell the server our initial swap
interval. If we don't, the local and server values will be out of sync,
since the server and client defaults may be different (as they were
before this patch).
ri2_glx.c
d9793fc3ac0986f8665e269ecf993705132d0360 14-Apr-2010 Michael Schmidt <mschmidt@redhat.com> Initialize DRI2 swap interval to 0

https://bugs.freedesktop.org/show_bug.cgi?id=27628
ri2_glx.c
0863c7e499a553c2d8e7bcbd09c5de88e396fcd0 14-Apr-2010 Michael Schmidt <mschmidt@redhat.com> Initialize DRI2 swap interval to 0

https://bugs.freedesktop.org/show_bug.cgi?id=27628
ri2_glx.c
1318848f782cce716d6376ca13aebf68b728e24c 13-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> Merge branch '7.8'
157bdd1446dd21cc87a89abdc890b2f6dc83af76 13-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: report swap events correctly in direct rendered case

In the direct rendered case, we need to convert DRI2 swap complete
events to GLX events for the client to consume. This path had what
looks like a stray "& 0x75" from some earlier debugging that prevented
clients from seeing the right event code.
ri2.c
5a43dbac687c63ea543035319e44ca7a0acf9ff9 09-Apr-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Support direct rendering pbuffers

We've supported indirect rendering pbuffers for a while, but not direct
rendering pbuffers. The way we do this is by creating a hidden pixmap
and wrap that in a GLX pbuffer. This only works when we have DRI2 on
the server, but if the server doesn't have DRI2, it won't expose configs
with pbuffer bits enabled.
lx_pbuffer.c
394c25133e756e9d9580b65e0f1af7d67155e0f7 09-Apr-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix config chooser logic for 'mask' matching

When matching attributes using the 'mask' matching criteria, the spec
says that

"Only GLXFBConfigs for which the set bits of attribute include all
the bits that are set in the requested value are
considered. (Additional bits might be set in the attribute)."

The current test returns true if the two bit masks have bits in
common, specifically it matches even if the requested value has bits
set that are not set in the fbconfig attribute. For example, an
application asking for

GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_PBUFFER_BIT,

as glxpbdemo does, will match fbconfigs that don't support pbuffer
rendering, as long as they support pixmap rendering.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
lxcmds.c
edb5253dfa0751e451dca7c9a494be4609390545 09-Apr-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix config chooser logic for 'mask' matching

When matching attributes using the 'mask' matching criteria, the spec
says that

"Only GLXFBConfigs for which the set bits of attribute include all
the bits that are set in the requested value are
considered. (Additional bits might be set in the attribute)."

The current test returns true if the two bit masks have bits in
common, specifically it matches even if the requested value has bits
set that are not set in the fbconfig attribute. For example, an
application asking for

GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_PBUFFER_BIT,

as glxpbdemo does, will match fbconfigs that don't support pbuffer
rendering, as long as they support pixmap rendering.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
lxcmds.c
ee30e24f5f9cc2ec6c5a3edbe498e5e0334f788b 05-Apr-2010 Ian Romanick <ian.d.romanick@intel.com> Merge branch '7.8'
42ea25cb4ecae09b5cc011a95d42ba7f0645dde3 05-Apr-2010 Ian Romanick <ian.d.romanick@intel.com> Update to final names from GLX_INTEL_swap_event spec

Fixes bug #27454.
ri2.c
lxext.c
4fb2daf42c8171579cdc18605c5ceeb1963f8b31 05-Apr-2010 Ian Romanick <ian.d.romanick@intel.com> Merge branch '7.8'
67776f66c93abb44ee4d1432ba59458ce4fb28f7 02-Apr-2010 Vinson Lee <vlee@vmware.com> glx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.

Add ifdef guards around variables of types defined only for
GLX_DIRECT_RENDERING.
lxcmds.c
2b4d8616f581a36ed98a491ac1ec14be69d37511 02-Apr-2010 Jesse Barnes <jbarnes@virtuousgeek.org> GLX/DRI2: pass GLX drawable ID to dri2InvalidateBuffers

The IDs will be the same in the case where an X window is used directly
as a GLX drawable, but will fail if a new GLX drawable is created
explicitly, as with glxgears_fbconfig.

Fixes fdo bug #27190.
ri2_glx.c
115203281cf791221f586f03c14cfe4e0a44dd7a 02-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> Revert accidental commits from the xquartz tree

This reverts commit 9aadc793f3db64cefa0b08f18abad424a659dacc.
This reverts commit 69ea4e7718efb60b6b0d795a355cebd6712ceac1.
This reverts commit dbe8b013936d977ec63d6607bfd2fc6772d29787.
This reverts commit 23215ef4d60a86d9f3b3fdc08e3fdadc59e98890.
This reverts commit 9495e3703062d1ddaf3161f4efc23f0b51284d9b.
This reverts commit 0594cf70883b64692ba617d85f4f9b4e636e5c2b.
This reverts commit 86a7978d37393ee34f876569ac06ffdb8d7289ae.
This reverts commit 437902ce978cde9a0e1aa260f12dc232a8501c42.
akefile
F86dri.c
pple/.gitignore
pple/GL_aliases
pple/GL_extensions
pple/GL_noop
pple/GL_promoted
pple/Makefile
pple/OVERALL_DESIGN
pple/README_UPDATING
pple/RELEASE_NOTES
pple/TODO
pple/apple_cgl.c
pple/apple_cgl.h
pple/apple_exports.list
pple/apple_glx.c
pple/apple_glx.h
pple/apple_glx_context.c
pple/apple_glx_context.h
pple/apple_glx_drawable.c
pple/apple_glx_drawable.h
pple/apple_glx_pbuffer.c
pple/apple_glx_pixmap.c
pple/apple_glx_surface.c
pple/apple_visual.c
pple/apple_visual.h
pple/apple_xgl_api_additional.c
pple/apple_xgl_api_read.c
pple/apple_xgl_api_read.h
pple/apple_xgl_api_stereo.c
pple/apple_xgl_api_stereo.h
pple/apple_xgl_api_viewport.c
pple/apple_xgl_api_viewport.h
pple/appledri.c
pple/appledri.h
pple/appledristr.h
pple/gen_api_header.tcl
pple/gen_api_library.tcl
pple/gen_code.tcl
pple/gen_defs.tcl
pple/gen_exports.tcl
pple/gen_funcs.tcl
pple/gen_types.tcl
pple/glx_empty.c
pple/glx_error.c
pple/glx_error.h
pple/glxreply.c
pple/specs/enum.spec
pple/specs/enumext.spec
pple/specs/gl.spec
pple/specs/gl.tm
pple/specs/glx.spec
pple/specs/glxenum.spec
pple/specs/glxenumext.spec
pple/specs/glxext.spec
lientattrib.c
ri2_glx.c
ri_common.c
ri_glx.c
risw_glx.c
lcontextmodes.c
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
lxextensions.c
ndirect.c
ndirect_size.c
inglepix.c
69ea4e7718efb60b6b0d795a355cebd6712ceac1 02-Jan-2010 Jeremy Huddleston <jeremyhu@freedesktop.org> apple: Use mesa gl.h rather than generating one.

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
pple/GL_aliases
pple/Makefile
pple/apple_glx_pbuffer.c
pple/apple_xgl_api_additional.c
pple/gen_funcs.tcl
pple/gen_gl_h.sh
pple/include/GL/gl.h.template
dbe8b013936d977ec63d6607bfd2fc6772d29787 01-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> apple: Integrate our libGL into the existing build system better

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
akefile
pple/Makefile
lientattrib.c
23215ef4d60a86d9f3b3fdc08e3fdadc59e98890 01-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> apple: Change ifdefs for DRI to be DRI && !APPLE

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
F86dri.c
pple/apple_xgl_api_read.c
pple/apple_xgl_api_stereo.c
pple/apple_xgl_api_viewport.c
ri2_glx.c
ri_common.c
ri_glx.c
risw_glx.c
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
ndirect.c
inglepix.c
font.c
9495e3703062d1ddaf3161f4efc23f0b51284d9b 24-Dec-2009 Jeremy Huddleston <jeremyhu@freedesktop.org> apple: Remove duplicate headers that already exist in mesa.

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
pple/include/GL/gl.hMESA
pple/include/GL/glext.h
pple/include/GL/glext.hMESA
pple/include/GL/glx.h
pple/include/GL/glxext.h
pple/include/GL/internal/glcore.h
pple/include/simple_list.h
0594cf70883b64692ba617d85f4f9b4e636e5c2b 01-Apr-2010 Jeremy Huddleston <jeremyhu@apple.com> apple: Initial import of libGL for OSX from AppleSGLX svn repository.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
pple/.gitignore
pple/GL_aliases
pple/GL_extensions
pple/GL_noop
pple/GL_promoted
pple/Makefile
pple/OVERALL_DESIGN
pple/README_UPDATING
pple/RELEASE_NOTES
pple/TODO
pple/apple_cgl.c
pple/apple_cgl.h
pple/apple_exports.list
pple/apple_glx.c
pple/apple_glx.h
pple/apple_glx_context.c
pple/apple_glx_context.h
pple/apple_glx_drawable.c
pple/apple_glx_drawable.h
pple/apple_glx_pbuffer.c
pple/apple_glx_pixmap.c
pple/apple_glx_surface.c
pple/apple_visual.c
pple/apple_visual.h
pple/apple_xgl_api_read.c
pple/apple_xgl_api_read.h
pple/apple_xgl_api_stereo.c
pple/apple_xgl_api_stereo.h
pple/apple_xgl_api_viewport.c
pple/apple_xgl_api_viewport.h
pple/appledri.c
pple/appledri.h
pple/appledristr.h
pple/gen_api_header.tcl
pple/gen_api_library.tcl
pple/gen_code.tcl
pple/gen_defs.tcl
pple/gen_exports.tcl
pple/gen_funcs.tcl
pple/gen_gl_h.sh
pple/gen_types.tcl
pple/glx_empty.c
pple/glx_error.c
pple/glx_error.h
pple/glxreply.c
pple/include/GL/gl.h.template
pple/include/GL/gl.hMESA
pple/include/GL/glext.h
pple/include/GL/glext.hMESA
pple/include/GL/glx.h
pple/include/GL/glxext.h
pple/include/GL/internal/glcore.h
pple/include/simple_list.h
pple/specs/enum.spec
pple/specs/enumext.spec
pple/specs/gl.spec
pple/specs/gl.tm
pple/specs/glx.spec
pple/specs/glxenum.spec
pple/specs/glxenumext.spec
pple/specs/glxext.spec
lcontextmodes.c
lx_pbuffer.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
lxextensions.c
ndirect_size.c
font.c
16f568a1830ea17da82683f97e016cdc0aae0c65 01-Apr-2010 Vinson Lee <vlee@vmware.com> glx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.

driContext field for __GLXcontextRec struct is only defined if
GLX_DIRECT_RENDERING is set.
lxcmds.c
e5c7d1e1c8ccb493c63e33d017c28b5cf4a55829 30-Mar-2010 Michel Dänzer <daenzer@vmware.com> Merge branch '7.8'

Conflicts:
Makefile
src/mesa/main/version.h

Resolved by keeping version strings from master (also in the intel driver).
07c6d94cd7272524ef06b2a787667e5d626137d2 30-Mar-2010 Michel Dänzer <daenzer@vmware.com> glx/dri2: Fix debug build with old dri2proto.

Apparently the higher compiler optimization level in non-debug builds was
eliminating the unused functions referencing the unresolved DRI2 symbols...
ri2_glx.c
a24fc90703f62d286031cb2ee8f625ef728243fd 28-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drisw: probably better hack for stride and some comments
risw_glx.c
a7109625aa221eb765cf8e0ee6abfe617f9515ba 27-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drisw: update comment
risw_glx.c
3bfa23317c6b1b52ec637a03a0b623228ffc95ef 27-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drisw: add comment to libGL about stride
risw_glx.c
f4e561ce127cf484d7c76c29b8cd026c9ad5cebc 27-Mar-2010 George Sapountzis <gsapountzis@gmail.com> drisw: make stride issue profound
risw_glx.c
29ec84b0a80e1fe2e6f58f91ab63f2f9ebd012a6 27-Mar-2010 George Sapountzis <gsapountzis@gmail.com> glx: try swrastg_dri, if swrast_dri fails

This needs a patch for xserver/glx also. An enviroment variable will be added
at some point, it chould be for swrastg only or all gallium drivers.
risw_glx.c
094c6fbc45cee1b53d9f1d7d4123d6da6a8958a3 23-Mar-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Suppress BadDrawable from DRI2CopyRegion

This can happen when an X window is destroyed behind our back. We use
DRI2CopyRegion behind the scenes in many places (like flushing the fake
front to the real front) so we have to ignore X errors triggered in that
case.

The glean test cases trigger this consistently as they don't destroy the
GLX drawable nicely, they just destroy the X window.
ri2.c
7a0bcba9f9d7a4dcba11d06f207a5d494a330d5f 23-Mar-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Suppress BadDrawable from DRI2CopyRegion

This can happen when an X window is destroyed behind our back. We use
DRI2CopyRegion behind the scenes in many places (like flushing the fake
front to the real front) so we have to ignore X errors triggered in that
case.

The glean test cases trigger this consistently as they don't destroy the
GLX drawable nicely, they just destroy the X window.
ri2.c
8f4f2a0c3625de2bb2b8e955afc23b3ce8c95f93 23-Mar-2010 Jesse Barnes <jbarnes@virtuousgeek.org> GLX/OML: honor OML semantics even if target, divisor and remainder are 0

This change passes a remainder of 1 to the server with the
DRI2SwapBuffers request, causing it to honor the OML semantics for the
swap rather than falling through to glXSwapBuffers behavior. The
remainder actually ends up ignored since the divisor is 0, but we need
to differentiate the OML and standard behavior somehow.

Reported-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
lxcmds.c
2b5a6e083c1e6e45757a2192721d8675309835c1 20-Mar-2010 George Sapountzis <gsapountzis@gmail.com> glx: minor cosmetic
risw_glx.c
2d1641b1917309d6397a6c9c773b801eb83838f8 19-Mar-2010 George Sapountzis <gsapountzis@gmail.com> glx: swapBuffers prototype has changed
risw_glx.c
57c378a531a18d4ae97e04caa9e7bda19593db7e 12-Mar-2010 Alan Coopersmith <alan.coopersmith@sun.com> glx/single2.c: Don't call __builtin_expect on non-gnu compilers

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
ingle2.c
ae7b3a632dd3f3b005459d77b66a77948260f716 06-Mar-2010 Brian Paul <brianp@vmware.com> glx: Move initialization of ext_list_first_time to where it's storage is allocated

Move the initialization of ext_list_first_time from all of the DRI loader's
CreateScreen routines, to where the storage for the screen config is
allocated.

It needs to get set in the screen-config even if DRI is forced off
using LIBGL_ALWAYS_INDIRECT, so that psc->direct_support is initialized
correctly, otherwise __glXExtensionBitIsEnabled() always returns FALSE

Specifically, this causes a problem with an X server which advertises
GLX<=1.2, and the GLX_SGIX_fbconfig extension.
glXGetFBConfigFromVisualSGIX() uses __glXExtensionBitIsEnabled() to
check if the GLX_SGIX_fbconfig extension is available, but that function
won't return correct information because that data has never been
initialized, because ext_list_first_time was never set...

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>

(cherry picked from commit 96ab4d2b84178209ee59017458d9964b32b7e183)
ri2_glx.c
ri_glx.c
risw_glx.c
lxext.c
96ab4d2b84178209ee59017458d9964b32b7e183 01-Jul-2009 Jon TURNEY <jon.turney@dronecode.org.uk> glx: Move initialization of ext_list_first_time to where it's storage is allocated

Move the initialization of ext_list_first_time from all of the DRI loader's
CreateScreen routines, to where the storage for the screen config is
allocated.

It needs to get set in the screen-config even if DRI is forced off
using LIBGL_ALWAYS_INDIRECT, so that psc->direct_support is initialized
correctly, otherwise __glXExtensionBitIsEnabled() always returns FALSE

Specifically, this causes a problem with an X server which advertises
GLX<=1.2, and the GLX_SGIX_fbconfig extension.
glXGetFBConfigFromVisualSGIX() uses __glXExtensionBitIsEnabled() to
check if the GLX_SGIX_fbconfig extension is available, but that function
won't return correct information because that data has never been
initialized, because ext_list_first_time was never set...

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>
ri2_glx.c
ri_glx.c
risw_glx.c
lxext.c
1ca968363dd55e919bd91c8fc31c34d207af3958 05-Mar-2010 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: expose OML_sync_control if possible

If the server supports the OML related protocol, enable support for the
extension.
ri2_glx.c
6b3145d6ee07a0fa9bb867e96ebe6cf716961bb9 05-Mar-2010 Jesse Barnes <jbarnes@virtuousgeek.org> GLX: remove debug prints from glXWaitForMscOML dispatch

Leftover from earlier commit.
lxcmds.c
6d9a9e57dc312a2f9f09a6b826a2de93fab5ae26 04-Mar-2010 Ian Romanick <ian.d.romanick@intel.com> Fix unmatched parenthesis introduce by previous commits

I wasn't careful enough when removing support for GCC versions earlier
than 3.3.0. I could have sworn that I compile tested before pushing,
but apparently not. FAIL.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
ndirect.h
ndirect_size.c
ndirect_size.h
f7dde2c131d8ec04c00f0dd3d7747019ff72a237 04-Mar-2010 Ian Romanick <ian.d.romanick@intel.com> Remove support for GCC older than 3.3.0 from generated sources

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
ndirect.c
ndirect.h
ndirect_size.c
ndirect_size.h
016fc30839f0fb67bb37d4a7353a7e38749deab5 04-Mar-2010 Ian Romanick <ian.d.romanick@intel.com> Remove support for GCC older than 3.3.0

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
F86dri.c
lxclient.h
ndirect_vertex_program.c
ixelstore.c
5f40a7aed12500fd6792e2453f495555c3b5c54d 02-Mar-2010 Brian Paul <brianp@vmware.com> glx: replace assertion with conditional

See fd.o bug 26832.
lx_pbuffer.c
706fffbff59be0dc884e1938f1bdf731af1efa3e 28-Feb-2010 Vinson Lee <vlee@vmware.com> glx: Add assert to check input to memcpy.
lx_pbuffer.c
83f1183e769777df5ada4bf7add3390881f88d02 26-Feb-2010 Markus Fleschutz <markus.fleschutz@x-software.com> glx: fix incorrect array stack memory allocation

The array stack space wasn't allocated to the proper size. Fixes out of
bounds memory writes when the client/array stack depth exceeds one.

See fd.o bug 26768.
ndirect_vertex_array.c
4cb13b433cfdaa1295e5df048d7ef614545f6e16 23-Feb-2010 Chia-I Wu <olv@lunarg.com> glapi: Generated GLX sources should use glapidispatch.h.

Fix glX_proto_recv.py and glX_proto_send.py, and regenerate the sources.
ndirect.c
07b07b4d723394c82f7ba915c1cba620b307013d 11-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> glapi: GL_OES_EGL_image autogenerated files
ndirect.c
251bf298bfddd06c6d6cd4b03ba9aadfc02e2895 19-Feb-2010 kleinerm <mario.kleiner@tuebingen.mpg.de> glx: Fix some typos in pointer checking for OML_sync_control entry points.

Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Brian Paul <brianp@vmware.com>
lxcmds.c
32f2fd1c5d6088692551c80352b7d6fa35b0cd09 19-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versions
lcontextmodes.c
lcontextmodes.h
26f8fad1456fdc2b352cea9d3b4c32cb5f6ae947 19-Feb-2010 Kenneth Graunke <kenneth@whitecape.org> Remove _mesa_memset in favor of plain memset.

This may break the SUNOS4 build, but it's no longer relevant.
lcontextmodes.c
7ccbeb41acd2f5c416005bd48c11996a054a869a 17-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> Merge commit '381d5e209815235911c4aab516037c868c8f695f'

This merges the patches from the series "[PATCH 00/14] More
client-side GLX house cleaning" that were posted to the mesa3d-dev
mailing list. See
http://marc.info/?l=mesa3d-dev&m=126582985214612&w=2

Patches 01 through 04 eliminate a bunch of annoying warnings that I
get when building Mesa.

Patch 05 fixes an inconsistency between the implementation of
glXSwapIntervalMESA and the spec. I chose to favor the code over the
spec in this case. This also eliminated a warning.

Patches 06 through 12 clean up the way that context creation is
performed on the client. When support for GLX_SGIX_fbconfig and the
related GLX 1.3 functions was added, I refactored a bunch
nuts-and-bolts of context creation to CreateContext. The refactor was
a good idea, I just didn't do it right.

Patches 13 and 14 update glxgears_fbconfig to use GLX 1.3 interfaces.
846cf495226be78b05e74064662eba4e7eb8280e 16-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix a couple of warnings
ri2.c
215d0dae6151e83ca4dc1a65c96d56b0835d27e7 16-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Only register wire handlers for the events the server supports
ri2.c
61d26bc82e7c4100acfb551cbb0ba9d84bbc4ba5 08-Feb-2010 Francisco Jerez <currojerez@riseup.net> dri2: Event driven buffer validation.

When a buffer invalidation event is received from the X server, the
"invalidate" hook of the DRI2 flush extension is executed: A generic
implementation (dri2InvalidateDrawable) is provided that just bumps
the "pStamp" sequence number in __DRIdrawableRec.

For old servers not supporting buffer invalidation events, the
invalidate hook will be called before flushing the fake front/back
buffer (that's typically once per frame -- not a lot worse than the
situation we were in before).

No effort has been made on preserving backwards compatibility with
version 2 of the flush extension, but I think it's acceptable because
AFAIK no released stack is making use of it.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
ri2.c
ri2_glx.c
lxclient.h
97ec6076f596a3820a9b7c4b7eae18bd98c6676b 15-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Move GetGLXDRIDrawable() prototype to glxclient.h
lx_pbuffer.c
lxclient.h
lxcmds.c
86d98fa4a2dfdae75e6ecd9a7e6e73d4183075a0 15-Feb-2010 Vinson Lee <vlee@vmware.com> glx: Silence uninitialized variable warning.
ri_glx.c
d46d30f997c1718217545947ca4d80ec7d18e684 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Pass fbconfig ID or visual ID to CreateContext

Pass either the fbconfig ID or the visual ID, as appropriate, to
CreateContext. Now CreateContext does not derefernce fbconfig or vis
(which no longer exists as a parameter).
lxcmds.c
c3db1d621e1f7c73006ed76855d31b1034bc3aef 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Use the screen parameter everywhere instead of vis->screen, etc.
lxcmds.c
52cf8db428909156b062f17a9e6251a38178dec3 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Move work of converting a visual to an fbconfig

For the direct rendering case, the DRI createContext function wants an
fbconfig. When glXCreateContext is called, we have to convert the
visual to an fbconfig. This work was done in CreateContext, but it
makes more sense for it to be done in glXCreateContext.
lxcmds.c
bc7b2f0dc33753f6d6b55bd4058e82ddf0997967 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Re-indent CreateContext after the previous commit
lxcmds.c
2243029eeec9e31b92079ff0e8fafdc0315053d6 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Handle imported contexts outside of CreateContext

A long time ago I was a bit over-agressive in refactoring context
creation into a single function. The creation code for
glXImportContextEXT does not belong in CreateContext because it does
not use any GLX protocol. The big if-statement for the import case
routed around almost the entire function anyway.
lxcmds.c
7bcfb66000557a0ef32bdc6b31949a92f95a9ff6 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Pass screen number as parameter to CreateContext

Passing the screen parameter to CreateContext will simplify a couple
of changes that are coming.
lxcmds.c
8bffadbc83d19ecd8be8f0107d51463e36477666 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Pass opcode to CreateContext instead of use_glx_1_3 parameter

Passing the opcode directly instead of having CreateContext infer it
from the value of fbconfig and the use_glx_1_3 flag will simplify some
changes that are coming.
lxcmds.c
68fef184390da2fd67acfd99fba0a2dbe4a3b875 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Fix interval test in glXSwapIntervalMESA

It appears that, in spite of what the spec says, the interval
parameter to glXSwapIntervalMESA has been an unsigned int since
day-1. This made the 'if (interval < 0)' test useless. The test is
removed and the spec is updated to note that the interval is an
unsigned value.
lxcmds.c
1add5354d0fbfb2d9b6a4a3fd6a39225bcadc098 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Change type to eliminate 'comparison between signed and unsigned' warning
lxcmds.c
71a6fb15ceb6619d39029ff897daf2da4858b17e 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Add casts to eliminate 'comparison between signed and unsigned' warnings
lxcmds.c
26b2bee79d77b7a7b854d7300a10dce69e93d5cd 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Eliminate several 'unused variable' warnings in glxcmds.c.
lxcmds.c
2b4e009ed56b69b243f5cc88f490dcf8166cf729 05-Feb-2010 Ian Romanick <ian.d.romanick@intel.com> glx: Use wrapper macro to detect direct rendering

The wrapper macro GC_IS_DIRECT is used in CreateContext and a couple
other places to eliminate the need for some of the '#ifdef
GLX_DIRECT_RENDERING' madness. There appear to be a *LOT* of places
in glxcmds.c where '#ifdef GLX_DIRECT_RENDERING' is missing.
lxcmds.c
2ecbe4e208ce4f6c789667f230b5b23b47de1936 09-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Fix TOP setting in src/glx Makefile

Argh, forgot to commit this fix before pushing.
akefile
6e8897ff9f90601ebf6eed500ad942c11b54d1f7 09-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> Retire miniglx and move the actual glx code up to src/glx
akefile
F86dri.c
lientattrib.c
ompsize.c
ri2.c
ri2.h
ri2_glx.c
ri_common.c
ri_common.h
ri_glx.c
risw_glx.c
val.c
lcontextmodes.c
lcontextmodes.h
lx_pbuffer.c
lx_query.c
lxclient.h
lxcmds.c
lxcurrent.c
lxext.c
lxextensions.c
lxextensions.h
lxhash.c
lxhash.h
ndirect.c
ndirect.h
ndirect_init.c
ndirect_init.h
ndirect_size.c
ndirect_size.h
ndirect_texture_compression.c
ndirect_transpose_matrix.c
ndirect_vertex_array.c
ndirect_vertex_array.h
ndirect_vertex_array_priv.h
ndirect_vertex_program.c
ndirect_window_pos.c
ini/Makefile
ini/NOTES
ini/dispatch.c
ini/driver.h
ini/example.miniglx.conf
ini/miniglx.c
ini/miniglxP.h
ini/miniglx_events.c
ackrender.h
acksingle.h
ixel.c
ixelstore.c
ender2.c
enderpix.c
ingle2.c
inglepix.c
ertarr.c
11/Makefile
11/XF86dri.c
11/clientattrib.c
11/compsize.c
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_common.h
11/dri_glx.c
11/drisw_glx.c
11/eval.c
11/glcontextmodes.c
11/glcontextmodes.h
11/glx_pbuffer.c
11/glx_query.c
11/glxclient.h
11/glxcmds.c
11/glxcurrent.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
11/glxhash.c
11/glxhash.h
11/indirect.c
11/indirect.h
11/indirect_init.c
11/indirect_init.h
11/indirect_size.c
11/indirect_size.h
11/indirect_texture_compression.c
11/indirect_transpose_matrix.c
11/indirect_vertex_array.c
11/indirect_vertex_array.h
11/indirect_vertex_array_priv.h
11/indirect_vertex_program.c
11/indirect_window_pos.c
11/packrender.h
11/packsingle.h
11/pixel.c
11/pixelstore.c
11/render2.c
11/renderpix.c
11/single2.c
11/singlepix.c
11/vertarr.c
11/xf86dri.h
11/xf86dristr.h
11/xfont.c
f86dri.h
f86dristr.h
font.c
8b0b5ace4871847f7d8608e0ce6f67b7c5731ea7 08-Feb-2010 Francisco Jerez <currojerez@riseup.net> glx: Fix SwapBuffers regression introduced by 01923fb72d.

After that commit, some dri2 protocol symbols were being checked from
places that weren't including dri2proto.h, effectively disabling some
valuable SwapBuffers codepaths.
11/dri2_glx.c
11/glxext.c
01923fb72d755b319dde521c3c81a20caa95b540 04-Feb-2010 Keith Whitwell <keithw@vmware.com> glx: permit building with older protocol headers

I'd like to be able to build mesa on current distro releases without
having to upgrade from the standard dri2proto and glproto headers. With
this change I'm able to build on ancient releases such as Ubuntu 9-10...

In general, it would be nice to be able to build-test mesa to check for
unintended breakages without having to follow the external dependencies
of every group working on the codebase.

Seems to introduce no changes to the build of libglapi.a when tested against
new versions of the headers.
11/dri2.c
11/dri2_glx.c
11/glxext.c
697e22146def0a14915d83901063e2068c9980ae 05-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> glx: Don't mark the XF86DRI functions PUBLIC
11/XF86dri.c
e3a99e8522688e20f730084799a1dfad305d90eb 01-Feb-2010 Vinson Lee <vlee@vmware.com> glx: Remove unnecessary headers.
11/compsize.c
11/dri2_glx.c
11/dri_glx.c
11/drisw_glx.c
11/glx_pbuffer.c
11/glxcurrent.c
11/glxext.c
11/glxextensions.c
81cca6d4538bdde1661ce868af2a5de47cd251ab 29-Jan-2010 Rodolfo Ribeiro Gomes <rodolforg@gmail.com> glx: fix possible memory leaks in dri2CreateScreen()

Original patch fixed up by Brian Paul.
11/dri2_glx.c
146931769c75978c58ac0088e8ab630fc41074ec 21-Jan-2010 Chia-I Wu <olvaffe@gmail.com> glx: Build GLX normally.

GLX was built specially and before Mesa core because libglapi.a could
not be built with IN_DRI_DRIVER defined. This is no longer the case
since 6e99e6ddbf488f6955e34ef0bc438fdcb4d90f74.

It works fine in my (limited) testing with both direct and indirect
rendering. I also compare the outputs after preprocessing (gcc -E) with
or without this commit, and they are identical.
11/Makefile
7a9329ba99fe1242c07fbf4fd04e7a4dbeba2e72 20-Jan-2010 Robert Bragg <robert@linux.intel.com> mesa: misc GLX_INTEL_swap_event fixes

Fixup a few issues found through testing:
- update GLX names to match glproto
- register DRI2WireToEvent so it actually gets called

Signed-off-by: Robert Bragg <robert@linux.intel.com>
11/dri2.c
11/glxclient.h
11/glxext.c
782b6885c2573e1f004d9572eb386d9e1f392254 22-Jan-2010 Dave Airlie <airlied@redhat.com> Merge branch 'arb_half_float_vertex'
1ac5fd594a00d83f9b103ac6261bedabdb7e6b32 18-Jan-2010 Dave Airlie <airlied@linux.ie> glapi: add GL_HALF_FLOAT enum support.

Regenerate enums files and GLX indirect.

Signed-off-by: Dave Airlie <airlied@redhat.com>
11/indirect_size.c
cd8614b0287dc5a69725ec4ee0208fad61f7789e 22-Jan-2010 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/pipebuffer/Makefile
src/gallium/auxiliary/pipebuffer/SConscript
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/drivers/i915/i915_surface.c
src/gallium/drivers/i915/i915_texture.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/softpipe/sp_prim_vbuf.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/winsys/drm/intel/gem/intel_drm_api.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
src/gallium/winsys/drm/radeon/core/radeon_drm.c
src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
src/mesa/state_tracker/st_cb_clear.c
bdd250080593c6d0d5addcaff0b2a5c880d7a3b2 21-Jan-2010 Chia-I Wu <olvaffe@gmail.com> Do not include glapi/dispatch.h outside Mesa core.

Include the glapi*.h directly instead. glapi/dispatch.h became a Mesa
core header since 22884db174b9fb0736cec1c6a192f8b9a97500c1.
11/indirect.c
11/single2.c
11/singlepix.c
a7aaf052f935cb51b7b616a7a764c57fc01b2821 17-Jan-2010 Alan Coopersmith <alan.coopersmith@sun.com> Sun compilers now support some gcc __attribute__ values

Sun cc 5.9 and later (__SUNPRO_C >= 0x590) support __attribute__ calls
for aligned, always_inline, noinline, pure, const, and malloc.

This commit includes updates to files that were regenerated by gl_XML.py
after adding the __SUNPRO_C checks to it

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
11/indirect.c
11/indirect.h
11/indirect_size.c
11/indirect_size.h
e88294328cb71dc32941556da5bd4ed40e8b95f1 17-Jan-2010 Luca Barbieri <luca@luca-barbieri.com> glx: Set GL context to null in __glXSetCurrentContextNull

__glXSetCurrentContextNull currently does not set the GL context to null
in the direct rendering case.

This can result in a segfault trying to flush an invalid old context
in glXMakeCurrent.

This fixes a crash starting the Unigine demos (they still don't work due
to missing extensions though).

Signed-off-by: Brian Paul <brianp@vmware.com>
11/glxcurrent.c
1cfd769c2ec0b605cacd75c0e9c89346e1f9518d 14-Jan-2010 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: don't send DRI2 requests the server doesn't know about

At init time, NULL out the hooks that send the server new requests.
DRI2 never supported these extensions, so this preserves old behavior on
old servers with new Mesa.
11/dri2_glx.c
62eb28c810a192dab772402904c50eea43b8340e 14-Jan-2010 Jesse Barnes <jbarnes@virtuousgeek.org> GLX/DRI2: pass X drawable ID instead

These happened to be the same in my testing since I was using apps that
depend on the GLX 1.2 behavior where X and GLX drawables are
interchangeable.
11/dri2_glx.c
c6ef705e414c8e93ee471f50d15ada3492a9b067 11-Jan-2010 Jesse Barnes <jbarnes@virtuousgeek.org> Merge branch 'master' of ssh://people.freedesktop.org/~jbarnes/mesa

Conflicts due to DRI1 removal:
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_screen.c
7f170573ea486f2f2dd474c2590346f1a0110773 12-Nov-2009 Jesse Barnes <jbarnes@jbarnes-desktop.localdomain> DRI2/GLX: add INTEL_swap_event support

Add event support for the GLX swap buffers event, along with DRI2 protocol
support for generating GLX swap buffers events in the direct rendered case.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
11/dri2.c
11/dri_common.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
efc82e7c703f9160cfdbe6d97e166ca6f5e75d86 10-Nov-2009 Jesse Barnes <jbarnes@jbarnes-desktop.localdomain> DRI2: add SwapInterval support

Add support for the DRI2SwapInterval protocol request. This allows
direct rendered clients to control their swap interval per the
SGI_swap_control extension.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/glxclient.h
11/glxcmds.c
daf7fe69f7bd0caa955d30b43fc35b7ce0069b6b 16-Sep-2009 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: add OML_sync_control support

Add OML_sync_control support, along with a simple program for testing
it. This means adding support for the DRI2GetMSC, DRI2WaitMSC and
DRI2WaitSBC requests.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_common.h
11/dri_glx.c
11/drisw_glx.c
11/glxclient.h
11/glxcmds.c
a35f6bb207efe3c959bbd16a37f2049e5aceeea9 17-Jul-2009 Jesse Barnes <jbarnes@virtuousgeek.org> DRI2: add SwapBuffers support

Support the new DRI2 protocol request, DRI2SwapBuffers, in both direct
and indirect rendering context. This request allows the display server
to optimize back->front swaps (e.g. through page flipping) and allows us
to more easily support other GLX features like swap interval and the OML
sync extension in DRI2.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
11/dri2.c
11/dri2.h
11/dri2_glx.c
ae44b92f61b78c9991060a8dd7fa7327d428c138 05-Jan-2010 Kristian Høgsberg <krh@bitplanet.net> Merge branch 'remove-intel-dri1'

* remove-intel-dri1:
intel: intelScreenContext() is no longer used
intel: Remove remaining dri2.enabled tests
intel: Drop more cliprect bookkeeping
intel: Remove struct intel_framebuffer
intel: Remove client-side vblank code
intel: Drop intelWindowMoved()
intel: Drop batchbuffer cliprect_mode tracking
intel: Drop DRI1 static regions
intel: Use depth buffer from ctx.DrawBuffer in copypix_src_region()
intel: Drop LOCK/UNLOCK_HARDWARE()
intel: Drop DRI1 SwapBuffer implementation
intel: Drop DRI1 CopySubBuffer implementation
intel: Drop DRI1 support
Push __driDriverExtensions out of dri_util.c and into the drivers
Remove leftover __DRI{screen,drawable,context}Private references
Check for libdrm_$chipset.pc when needed
d61f07318c8678901b948fdaa8ccdf37aa3203e9 01-Jan-2010 Kristian Høgsberg <krh@bitplanet.net> Remove leftover __DRI{screen,drawable,context}Private references

As part of the DRI driver interface rewrite I merged __DRIscreenPrivate
and __DRIscreen, and likewise for __DRIdrawablePrivate and
__DRIcontextPrivate. I left typedefs in place though, to avoid renaming
all the *Private use internal to the driver. That was probably a
mistake, and it turns out a one-line find+sed combo can do the mass
rename. Better late than never.
ini/miniglx.c
11/dri_glx.c
287cbba9b7ebf95391f77b58f519dd76c415d355 24-Dec-2009 Jeremy Huddleston <jeremyhu@freedesktop.org> apple: Purge existing (not working) GLX_USE_APPLEGL from dated libGL on OSX

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
11/dri_glx.c
11/glxcurrent.c
32305e3a9f9408922c34f06174aaa0d34cf72459 24-Dec-2009 Jeremy Huddleston <jeremyhu@freedesktop.org> glxcmds: Fix comment about __DRI_ALLOCATE

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
11/glxcmds.c
d0b7ff551ab25153e3023871af3daa65b394a828 27-Dec-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
src/gallium/auxiliary/util/u_network.c
src/gallium/auxiliary/util/u_network.h
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/trace/tr_rbug.c
src/gallium/state_trackers/vega/bezier.c
src/gallium/state_trackers/vega/vg_context.c
src/gallium/state_trackers/xorg/xorg_crtc.c
src/gallium/state_trackers/xorg/xorg_driver.c
src/gallium/winsys/xlib/xlib_brw_context.c
src/mesa/main/mtypes.h
6c8c1ce78b59f76c4a4e0c354f74e6dfb5615e8a 23-Dec-2009 Vinson Lee <vlee@vmware.com> glx: Add XF86DRI[Open|Close]FullScreen prototypes to xf86dri.h.
11/xf86dri.h
cf3bb0cf315a761210a0b3bf426aa6f30024fac3 23-Dec-2009 Vinson Lee <vlee@vmware.com> glx: Move declaration outside for loop.
11/glxext.c
cf02484fb668ca20afb8e426b44dc01397d83f87 22-Dec-2009 Vinson Lee <vlee@vmware.com> glx: Compile dri2.c only if GLX_DIRECT_RENDERING is defined.
11/dri2.c
76b3523d752968bc552d4350a39b9b9b1a023cf0 23-Nov-2009 Vinson Lee <vlee@vmware.com> glx: Prevent potential null pointer deference in driCreateContext.
(cherry picked from commit 4b0b250aae6ae7d48cd24f9d91d05ab58086c4b2)
11/drisw_glx.c
26d2ce0a09f1aac628519cf3473fcabd3f149446 06-Nov-2009 Ian Romanick <ian.d.romanick@intel.com> GLX: Change GLX client vendor string to "Mesa Project and SGI"

This change allows a certain closed-source browser plug-in to work
with open-source drivers.
11/glxcmds.c
e0556657526a7fe53d6e17cf70ffa6a8ee35e0a9 02-Nov-2009 Vinson Lee <vlee@vmware.com> glx: Fix memory leak if XF86DRICreateDrawable() fails

Signed-off-by: Brian Paul <brianp@vmware.com>
11/dri_glx.c
5e6a6a2719c695996490bde491dac267e52f78af 23-Oct-2009 Brian Paul <brianp@vmware.com> glx: don't destroy context immediately if it's currently bound

According to the GLXDestroyContext() man page, the context should not
immediately be destroyed if it's bound to some thread. Wait until it's
unbound to really delete it. The code for doing the later part is
already present in MakeContextCurrent() so no change was needed there.
11/glxcmds.c
521e4b9b7e3c79e7362f7cbd594a2e8cf74cdfe4 29-Sep-2009 Brian Paul <brianp@vmware.com> glx: fix glXQueryContext(GLX_RENDER_TYPE)

The renderType parameter to CreateContext() was never used. Also, it
was often passed as zero. Now when it's zero we check if the context
is RGBA or CI mode and set it accordingly.

Fixes bug 24211.
11/glxcmds.c
ef9cd84521cbbc622c3c37af04b8d10934903ae8 29-Sep-2009 Brian Paul <brianp@vmware.com> glx: indentation fixes
11/glxcmds.c
eeb7e04da64fdae3a40b1afdcde71dcded2481f3 28-Sep-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
d09941c8cc2d4620eb774744c8878921b9dc3bcc 22-Sep-2009 Robert Noland <rnoland@2hip.net> Fix build on non GLIBC platforms (FreeBSD at least)

Build was broken by commit 9666529b5a5be1fcde82caadc2fe2efa5ea81e49

I'm not certain that this is entirely the correct fix since the demo
from bug #23774 seemed to work before the commit that broke the build.

Signed-off-by: Robert Noland <rnoland@2hip.net>
Signed-off-by: Brian Paul <brianp@vmware.com>
11/glxhash.c
ba002eb1965ccdb09d7c3657d32e22e71ed4096a 22-Sep-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch' into mesa_7_6_branch

Conflicts:

src/mesa/main/bufferobj.c
bc7546476078dd520af4853f6f0d3f577ec670ec 22-Sep-2009 Brian Paul <brianp@vmware.com> glx: include string.h to silence missing memset() prototype warning
11/glxhash.c
e8573033058a13bd39a0b85f48b6db64b04c65e0 20-Sep-2009 Tormod Volden <debian.tormod@gmail.com> GLX: Warn only once about applications calling GLX 1.3 functions

The warnings introduced in 1f309c40b8065b8729fce631540c66e4b50b84df
would pour out generously from some applications. This patch adds a
"warn once" wrapper macro, heavily inspired by
src/mesa/drivers/dri/r600/radeon_debug.h

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
11/glx_pbuffer.c
82c2f7756af19f0a19aeda7ea1f627262e4561c0 20-Sep-2009 Nicolai Hähnle <nhaehnle@gmail.com> Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
9666529b5a5be1fcde82caadc2fe2efa5ea81e49 17-Sep-2009 Ian Romanick <ian.d.romanick@intel.com> glx: Use initstate_r / random_r instead of corrupting global random number state

Previously srandom and random were used. This cause the global random
number generator state to be modified. This caused problems for
applications that called srandom before calling into GLX. By using
local state the global state is left unmodified.

This should fix bug #23774.
11/glxhash.c
6c6fe0a7040cb7355abefcd6621b67d0458311ae 15-Sep-2009 Ian Romanick <ian.d.romanick@intel.com> Merge commit 'origin/mesa_7_5_branch' into mesa_7_6_branch
1f309c40b8065b8729fce631540c66e4b50b84df 15-Sep-2009 Ian Romanick <ian.d.romanick@intel.com> GLX: Complain when buggy applications call GLX 1.3 functions.
11/glx_pbuffer.c
9053bb0d405db0b1a2a917317c7ec41e63b54f09 30-Aug-2009 Michel Dänzer <daenzer@vmware.com> Merge branch 'mesa_7_5_branch'

Conflicts:
src/glx/x11/glxcmds.c
edb117879846155632aaeb66483a3085c7a78815 30-Aug-2009 Michel Dänzer <daenzer@vmware.com> glx/x11: Fix glXCreateGLXPixmap for direct rendering.

Fixes progs/xdemos/glxpixmap modified to use direct rendering.
11/glxcmds.c
029e643b24f7deea51e90b9101323e7bcce43681 22-Aug-2009 Michel Dänzer <daenzer@vmware.com> glx/dri2: Always use X drawable ID for DRI2 protocol.

Fixes protocol errors in cases where the GLX ID is different.
11/dri2_glx.c
49c0825655bad3afde57faab84001641bd5340b8 21-Aug-2009 Brian Paul <brianp@vmware.com> glx: initialize some local vars to silence warnings with -O3
11/glxcmds.c
0896268b97674d009d609476acfa1eed5dfea350 12-Aug-2009 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs

Some manual intervention applied since XEXT_* and other macro magic
fooled indent. Auto generated files were also skipped.
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_glx.c
11/glx_pbuffer.c
11/glx_query.c
11/glxclient.h
11/glxcmds.c
11/glxcurrent.c
11/glxext.c
11/glxextensions.c
11/indirect_vertex_array.c
11/single2.c
50f8ca23449af62955dc37695adea2e65696a87b 11-Aug-2009 RALOVICH, Kristóf <kristof.ralovich@gmail.com> glx: fix signedness warning
11/glxcmds.c
7013a4dfb84ce730f093600326fa158cdb1563ff 11-Aug-2009 Brian Paul <brianp@vmware.com> mesa/glapi: regenerated files from gl_API.xml
11/indirect_size.c
e87320b5e033a911d4ced2d516e479cdf1bc9228 30-Jul-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch'
45f4e8842e3dae9d8be2a38769a57a524fdc335f 23-Jul-2009 RALOVICH, Kristóf <tade60@freemail.hu> glx: assign per screen driver configs (DRISW)
11/drisw_glx.c
d090ba9e00c7c7893109ae763385c2e0a66eb16f 23-Jul-2009 RALOVICH, Kristóf <tade60@freemail.hu> glx: assign per screen driver configs (DRI)
11/dri_glx.c
82f4dc21cc5bce9e64fd53d158f7162770e9b652 23-Jul-2009 RALOVICH, Kristóf <tade60@freemail.hu> glx: assign per screen driver configs (DRI2)
11/dri2_glx.c
e32b601e7d79e8fa67b3e9f636125eebc01f3884 23-Jul-2009 RALOVICH, Kristóf <tade60@freemail.hu> glx: properly release DRI configs

Release per screen DRI driver configs during screen destruction.
11/glxext.c
ce0ad53281f236424a72ae021f293a3a5ca69217 23-Jul-2009 RALOVICH, Kristóf <tade60@freemail.hu> glx: cache DRI configs in __GLXscreenConfigsRec
11/glxclient.h
8363dff251fc38b044447bcb173d960b03073974 23-Jul-2009 RALOVICH, Kristóf <tade60@freemail.hu> glx: remove XTHREADS support
11/glxclient.h
11/glxcurrent.c
11/glxext.c
4b0b250aae6ae7d48cd24f9d91d05ab58086c4b2 23-Nov-2009 Vinson Lee <vlee@vmware.com> glx: Prevent potential null pointer deference in driCreateContext.
11/drisw_glx.c
b43887cf7e64cc44cf1409f910d1324549b265d2 12-Nov-2009 Ian Romanick <ian.d.romanick@intel.com> ARB_fbo: Enable extensions related to GL_ARB_framebuffer_object for GLX
11/glxextensions.c
11/glxextensions.h
4e7476f601e15cf4c52d7de44f0f775aaaedd094 12-Nov-2009 Ian Romanick <ian.d.romanick@intel.com> ARB_fbo: Add missing GLX render opcode for glFramebufferTextureLayerEXT

Also regenerate the GLX protocol files from this change.
11/indirect.c
11/indirect.h
11/indirect_init.c
7fd44005ae67d598c0070bb6ad82a26bc0944284 12-Nov-2009 Ian Romanick <ian.d.romanick@intel.com> ARB_fbo: Regenerate files from previous commits.
11/indirect.c
11/indirect.h
11/indirect_init.c
25b492b976632269dfa3de164545d50a53c090ce 07-Jul-2009 Michel Dänzer <daenzer@vmware.com> GLX/DRI1: Mark GLX visuals with depth != screen depth non-conformant.

Such visuals are subject to automatic compositing in the X server, so DRI1
can't render to them properly.
11/dri_glx.c
28471cfa970702128d822c2ecbb1703eedbca245 04-Jul-2009 Jakob Bornecrantz <jakob@vmware.com> Merge branch 'mesa_7_5_branch'
b40dc7e7fcafc30ebaa3778ee847c8983987de83 30-Jun-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch'

Conflicts:

src/mesa/vbo/vbo_exec_draw.c
fa5b0364f90be19bb0e1915f1eea691d06fb8929 30-Jun-2009 Kristof Ralovich <kristof.ralovich@gmail.com> glx: plug a leak

Swrast was missing a free for the culmination of driConcatConfigs.

Use free(), not _mesa_free() since we shouldn't be calling any Mesa
functions from the GLX code. driConcatConfigs() should probably use
regular malloc/free to be consistant but the Mesa functions just wrap
the libc functions anyway.
11/drisw_glx.c
52f895df518608321873f53d6f8549bdbaf0059a 30-Jun-2009 Brian Paul <brianp@vmware.com> glx: fix null pointer dereference segfault (bug 22546)
11/glxcmds.c
9d367d43b2fddb9a27d4be6302da172ab773ca91 06-Jun-2009 Owen W. Taylor <otaylor@fishsoup.net> Disable SGI_swap_control extension for DRI2

We currently don't have support for SGI_swap_control for direct
contexts with DRI2, so disable reporting the extension. Reporting
the extension, and then having glXSwapIntervalSGI() "succeed"
but do nothing can confuse applications.

https://bugs.freedesktop.org/show_bug.cgi?id=22123
(cherry picked from commit 279143c6e808b37c333321b696d80df77f709a04)
11/dri_common.c
9dfce365c7f35ddea6d81b7f595ddcd6d35382a5 19-Jun-2009 Michel Dänzer <daenzer@vmware.com> Also release direct rendering resources in glXDestroyGLXPixmap.

Fixes leak running compiz with direct rendering.
11/glxcmds.c
c53705ed7b89e5a2586b534508182de9c72452ea 17-Jun-2009 Brian Paul <brianp@vmware.com> GLX: attempt to fix glean makeCurrent test cases.

Two parts to this:

One we don't keep pointers to possibly freed memory anymore once we unbind the
drawables from the context. Brian I need to figure out what the comment
you made there, can we get a glean/piglit test so we can fix it properly?

If the new gc is the same as the oldGC, we call the unbind even though
we just bound it in that function. doh.

(cherry picked from master, commit 77506dac8e81e9548a7e9680ce367175fe5747af)
11/glxcurrent.c
a04af335a42ce3b28e59ff9b85b2bd433a9d7b12 24-Jun-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch'

Conflicts:

src/mesa/drivers/dri/i915/i915_tex_layout.c
src/mesa/drivers/dri/i965/brw_wm_glsl.c
src/mesa/drivers/dri/intel/intel_buffer_objects.c
src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
src/mesa/drivers/dri/intel/intel_pixel_draw.c
src/mesa/main/enums.c
src/mesa/main/texstate.c
src/mesa/vbo/vbo_exec_array.c
5ca800e1006555ea1c5dcbbc56c35838c9f04994 23-Jun-2009 Eric Anholt <eric@anholt.net> dri2: Refresh the fake front contents after glXSwapBuffers().

Bug #19177.

Reviewed by: Ian Romanick <ian.d.romanick@intel.com>
11/dri2_glx.c
77506dac8e81e9548a7e9680ce367175fe5747af 11-Jun-2009 Dave Airlie <airlied@redhat.com> GLX: attempt to fix glean makeCurrent test cases.

Two parts to this:

One we don't keep pointers to possibly freed memory anymore once we unbind the
drawables from the context. Brian I need to figure out what the comment
you made there, can we get a glean/piglit test so we can fix it properly?

If the new gc is the same as the oldGC, we call the unbind even though
we just bound it in that function. doh.
11/glxcurrent.c
279143c6e808b37c333321b696d80df77f709a04 06-Jun-2009 Owen W. Taylor <otaylor@fishsoup.net> Disable SGI_swap_control extension for DRI2

We currently don't have support for SGI_swap_control for direct
contexts with DRI2, so disable reporting the extension. Reporting
the extension, and then having glXSwapIntervalSGI() "succeed"
but do nothing can confuse applications.

https://bugs.freedesktop.org/show_bug.cgi?id=22123
11/dri_common.c
1ad15768365617e6795155723843fc440593d7c4 03-Jun-2009 Ian Romanick <ian.d.romanick@intel.com> Thank you git for doing the right thing.
11/indirect.c
c428f467b65f1b79f77103db249936273d645fec 02-Jun-2009 Ian Romanick <ian.d.romanick@intel.com> Fix compiling indirect.c when GLX_DIRECT_RENDERING is not defined

DO NOT HAND-EDIT GLX PROTOCOL FILES. Seriously. How can you miss the giant
comment at the top of the file?
11/indirect.c
751977075f30076bd5e53f9ed9b19d9b36b5da69 03-Jun-2009 Brian Paul <brianp@vmware.com> glapi: regenerated files for GL_ARB_copy_buffer
11/indirect.c
f2445dfd85b42aafe0634e17b2929b4122ff3f03 18-May-2009 Aidan Thornton <makosoft@googlemail.com> Initialize psp->waitX/waitGL for swrast_dri.so.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21053 .
11/drisw_glx.c
46b81b0cc883df0ef7d998be36ae6cbf80257cd2 12-May-2009 Michel Dänzer <daenzer@vmware.com> glXChooseVisual: Only consider fbconfig if we can get the corresponding visual.

This can fail, e.g. when XLIB_SKIP_ARGB_VISUALS=1 is set.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524794 and
http://bugs.freedesktop.org/show_bug.cgi?id=21600 .
11/glxcmds.c
dd4c142e90a0cba5b445990bb522ce9199d7f565 04-May-2009 Brian Paul <brianp@vmware.com> glx: replace Xmalloc() calls with Xcalloc()

Fixes a bug where psp->WaitX was uninitialized. Reported by Chris Clayton.
11/dri_glx.c
11/drisw_glx.c
dbf87f23126cc869637575e9ea2cb58774efe888 21-Apr-2009 Ian Romanick <idr@freedesktop.org> DRI2: Implement interface for drivers to access DRI2GetBuffersWithFormat

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
11/dri2_glx.c
d8d7b2c3955fa2204bb031fea17afae994de79f7 21-Apr-2009 Ian Romanick <idr@freedesktop.org> DRI2: Implement protocol for DRI2GetBuffersWithFormat

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
11/dri2.c
11/dri2.h
05471828dc8dd4a184d4467b66e9c08449d1d4c9 15-Apr-2009 Brian Paul <brianp@vmware.com> glx: added null pointer check in glXGetFBConfigs()

Fixes segfault seen with glxinfo with NVIDIA OpenGL.
11/glxcmds.c
a3c3c1f1437de0186d70de9017a6a8e404ecf482 14-Apr-2009 Adam Jackson <ajax@redhat.com> glx: Make glXGetScreenDriver() work for DRI2
11/dri_glx.c
e6386e0d9a461e7bc96ae7137de9c0a33f24c1a4 07-Apr-2009 Ian Romanick <idr@freedesktop.org> DRI2: Assume that there is always a front buffer

Assume that the front-buffer exists even if the server didn't tell the
client that it exists.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
11/dri2_glx.c
82634ee8df7328b9235abd8352d33b0b3d953600 06-Apr-2009 Ian Romanick <idr@freedesktop.org> DRI2: Provide an interface for drivers to flush front-buffer rendering

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
11/dri2_glx.c
29ae40f5dc8b4b880de1630ce71e3451a77c57f4 03-Apr-2009 Brian Paul <brianp@vmware.com> glx: remove unused local var in determineTextureFormat()
11/glx_pbuffer.c
96fd3df59a161957876bfd7a49992e5a2130370c 02-Apr-2009 Thomas Hellstrom <thellstrom-at-vmware-dot-com> glx: MakeCurrent fixes.

1) If MakeContextCurrent is called with (NULL, None, None), Don't
send the request to the X server if the current context is direct.
2) Return BadMatch in some error cases according to the glx spec.
3) If MakeContextCurrent is called for a context which is current in
another thread, return BadAccess according to the glx spec.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
11/glxclient.h
11/glxcurrent.c
f25c6b164f324e2138784337870e8219008af754 31-Mar-2009 Jeremy Huddleston <jeremy@yuffie.local> Fix compiling indirect.c when GLX_DIRECT_RENDERING is not defined
(cherry picked from commit b65bc1b6cb72df950c2e26446936804dfcdc432c)
11/indirect.c
707c017af68df24441e86b8a69831633a4106ca3 24-Mar-2009 Alan Coopersmith <alan.coopersmith@sun.com> define __builtin_expect for non-gcc compilers in two more glx files

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
11/indirect_vertex_program.c
11/pixelstore.c
11da7e02aa3dba192aa3d95e9debec620133a41c 25-Mar-2009 Michel Dänzer <daenzer@vmware.com> Revert "dri2: Avoid round-tripping on DRI2GetBuffers for the same set of buffers."

This scheme breaks when the display connection doesn't receive ConfigureNotify
events. This caused reporoducible problems (cropped / misplaced output) when
starting a 3D application in a guest operating system in VMware Workstation.

This reverts commit dd1c68f15123a889a3ce9d2afe724e272d163e32.

Conflicts:

src/glx/x11/dri2_glx.c
11/dri2_glx.c
11/glxclient.h
66175aac7609ad314f25fbdff0d3958af310dc24 18-Mar-2009 Eric Anholt <eric@anholt.net> Fix DRI2 accelerated EXT_texture_from_pixmap with GL_RGB format.

This requires upgrading the interface so that the argument to
glXBindTexImageEXT isn't just dropped on the floor. Note that this only
fixes the accelerated path on Intel, as Mesa's texture format support is
missing x8r8g8b8 support (right now, GL_RGB textures get uploaded as a8r8gb8,
but in this case we're not doing the upload so we can't really work around it
that way).

Fixes bugs with compositors trying to use shaders that use alpha channels, on
windows without a valid alpha channel. Bug #19910 and likely others as well.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
11/glx_pbuffer.c
11/glxclient.h
11/glxcmds.c
36010806a10a1d6850a3fb3f997c0fbb58196d21 12-Mar-2009 Roland Scheidegger <sroland@vmware.com> regenerate glapi
11/indirect.c
11/indirect.h
11/indirect_init.c
11/indirect_size.c
857ac1e817808f4b6bf985679162d0e3d709e5b5 26-Feb-2009 David S. Miller <davem@davemloft.net> mesa: Resurrect SPARC asm code.

This rewrites the sparc GLAPI code so that it's PIC friendly and works
with all of the TLS/PTHREADS/64-bit/32-bit combinations properly.

As a result we can turn SPARC asm back on. Currently it's only
enabled on Linux, as that's the only place where I can test this
stuff out.

For the moment the cliptest SPARC asm routines are disabled as they
are non-working. The problem is that they use register %g7 as a
temporary which is where the threading libraries store the thread
pointer on SPARC. I will fix that code up in a future change as it's
a pretty important routine to optimize.

Like x86 we do the runtime patch as a pthread once-invoked initializer
in init_glapi_relocs().

Unlike x86, however, our GLAPI stubs on SPARC are just two instruction
sequences that branch to a trampoline and put the GLAPI offset into a
register. The trampoline is what we run-time patch. The stubs thus
all look like:

glFoo:
ba __glapi_sparc_foo_stub
sethi GLAPI_OFFSET(glFOO) * PTR_SIZE, %g3

This actually makes generate_entrypoint() a lot simpler on SPARC. For
this case in generate_entrypoint() we generate stubs using a 'call'
instead of the 'ba' above to make sure it can reach.

In order to get a proper tail call going here, in the unpatched case,
we do several tricks. To get the current PC, for example, we save the
return address register into a temporary, do a call, save the return
address register written by the call to another temporary, then
restore the original return address register value. This is to
avoid having to allocate a stack frame.

This is necessary for PIC address formation.

This new GLAPI scheme lets us get rid of the ugly SPARC GLAPI hacks in
__glXInitialize() and one_time_init().

Signed-off-by: David S. Miller <davem@davemloft.net>
11/glxext.c
65562453fba69e862d5e3b381d18db9c40d9353c 19-Feb-2009 Alan Hourihane <alanh@vmware.com> glx: add support for a reallyFlush() function before swap occurs.
11/dri2_glx.c
11/dri_common.c
11/glxclient.h
63b51b5cf17ddde09b72a2811296f37b9a4c5ad2 16-Feb-2009 Alan Hourihane <alanh@vmware.com> dri2: support glXWaitX & glXWaitGL by using fake front buffer.
11/dri2_glx.c
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
f967e8b507990f0d7986e0f83924e6587d70200d 08-Feb-2009 Eric Anholt <eric@anholt.net> dri2: Don't crash if the server returns more buffers than expected.
11/dri2.c
680c708deeb4d18474cf7ba86c587dede51d3633 08-Feb-2009 Eric Anholt <eric@anholt.net> dri2: Initialize variables for the getbuffers round-trip reduction.

Missed setting the initial values which usually didn't hurt at runtime.
11/dri2_glx.c
e97681c7f551a2a2a6bd5eff0f4192a870c816c0 09-Feb-2009 Brian Paul <brianp@vmware.com> mesa: merge gallium-0.2 into gallium-master-merge

Merge commit 'origin/gallium-0.2' into gallium-master-merge

Conflicts:

Makefile
docs/relnotes-7.4.html
docs/relnotes.html
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/main/imports.c
src/mesa/main/mtypes.h
src/mesa/main/texcompress.c
src/mesa/main/texenvprogram.c
src/mesa/main/version.h
src/mesa/vbo/vbo_exec_api.c
src/mesa/vbo/vbo_save_draw.c
dd1c68f15123a889a3ce9d2afe724e272d163e32 30-Jan-2009 Eric Anholt <eric@anholt.net> dri2: Avoid round-tripping on DRI2GetBuffers for the same set of buffers.

We only wanted to request when asked for the same set of buffers when a resize
has happened. We can just watch the protocol stream for a ConfigureNotify
and flag to do it then.

This is about a 5% win from doing two glViewport()s per frame in openarena.
11/dri2_glx.c
11/glxclient.h
d485ee54dd7d8e41f6c423030a445e6ac000dd7d 28-Jan-2009 Ian Romanick <idr@freedesktop.org> Make GLX_SGIX_pbuffer mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
11/glxextensions.c
0f72de55386c391c4cc3ee346216f09152a6b5ab 27-Jan-2009 Eric Anholt <eric@anholt.net> dri2: add complaints for more initialization failures.

Somehow we're running into DRI2Authenticate failing, and silent demotion to
swrast is bad.
11/dri2_glx.c
4df482086ebf0663c708b089d8d8d22de0ef972c 22-Jan-2009 Alan Hourihane <alanh@vmware.com> Merge commit 'origin/master' into gallium-0.2

Conflicts:
windows/VC8/mesa/osmesa/osmesa.vcproj
windows/VC8/progs/demos/gears.vcproj
windows/VC8/progs/progs.sln
ab9b4e1f593b2006a61c0f5440c2d7d3af80ea74 20-Jan-2009 Ian Romanick <ian.d.romanick@intel.com> Fix issues with glXMakeContextCurrent and glXMakeCurrentReadSGI

There were several bugs in the infrastructure for these two routines.

1. GLX_ALIAS was incorrectly used. The function and its alias must be
identical! glXMakeContextCurrent / glXMakeCurrentReadSGI and
MakeContextCurrent had different parameters. This caused the last
parameter of MakeContextCurrent to get random values.

2. We based the implementation of glXMakeContextCurrent on the manual
page instead of the GLX spec. The GLX spec says that
glXMakeContextCurrent can be passed a Window as a drawable. When this
happens, it will behave just like glXMakeCurrentReadSGI or
glXMakeCurrent.

3. If there was a problem finding or creating the DRI drawable,
MakeContextCurrent would crash instead of returning an error.

This commit fixes all three issues, and fixes bug #18367 and bug #19625.
11/glxcurrent.c
b7f802eca2c78397ea7b8472b3a7e90a997fc140 18-Jan-2009 Brian Paul <brianp@vmware.com> glx: gcc 2.95 build fix (move declaration before code)

Adapted from patch by Matthieu Herbb <matthieu.herrb@laas.fr>
11/glxcmds.c
658b1bdb1cc5f9910be910dc156a2e81ed999756 15-Jan-2009 Alan Hourihane <alanh@vmware.com> Merge commit 'origin/master' into gallium-0.2

Conflicts:
docs/install.html
docs/relnotes-7.3.html
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_compile.c
src/mesa/shader/slang/slang_emit.c
src/mesa/shader/slang/slang_preprocess.c
src/mesa/shader/slang/slang_preprocess.h
436024561aa6d78f78601f690803bd3845d225e7 12-Jan-2009 Matthieu Herrb <matthieu.herrb@laas.fr> Build fixes for gcc 2.95
11/drisw_glx.c
11/glxcurrent.c
b4866f8a5229d4769a49b4c54a1675a61497d206 11-Jan-2009 Owain G. Ainsworth <oga@openbsd.org> Fix build with GCC 2.95.
11/glx_pbuffer.c
a22d865f93a1db7f72e0bfe216810f67bf4c2f2c 15-Dec-2008 Alan Hourihane <alanh@tungstengraphics.com> Merge commit 'origin/master' into gallium-0.2
2dd0c16f2118a39484615b80ca33620d3276523f 12-Dec-2008 Ian Romanick <ian.d.romanick@intel.com> GLX: Change resulting from previous commit

Commit db61cbfa2aa241da49589331d8b6875d9a77d826 made modifications to
the protocol generator data and scripts. This commit represents the
changes to the generated files resulting from the previous changes.

This is the client-side part of the fix for bugzilla #11003.
11/indirect.c
33a1f495d4bb19288680b9812c6ec1235302d215 08-Dec-2008 Alan Hourihane <alanh@tungstengraphics.com> Merge commit 'origin/master' into gallium-0.2

Conflicts:

progs/glsl/Makefile
154a9e5317f890618932cea0129ef887e16baf84 02-Dec-2008 Kristian Høgsberg <krh@redhat.com> Bump dri2proto requirement to 1.99.3, drop CopyRegion bitmask from protocol.
11/dri2.c
c4c86bbd16688ee4a0afb32efa27ba52abceb1ca 28-Nov-2008 Alan Hourihane <alanh@tungstengraphics.com> Merge commit 'origin/master' into gallium-0.2
8c2b4b33c583401e2efe02db859d5af31872921d 27-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> Revert "glx: xcbified visual and FBConfig choosing"

This reverts commit 62688f11355cfa865d420755aa159875b425cc9b.
11/glxext.c
80d1531ebefe78aaa09a0378d0369963dd925132 27-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> Revert "glx: revert using nonexsisten XCB version of glXGetFBConfigsSGIX"

This reverts commit 53698765019e50172be25a4ff48c83d54f0e7981.
11/glxext.c
53698765019e50172be25a4ff48c83d54f0e7981 08-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: revert using nonexsisten XCB version of glXGetFBConfigsSGIX

This uses a GLX VendorPrivate request. VendorPrivates are real GLX API
calls but use the same protocol request. XCB does not currently
support specific VendorPrivetes directly. See eg.:
http://lists.freedesktop.org/archives/xcb/2008-November/004036.html
for more information.
11/glxext.c
1e167f6b5c91062264d6340d3d78364f0869e8ef 08-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: remove XCB debug leftover
11/glxcmds.c
ff3fa92eaa67579b3bd3480bc685cfc55ae1eff2 04-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: xcbified glXSwapBuffers
11/glxcmds.c
62688f11355cfa865d420755aa159875b425cc9b 04-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: xcbified visual and FBConfig choosing
11/glxext.c
66db1b64e85a2225dff930d3bb9e1194bde75622 04-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: xcbified __glXClientInfo
11/glxcmds.c
6d1d1576062e569fe1d372f44ba3f646c21ae1c3 04-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: no graphics context during initialization
11/glx_query.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/single2.c
9c7aaa7afbda92587f28cc28c4c8315e7861d318 04-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: xcbified __glXIsDirect
11/glxcmds.c
00f22f972f6c96589cb9f6fa75b803c9506d61f5 04-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: missing static on local function
11/glx_query.c
f0d015cccbe29d18ee03ce788b65f44124fefe7f 03-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: use __glXGetString
11/single2.c
9c98e35ff638a7d3793ffa99933ae308005e7416 03-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: use __glXQueryServerString
11/glxcmds.c
11/glxext.c
24b8a8cfe8210ac7bdd661c88523465633151219 03-Nov-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: implement __glXGetString, hide __glXGetStringFromServer
11/glx_query.c
11/glxclient.h
fd52001c5c292d3b625c164a6c3c357e1da443e0 18-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: implement QueryVersion using XCB
11/glxext.c
5444424562781a0a40559db40dfe9b97286dc9da 18-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: implement __glXQueryServerString using XCB
11/glx_query.c
11/glxclient.h
df6155fcff66034457b3165f5df0a61ccfc41314 24-Nov-2008 Brian Paul <brian.paul@tungstengraphics.com> Merge commit 'origin/master' into gallium-0.2

Conflicts:

progs/glsl/Makefile
d52e8543b61ec5b8b8d9b1574a28ae2472fe4c56 24-Nov-2008 Bernd Buschinski <b.buschinski@web.de> glx: Add missing include for XCB, fixing crash on 64-bit.

Bug #18689
11/single2.c
7468765b18be202a64d58b83f6267b6973ea4897 15-Nov-2008 Keith Whitwell <keith@tungstengraphics.com> Merge commit 'origin/master' into gallium-0.2

Conflicts:

src/mesa/shader/prog_print.c
e1fbb30211549f2ee79d8ff9764f833e5317bebe 12-Nov-2008 Kristian Høgsberg <krh@redhat.com> glFlush before CopySubBuffer, fix coordinates and extension name typo.
11/dri2_glx.c
11/dri_common.c
11/glxcmds.c
becf3d927255385592c8c6659c4555cf2dd2842d 12-Nov-2008 Hanno Böck <hanno@hboeck.de> glx: fix xcb build
11/single2.c
19e4222f937c9bb95d3a899dd788afb930eecaa4 11-Nov-2008 Brian Paul <brian.paul@tungstengraphics.com> Merge commit 'origin/master' into gallium-0.2

Conflicts:

src/mesa/shader/prog_execute.c
src/mesa/shader/slang/library/slang_vertex_builtin_gc.h
57d78067bde1b23351380700352e71ed977ebcfe 11-Nov-2008 Kristian Høgsberg <krh@redhat.com> Don't mess with emacs tab width.
11/XF86dri.c
11/clientattrib.c
11/compsize.c
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_common.h
11/dri_glx.c
11/drisw_glx.c
11/eval.c
11/glcontextmodes.c
11/glcontextmodes.h
11/glx_pbuffer.c
11/glx_query.c
11/glxclient.h
11/glxcmds.c
11/glxcurrent.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
11/glxhash.c
11/glxhash.h
11/indirect_init.h
11/indirect_texture_compression.c
11/indirect_transpose_matrix.c
11/indirect_vertex_array.c
11/indirect_vertex_array.h
11/indirect_vertex_array_priv.h
11/indirect_vertex_program.c
11/indirect_window_pos.c
11/packrender.h
11/packsingle.h
11/pixel.c
11/pixelstore.c
11/render2.c
11/renderpix.c
11/single2.c
11/singlepix.c
11/vertarr.c
11/xf86dri.h
11/xf86dristr.h
11/xfont.c
13f96c5401ffe3869f08fecb2baf5bff2438b02e 10-Nov-2008 Brian Paul <brian.paul@tungstengraphics.com> GLX: fix out-of-bounds memory issue in indirect glAreTexturesResident()

See bug 18445.
When getting array results, __glXReadReply() always reads a multiple of
four bytes. This can cause writing to invalid memory when 'n' is not a
multiple of four.

Special-case the glAreTexturesResident() functions now.
To fix the bug, we use a temporary buffer that's a multiple of four bytes
in length.

NOTE: this commit also reverts part of commit 919ec22ecf72aa163e1b97d8c7381002131ed32c
(glx/x11: Added some #ifdef GLX_DIRECT_RENDERING protection) which
directly edited the indirect.c file rather than the python generator!
I'm not repairing that issue at this time.
11/indirect.c
11/single2.c
61d3a66456852642ed8fdc1106dc0012e4b89779 27-Oct-2008 Alan Hourihane <alanh@tungstengraphics.com> Merge commit 'origin/master' into gallium-0.2
0970de31718288e5f2d655147d067ab2e2df5e37 21-Oct-2008 Kristof Ralovich <kristof.ralovich@gmail.com> glx: updated comment
11/glx_query.c
d533a5d00ae2d0669e9da41718ee847de0c343aa 12-Oct-2008 Kristian Høgsberg <krh@redhat.com> Update DRI2 implementation according to new specification.
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
e5ef0beb0549b2b613c379553cc51f9f1ae72299 15-Oct-2008 Kristian Høgsberg <krh@redhat.com> Revert pointless reindents to avoid merge conflicts.

Why are we reindenting code that's work in progress...
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
5f6472fc695ae6d0dfd87f71312e98a5395fd8a5 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxclient.h
11/glxclient.h
5e3edb6f98448d2049c13eeecc17c13fe36305de 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glcontextmodes.h
11/glcontextmodes.h
00be6dfe2ba54008fb8a311aa7523ee012181dcc 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxextensions.c
11/glxextensions.c
c6d037678dd701e006a03fa1eb0b423a5bcac52a 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxextensions.h
11/glxextensions.h
1bb4658fab67c92a350096d8fa83bac9fee6cb5a 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs xfont.c
11/xfont.c
b57e9f2a74dc5489577c38a677d0f9a1f841e489 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs xf86dristr.h
11/xf86dristr.h
400c2d0ceada2b570a42fa42152eac0147943c18 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs XF86dri.c
11/XF86dri.c
b69ef3eb51ae1997171a70352780aaab2affa1b7 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs xf86dri.h
11/xf86dri.h
f7ff9f191308f1ec461ce0ac76870be913d3771c 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: kill old K&R syntax in XF86dri.c
11/XF86dri.c
dd8b90a81b91a241a240f377918f5e24ffe04033 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs vertarr.c
11/vertarr.c
801933c3e46a7872aa22edfa0372361f9b748d3a 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs singlepix.c
11/singlepix.c
ee88fff4323506772be65e0febc457e2c8543235 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs single2.c
11/single2.c
750f497713cb560ffed36ebb5d17ea5445db049c 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs renderpix.c
11/renderpix.c
5b48c862c6a42ee9bc1fd6be11c688d692d1674b 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs render2.c
11/render2.c
3c900bd546044dce51df5751f4f03078d1d25595 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs pixelstore.c
11/pixelstore.c
32d7d5fbae9f5b45e8a7d5b2fdf1cac7906b34e5 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs pixel.c
11/pixel.c
1b2f1227394986f2d1831ab691d9f014b3a44fd6 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs packsingle.h
11/packsingle.h
3a2568b375b3f906ab081cfc53038271f8386c28 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs packrender.h
11/packrender.h
b5f7c84cdfe0ce9fb56559062875de8303c61856 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_window_pos.c
11/indirect_window_pos.c
f9fa7400d796a63eda2ffdb8a6e4b27ff8f54794 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_vertex_program.c
11/indirect_vertex_program.c
76ddfa3a4c3b1fa743a53855e798dd8df4382938 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array_priv.h
11/indirect_vertex_array_priv.h
c09881c79fa11352d008779d632973608d9164ed 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.h
11/indirect_vertex_array.h
f2d45617ddf54355ea2992eb5cd1c5cb82f12496 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.c
11/indirect_vertex_array.c
5ae395a8839dbfa5151b837303957f8438d45444 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_transpose_matrix.c
11/indirect_transpose_matrix.c
4cc369e820b07fc3a57f3bb19af7cdd679476533 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_texture_compression.c
11/indirect_texture_compression.c
5a3db8004e44369accd99c9d761105af4033bd6c 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glx_query.c
11/glx_query.c
35dc7eadfafbf04e39dd8e54fa81b3d2eb46250b 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glx_pbuffer.c
11/glx_pbuffer.c
3dd46f15c38816191a20e78706c6a530a865e924 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxhash.c
11/glxhash.c
b87e8ae0f55ccb268aa4e8bdd697aeba9f235b91 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxhash.h
11/glxhash.h
b7f76587b80b305bc91ddb1cb9661dbfc5247750 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxext.c
11/glxext.c
3959d457d6b614c29396b081b246bd52752aac80 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxcurrent.c
11/glxcurrent.c
c6ea9971377b8d2205a880b5ce6d2f650983e5fb 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxcmds.c
11/glxcmds.c
b928a12ee3760c73ebfe4ae6656ee1f12b042372 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glcontextmodes.c
11/glcontextmodes.c
7f04f8ddee7d270e7596a145e423df0068875829 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs eval.c
11/eval.c
a1a2078f7107acd83e7ef747aa763617ddc547eb 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs drisw_glx.c
11/drisw_glx.c
79d830ce5dfac73762e7daa6864206703d721390 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri_glx.c
11/dri_glx.c
e7970d6b17966e54f25929ee5fae3ddd2e646c4a 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri_common.h
11/dri_common.h
321a73d9d5744e3ce57a90a6452407e75b7d7d08 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri_common.c
11/dri_common.c
9ca7330be399fb627a95b215c71e91329dc04dcf 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri2.h
11/dri2.h
ae5b588dc9de85de2253a947e07ba230a991d0d5 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri2_glx.c
11/dri2_glx.c
0965740c4991b4417adc5acad5ba9e9dc50b0844 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri2.c
11/dri2.c
7d16aaadf17343231505a7673e8c51aea7b726e8 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs compsize.c
11/compsize.c
109f3f709f29d1e817e299d460822580714cbbf7 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs clientattrib.c
11/clientattrib.c
696bf66fa9c7173067969ddf034f4f1ebf403b85 11-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: add a line of Emacs helping variables
11/XF86dri.c
11/clientattrib.c
11/compsize.c
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_common.h
11/dri_glx.c
11/drisw_glx.c
11/eval.c
11/glcontextmodes.c
11/glcontextmodes.h
11/glx_pbuffer.c
11/glx_query.c
11/glxclient.h
11/glxcmds.c
11/glxcurrent.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
11/glxhash.c
11/glxhash.h
11/indirect_init.h
11/indirect_texture_compression.c
11/indirect_transpose_matrix.c
11/indirect_vertex_array.c
11/indirect_vertex_array.h
11/indirect_vertex_array_priv.h
11/indirect_vertex_program.c
11/indirect_window_pos.c
11/packrender.h
11/packsingle.h
11/pixel.c
11/pixelstore.c
11/render2.c
11/renderpix.c
11/single2.c
11/singlepix.c
11/vertarr.c
11/xf86dri.h
11/xf86dristr.h
11/xfont.c
4f31200a33f48445d3c628a46cb790d901391ef0 11-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: No need to zero a local variable.

My previous commit e2060348630b59a446bac7f734fdde40033093ab introduced this.
11/indirect_vertex_array.c
b4bb29cecd1dcee1f92d77bd462069fda71fe039 11-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: make INIT_MESA_SPARC more robust

Embed the macro body into do { ... } while(0) .
11/glxext.c
4830809524b20e517e949151957512b14d7e679a 12-Oct-2008 Kristian Høgsberg <krh@redhat.com> Update DRI2 implementation according to new specification.
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
77c7f90ed44748f0e54e894deff1cac63da54cd6 15-Oct-2008 Kristian Høgsberg <krh@redhat.com> Revert pointless reindents to avoid merge conflicts.

Why are we reindenting code that's work in progress...
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
351de8aecc5d15bc0319e10043b136f887cbaeb2 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxclient.h
11/glxclient.h
03b471d389e290ad983e86e7acf5f9644ea783eb 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glcontextmodes.h
11/glcontextmodes.h
843a09cf5c6714a09b581248f974077bfb0b1ed3 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxextensions.c
11/glxextensions.c
80c83c97fc921bd32383ee784938d91b5fab7b1d 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxextensions.h
11/glxextensions.h
1d0a9e4377b89dffb201eb3cb76c7f72969675b3 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs xfont.c
11/xfont.c
4a3ccc6ca54d78dbc7e6737b80b63258081a12df 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs xf86dristr.h
11/xf86dristr.h
4d2a381114353e061a6dfbcc1ac3881bb1c3e4c5 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs XF86dri.c
11/XF86dri.c
04a810beac01701b3cb79d5f1de3c93660bfb72e 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs xf86dri.h
11/xf86dri.h
4c4cb1b5d195a31345b05b1e0a5b0b668b4a408f 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: kill old K&R syntax in XF86dri.c
11/XF86dri.c
b9a2d3542934b4096e082435e2bc939e424930da 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs vertarr.c
11/vertarr.c
64085b2c2ca20609255962a54c38753e976996a1 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs singlepix.c
11/singlepix.c
dd0edeb8875823c4357ddf53271d8e7035747a3d 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs single2.c
11/single2.c
507808875de6fce4324b67ef88ae4e320df826d3 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs renderpix.c
11/renderpix.c
6bfd57ecdebecccbde8bd46cf9a40845c1d2df15 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs render2.c
11/render2.c
40c481dc915909531dbcba2ae775dd9025b1a27e 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs pixelstore.c
11/pixelstore.c
6581071c1d42f604bf46a8182c83d7b8635ba307 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs pixel.c
11/pixel.c
cfe7f20d0ed8c772015dd639468f68c90c4b78c4 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs packsingle.h
11/packsingle.h
0cff716e70e2194f4946f4faea5b24e97104f975 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs packrender.h
11/packrender.h
68583292b1e44aa96ae8d02e376a5d3b5196bd74 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_window_pos.c
11/indirect_window_pos.c
ccc03b427aabb35035be530055dd10f38dfd7c59 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_vertex_program.c
11/indirect_vertex_program.c
1c916736b88ff30d478d5ed1857c6ea5137af2a5 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array_priv.h
11/indirect_vertex_array_priv.h
9389aa3c0be58f08fe12545a85a89032b0064e01 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.h
11/indirect_vertex_array.h
c868ab3dd1df44e4768f0bf98c07a674541a0a88 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.c
11/indirect_vertex_array.c
39df336635e0c756f73f6b0b58f1d811fabc6d13 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_transpose_matrix.c
11/indirect_transpose_matrix.c
64d1c10e6c471b81da383b9900d2fc98a7e873d0 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs indirect_texture_compression.c
11/indirect_texture_compression.c
6020e6e66aa0d27414b961eb6b4bba1643dfdef7 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glx_query.c
11/glx_query.c
2d4c26b85e39bcfb145976067f440a86bee4f02b 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glx_pbuffer.c
11/glx_pbuffer.c
bd6a3d5975aed1fb764b8b76a04082843747abe1 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxhash.c
11/glxhash.c
39c958944c467bc8f899beba0f944e01d5f00f9d 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxhash.h
11/glxhash.h
acb7e52430db423431e0d852597e5096de44c1c5 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxext.c
11/glxext.c
3a2d2fcd8ac51dbead6f91acdffd118c59a99efb 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxcurrent.c
11/glxcurrent.c
1293356c6093576a371626f6ce372ed6f0f2744f 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glxcmds.c
11/glxcmds.c
07c9bd246d7569e7841ba5b7838d441c8de205a9 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs glcontextmodes.c
11/glcontextmodes.c
f76724b7672f688fc16622c88394a4a82e8bc660 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs eval.c
11/eval.c
60aa0918a120a9f971cd1f1fca5ce84e2c2e8297 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs drisw_glx.c
11/drisw_glx.c
4e88ae5639fc34255619d0ce4e85caf5dc3a2f18 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri_glx.c
11/dri_glx.c
09c889b31809acc2e76db770e6e9a5895c484f08 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri_common.h
11/dri_common.h
4d862283212051f5433c32b23bd2a0201f36bc95 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri_common.c
11/dri_common.c
2e8d62be613a180dc2d5693ef948e47f7bd85620 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri2.h
11/dri2.h
bca6e79a4520beb928c7ea6211aefab07f708a15 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri2_glx.c
11/dri2_glx.c
66cc150770e1d817724757e8b7b6cd738be7d20b 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs dri2.c
11/dri2.c
f788a8ed69f2389dfd8a63a888357887a4f8cdc4 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs compsize.c
11/compsize.c
ee3a6cec360799f8b271a869311b0e9bc3baa5d5 13-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: indent -br -i3 -npcs --no-tabs clientattrib.c
11/clientattrib.c
58b72103d3837fa9245120e17bd4d7083a93f288 11-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: add a line of Emacs helping variables
11/XF86dri.c
11/clientattrib.c
11/compsize.c
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_common.h
11/dri_glx.c
11/drisw_glx.c
11/eval.c
11/glcontextmodes.c
11/glcontextmodes.h
11/glx_pbuffer.c
11/glx_query.c
11/glxclient.h
11/glxcmds.c
11/glxcurrent.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
11/glxhash.c
11/glxhash.h
11/indirect_init.h
11/indirect_texture_compression.c
11/indirect_transpose_matrix.c
11/indirect_vertex_array.c
11/indirect_vertex_array.h
11/indirect_vertex_array_priv.h
11/indirect_vertex_program.c
11/indirect_window_pos.c
11/packrender.h
11/packsingle.h
11/pixel.c
11/pixelstore.c
11/render2.c
11/renderpix.c
11/single2.c
11/singlepix.c
11/vertarr.c
11/xf86dri.h
11/xf86dristr.h
11/xfont.c
61eb4f50eb6eb40dfc97d639be0f7a21881aba29 11-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: No need to zero a local variable.

My previous commit e2060348630b59a446bac7f734fdde40033093ab introduced this.
11/indirect_vertex_array.c
0b188d1cdc254179f5b4e8380d4a44157c4e09c0 11-Oct-2008 RALOVICH, Kristóf <tade60@freemail.hu> glx: make INIT_MESA_SPARC more robust

Embed the macro body into do { ... } while(0) .
11/glxext.c
c9122c0c0308345e2df2448bcb189d0f5d505909 22-Sep-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> mesa: Remove left over merge conflicts
11/Makefile
45efcc44c758a94928648bc20df32b98b3462bcc 21-Sep-2008 Keith Whitwell <keith@tungstengraphics.com> Remove CVS keywords.

Cherry-picked from gallium-0.1

Conflicts:

src/glu/sgi/libnurbs/interface/bezierEval.h
src/glu/sgi/libnurbs/interface/bezierPatch.h
src/glu/sgi/libnurbs/interface/bezierPatchMesh.h
src/glu/sgi/libnurbs/internals/dataTransform.h
src/glu/sgi/libnurbs/internals/displaymode.h
src/glu/sgi/libnurbs/internals/sorter.h
src/glu/sgi/libnurbs/nurbtess/definitions.h
src/glu/sgi/libnurbs/nurbtess/directedLine.h
src/glu/sgi/libnurbs/nurbtess/gridWrap.h
src/glu/sgi/libnurbs/nurbtess/monoChain.h
src/glu/sgi/libnurbs/nurbtess/monoPolyPart.h
src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h
src/glu/sgi/libnurbs/nurbtess/partitionX.h
src/glu/sgi/libnurbs/nurbtess/partitionY.h
src/glu/sgi/libnurbs/nurbtess/polyDBG.h
src/glu/sgi/libnurbs/nurbtess/polyUtil.h
src/glu/sgi/libnurbs/nurbtess/primitiveStream.h
src/glu/sgi/libnurbs/nurbtess/quicksort.h
src/glu/sgi/libnurbs/nurbtess/rectBlock.h
src/glu/sgi/libnurbs/nurbtess/sampleComp.h
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h
src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h
src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h
src/glu/sgi/libnurbs/nurbtess/sampledLine.h
src/glu/sgi/libnurbs/nurbtess/searchTree.h
src/glu/sgi/libnurbs/nurbtess/zlassert.h
src/glu/sgi/libutil/error.c
src/glu/sgi/libutil/glue.c
src/glu/sgi/libutil/gluint.h
src/glu/sgi/libutil/project.c
src/glu/sgi/libutil/registry.c
src/glx/x11/glxclient.h
src/glx/x11/glxext.c
src/mesa/drivers/dri/ffb/ffb_dd.h
src/mesa/drivers/dri/ffb/ffb_points.h
src/mesa/drivers/dri/gamma/gamma_context.h
src/mesa/drivers/dri/gamma/gamma_macros.h
src/mesa/drivers/dri/i810/i810context.h
src/mesa/drivers/dri/r128/r128_dd.h
src/mesa/drivers/dri/tdfx/tdfx_dd.h
ini/miniglx_events.c
11/XF86dri.c
11/indirect_init.h
11/xf86dri.h
11/xf86dristr.h
11/xfont.c
9644fa6c48f596875f6955728c3a8af1b01a5028 21-Sep-2008 Keith Whitwell <keith@tungstengraphics.com> Merge branch 'master' into gallium-0.2

Conflicts:

include/GLES/egl.h
include/GLES/egltypes.h
src/egl/main/eglconfig.c
src/egl/main/eglconfig.h
src/glu/sgi/libnurbs/interface/bezierEval.h
src/glu/sgi/libnurbs/interface/bezierPatch.h
src/glu/sgi/libnurbs/interface/bezierPatchMesh.h
src/glu/sgi/libnurbs/internals/dataTransform.h
src/glu/sgi/libnurbs/internals/displaymode.h
src/glu/sgi/libnurbs/internals/sorter.h
src/glu/sgi/libnurbs/nurbtess/definitions.h
src/glu/sgi/libnurbs/nurbtess/directedLine.h
src/glu/sgi/libnurbs/nurbtess/gridWrap.h
src/glu/sgi/libnurbs/nurbtess/monoChain.h
src/glu/sgi/libnurbs/nurbtess/monoPolyPart.h
src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h
src/glu/sgi/libnurbs/nurbtess/partitionX.h
src/glu/sgi/libnurbs/nurbtess/partitionY.h
src/glu/sgi/libnurbs/nurbtess/polyDBG.h
src/glu/sgi/libnurbs/nurbtess/polyUtil.h
src/glu/sgi/libnurbs/nurbtess/primitiveStream.h
src/glu/sgi/libnurbs/nurbtess/quicksort.h
src/glu/sgi/libnurbs/nurbtess/rectBlock.h
src/glu/sgi/libnurbs/nurbtess/sampleComp.h
src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h
src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h
src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h
src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h
src/glu/sgi/libnurbs/nurbtess/sampledLine.h
src/glu/sgi/libnurbs/nurbtess/searchTree.h
src/glu/sgi/libnurbs/nurbtess/zlassert.h
src/glu/sgi/libutil/error.c
src/glu/sgi/libutil/glue.c
src/glu/sgi/libutil/gluint.h
src/glu/sgi/libutil/project.c
src/glu/sgi/libutil/registry.c
src/glx/x11/Makefile
src/glx/x11/glxclient.h
src/glx/x11/glxext.c
src/mesa/drivers/dri/ffb/ffb_dd.h
src/mesa/drivers/dri/ffb/ffb_points.h
src/mesa/drivers/dri/gamma/gamma_context.h
src/mesa/drivers/dri/gamma/gamma_macros.h
src/mesa/drivers/dri/i810/i810context.h
src/mesa/drivers/dri/r128/r128_dd.h
src/mesa/drivers/dri/r128/r128_tex.h
src/mesa/drivers/dri/tdfx/tdfx_dd.h
src/mesa/drivers/x11/xm_buffer.c
src/mesa/glapi/glapi.c
src/mesa/main/dispatch.c
src/mesa/main/state.c
src/mesa/main/texstate.c
src/mesa/shader/arbprogparse.c
src/mesa/shader/arbprogram.c
src/mesa/shader/nvfragparse.c
src/mesa/shader/nvprogram.c
src/mesa/shader/shader_api.c
src/mesa/sources
src/mesa/swrast/s_aaline.c
src/mesa/swrast/s_aaline.h
src/mesa/swrast/s_aatriangle.h
src/mesa/swrast/s_accum.c
src/mesa/swrast/s_alpha.h
src/mesa/swrast/s_bitmap.c
src/mesa/swrast/s_blend.h
src/mesa/swrast/s_context.c
src/mesa/swrast/s_copypix.c
src/mesa/swrast/s_depth.c
src/mesa/swrast/s_depth.h
src/mesa/swrast/s_drawpix.c
src/mesa/swrast/s_drawpix.h
src/mesa/swrast/s_feedback.c
src/mesa/swrast/s_feedback.h
src/mesa/swrast/s_fog.h
src/mesa/swrast/s_lines.h
src/mesa/swrast/s_logic.h
src/mesa/swrast/s_masking.h
src/mesa/swrast/s_points.c
src/mesa/swrast/s_points.h
src/mesa/swrast/s_readpix.c
src/mesa/swrast/s_span.c
src/mesa/swrast/s_span.h
src/mesa/swrast/s_stencil.h
src/mesa/swrast/s_texcombine.c
src/mesa/swrast/s_texcombine.h
src/mesa/swrast/s_texfilter.c
src/mesa/swrast/s_texfilter.h
src/mesa/swrast/s_texstore.c
src/mesa/swrast/s_triangle.c
src/mesa/swrast/s_triangle.h
src/mesa/swrast/s_zoom.h
src/mesa/swrast_setup/ss_context.c
src/mesa/swrast_setup/ss_triangle.h
src/mesa/tnl/t_draw.c
src/mesa/tnl/t_vb_light.c
src/mesa/tnl/t_vertex_generic.c
src/mesa/tnl/t_vertex_sse.c
src/mesa/tnl/t_vp_build.h
src/mesa/tnl/tnl.h
src/mesa/x86/common_x86.c
dc8058c3370588bfcad49fadace1691da47d58cd 19-Sep-2008 Adam Jackson <ajax@redhat.com> Update to SGI FreeB 2.0.

Under the terms of version 1.1, "once Covered Code has been published
under a particular version of the License, Recipient may, for the
duration of the License, continue to use it under the terms of that
version, or choose to use such Covered Code under the terms of any
subsequent version published by SGI."

FreeB 2.0 license refers to "dates of first publication". They are here
taken to be 1991-2000, as noted in the original license text:

** Original Code. The Original Code is: OpenGL Sample Implementation,
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
** Copyright in any portions created by third parties is as indicated
** elsewhere herein. All Rights Reserved.

Official FreeB 2.0 text:

http://oss.sgi.com/projects/FreeB/SGIFreeSWLicB.2.0.pdf

As always, this code has not been tested for conformance with the OpenGL
specification. OpenGL conformance testing is available from
http://khronos.org/ and is required for use of the OpenGL logo in
product advertising and promotion.
11/clientattrib.c
11/compsize.c
11/eval.c
11/glxclient.h
11/glxcmds.c
11/glxcurrent.c
11/glxext.c
11/packrender.h
11/packsingle.h
11/pixel.c
11/pixelstore.c
11/render2.c
11/renderpix.c
11/single2.c
11/singlepix.c
11/vertarr.c
19d9c81b8c785e94b95110a45497aa52f4a53a34 19-Sep-2008 Brian <brian.paul@tungstengraphics.com> glx: re-add glapi/ path
11/Makefile
4eb95ce807222bc31019b69156fab44aac72cfe7 19-Sep-2008 Brian <brian.paul@tungstengraphics.com> glx: added "glapi/" prefix to include
11/glxclient.h
8d41e4536dfde34b55228cab6ddb081ad6252184 19-Sep-2008 Chris Rankin <rankincj@yahoo.com> mesa: fix asst path/include mistakes in prev commits
11/Makefile
a25e1aa0aab6bd278eefa7c0748b491c9c6ae62c 18-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> glx: remove #include "glheader.h" lines

Was only used to get the PUBLIC/USED macros.
Also, replace "GL_FALSE" with "False" in a couple places.
11/Makefile
11/dri2.c
11/dri2_glx.c
11/dri_common.c
11/dri_glx.c
11/drisw_glx.c
11/glx_pbuffer.c
11/glxclient.h
11/glxcmds.c
11/glxcurrent.c
11/glxext.c
11/glxextensions.c
11/indirect_vertex_program.c
11/pixelstore.c
11/singlepix.c
3537da87de2601fa53eeda3e8d7fa0bca6eb6716 18-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> glx: remove depency on glheader.h and GLboolean type in XF86DRI code

Return Bool instead of GLboolean to match other functions.
Define PUBLIC/USED macros locally.
11/XF86dri.c
11/xf86dri.h
89ab66448e1bcd78caab6678261c2885dcff741c 18-Sep-2008 Keith Whitwell <keith@tungstengraphics.com> Merge commit 'origin/master' into gallium-0.2

Conflicts:

progs/trivial/Makefile
src/mesa/glapi/glthread.c
841205e365fabf7cfa5d4f6cdba80f6507086b4e 11-Sep-2008 George Sapountzis <gsap7@yahoo.gr> dri/swrast: fix swapBuffers after dri2
11/drisw_glx.c
811d8b86eb43b140de86e2674d50b19223d74c5e 13-Sep-2008 Guillaume Melquiond <guillaume.melquiond@gmail.com> glx: fix 64-bit datatype issue
11/indirect_vertex_program.c
bdc8ac4ae2c711e2569618136bf7d9c7b25be53e 12-Sep-2008 Eric Anholt <eric@anholt.net> Finish off the previous fix for TFP.

A couple of those lines of debug printfs I deleted weren't actually debug
printfs.
11/dri2_glx.c
d3dc95e26a0da2b89e7a3cdf5bacbfc66ed17c95 11-Sep-2008 George Sapountzis <gsap7@yahoo.gr> dri/swrast: fix swapBuffers after dri2
11/drisw_glx.c
47ad296a183929c2007c35c60d722b4ac680417d 11-Sep-2008 Alan Hourihane <alanh@tungstengraphics.com> Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/mesa into gallium-0.2

Conflicts:

src/mesa/drivers/dri/i915/intel_ioctl.c
src/mesa/main/texstore.c
src/mesa/tnl/t_vp_build.c
src/mesa/vbo/vbo_exec_draw.c
0397b2bb41b0f337af2949a15bcd7d0e7e8a7dc1 11-Sep-2008 Keith Whitwell <keith@tungstengraphics.com> Merge branch 'gallium-0.1' into gallium-0.2

A first attempt at moving gallium onto a branch directly off master...

It will be interesting to see how much work this takes to get running.

Have resolved the conflicts semi-arbitarily, not compiled or tested.

Conflicts:

.gitignore
Makefile
configs/config.mgw
configs/darwin
configs/darwin-x86ppc
configs/default
configs/freebsd-dri
configs/linux-dri
configs/linux-dri-xcb
configs/linux-fbdev
configs/linux-static
configs/linux-x86-64-static
configs/linux-x86-static
doxygen/Makefile
include/GL/gl.h
progs/demos/Makefile
progs/demos/descrip.mms
progs/demos/texenv.c
progs/egl/.gitignore
progs/egl/Makefile
progs/glsl/.gitignore
progs/glsl/Makefile
progs/glsl/convolutions.c
progs/samples/Makefile.mgw
progs/tests/.gitignore
progs/trivial/.gitignore
progs/trivial/point-param.c
progs/trivial/tri.c
progs/xdemos/.gitignore
progs/xdemos/glthreads.c
src/egl/drivers/demo/Makefile
src/egl/drivers/dri/Makefile
src/egl/main/Makefile
src/glu/Makefile
src/glu/sgi/Makefile
src/glu/sgi/Makefile.mgw
src/glut/glx/Makefile.mgw
src/glut/os2/WarpWin.cpp
src/glut/os2/glut_cindex.cpp
src/glut/os2/glut_gamemode.cpp
src/glut/os2/glut_win.cpp
src/glut/os2/glut_winmisc.cpp
src/glut/os2/os2_glx.cpp
src/glut/os2/os2_menu.cpp
src/glut/os2/os2_winproc.cpp
src/glw/Makefile
src/glx/x11/dri_glx.c
src/glx/x11/glxext.c
src/mesa/Makefile
src/mesa/Makefile.mgw
src/mesa/descrip.mms
src/mesa/drivers/beos/Makefile
src/mesa/drivers/common/descrip.mms
src/mesa/drivers/common/driverfuncs.c
src/mesa/drivers/directfb/Makefile
src/mesa/drivers/dri/Makefile.template
src/mesa/drivers/dri/common/dri_bufmgr.c
src/mesa/drivers/dri/common/dri_bufmgr.h
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/common/extension_helper.h
src/mesa/drivers/dri/common/mmio.h
src/mesa/drivers/dri/common/utils.c
src/mesa/drivers/dri/common/utils.h
src/mesa/drivers/dri/glcore/Makefile
src/mesa/drivers/dri/i810/i810screen.c
src/mesa/drivers/dri/i915/intel_ioctl.c
src/mesa/drivers/dri/i915/intel_ioctl.h
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i915/server/i830_common.h
src/mesa/drivers/dri/i915/server/i830_dri.h
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/server/i830_common.h
src/mesa/drivers/dri/i965/server/i830_dri.h
src/mesa/drivers/dri/mach64/mach64_screen.c
src/mesa/drivers/dri/nouveau/nouveau_context.h
src/mesa/drivers/dri/nouveau/nouveau_fifo.c
src/mesa/drivers/dri/nouveau/nouveau_fifo.h
src/mesa/drivers/dri/nouveau/nouveau_screen.c
src/mesa/drivers/dri/nouveau/nouveau_screen.h
src/mesa/drivers/dri/r128/r128_tex.h
src/mesa/drivers/dri/savage/savageioctl.h
src/mesa/drivers/fbdev/Makefile
src/mesa/drivers/osmesa/Makefile
src/mesa/drivers/osmesa/descrip.mms
src/mesa/drivers/x11/Makefile
src/mesa/drivers/x11/descrip.mms
src/mesa/drivers/x11/xm_dd.c
src/mesa/glapi/glapi.c
src/mesa/glapi/glthread.c
src/mesa/main/api_validate.c
src/mesa/main/attrib.c
src/mesa/main/bufferobj.c
src/mesa/main/bufferobj.h
src/mesa/main/buffers.c
src/mesa/main/config.h
src/mesa/main/context.c
src/mesa/main/descrip.mms
src/mesa/main/drawpix.c
src/mesa/main/enums.c
src/mesa/main/fbobject.c
src/mesa/main/glheader.h
src/mesa/main/imports.c
src/mesa/main/mipmap.c
src/mesa/main/mm.c
src/mesa/main/mm.h
src/mesa/main/mtypes.h
src/mesa/main/points.c
src/mesa/main/sources
src/mesa/main/state.c
src/mesa/main/texcompress_fxt1.c
src/mesa/main/texenvprogram.c
src/mesa/main/texobj.c
src/mesa/main/texstate.c
src/mesa/main/texstore.c
src/mesa/math/descrip.mms
src/mesa/shader/arbprogram.c
src/mesa/shader/descrip.mms
src/mesa/shader/prog_execute.c
src/mesa/shader/prog_statevars.c
src/mesa/shader/prog_statevars.h
src/mesa/shader/prog_uniform.c
src/mesa/shader/program.c
src/mesa/shader/program.h
src/mesa/shader/shader_api.c
src/mesa/shader/slang/descrip.mms
src/mesa/shader/slang/library/slang_vertex_builtin_gc.h
src/mesa/sources
src/mesa/swrast/descrip.mms
src/mesa/swrast/s_drawpix.c
src/mesa/swrast/s_fragprog.c
src/mesa/swrast/s_readpix.c
src/mesa/swrast/s_span.c
src/mesa/swrast_setup/descrip.mms
src/mesa/tnl/descrip.mms
src/mesa/tnl/t_context.h
src/mesa/tnl/t_vp_build.c
src/mesa/tnl/tnl.h
src/mesa/vbo/descrip.mms
src/mesa/vbo/vbo_context.c
src/mesa/vbo/vbo_exec_array.c
src/mesa/x86-64/xform4.S
src/mesa/x86/rtasm/x86sse.c
src/mesa/x86/rtasm/x86sse.h
windows/VC6/progs/glut/glut.dsp
windows/VC7/mesa/gdi/gdi.vcproj
windows/VC7/mesa/glu/glu.vcproj
windows/VC7/mesa/mesa.sln
windows/VC7/mesa/mesa/mesa.vcproj
windows/VC7/mesa/osmesa/osmesa.vcproj
windows/VC7/progs/glut/glut.vcproj
windows/VC8/mesa/gdi/gdi.vcproj
windows/VC8/mesa/glu/glu.vcproj
windows/VC8/mesa/mesa.sln
windows/VC8/mesa/mesa/mesa.vcproj
windows/VC8/progs/glut/glut.vcproj
f56b569e9af356c11869ee49a4669bb01b75397e 13-Aug-2008 Kristian Høgsberg <krh@redhat.com> DRI2: Drop sarea, implement swap buffers in the X server.
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
8434c65bb9f52a33ba8945bca9a0c62f7d30ed3a 20-Aug-2008 Kristof Ralovich <kristof.ralovich@gmail.com> glx: free driScreen in FreeScreenConfigs()
11/glxext.c
8b512781345090a18403c43c908fa84c45b8016c 20-Aug-2008 Kristof Ralovich <kristof.ralovich@gmail.com> glx: free context in driDestroyContext()
11/dri_glx.c
e2060348630b59a446bac7f734fdde40033093ab 20-Aug-2008 Kristof Ralovich <kristof.ralovich@gmail.com> glx: free vertex array state when context is destroyed
11/glxclient.h
11/glxcmds.c
11/indirect_vertex_array.c
fb36a54a1c327efc6602ff104b097359f9823931 20-Aug-2008 Kristof Ralovich <kristof.ralovich@gmail.com> fix mem leak (free psc->visuals)
11/glxext.c
d8be393cb60d908f98f0edb74c1c7964e8f690fe 13-Aug-2008 Zack Rusin <zack@tungstengraphics.com> fix compilation
11/Makefile
98e7c1cf3852fbc2924b55b5a684f13a710eec04 12-Aug-2008 Jeremy Huddleston <jeremyhu@freedesktop.org> Fixed 'make install' for darwin
11/Makefile
ac0d19601caf1f3f86cb30cbafb9c000479e2b37 11-Aug-2008 Jeremy Huddleston <jeremyhu@freedesktop.org> Apple: Cleaned up some linking and dylib ids issues
11/Makefile
919ec22ecf72aa163e1b97d8c7381002131ed32c 08-Aug-2008 Jeremy Huddleston <jeremyhu@freedesktop.org> glx/x11: Added some #ifdef GLX_DIRECT_RENDERING protection
11/glxcmds.c
11/glxcurrent.c
11/glxext.c
11/indirect.c
11/singlepix.c
ec770150edff9a5955f52e538adc4bac94c92cad 08-Aug-2008 Jeremy Huddleston <jeremyhu@freedesktop.org> glx/x11: Fix missing __GL_EXT_BYTES declaration
11/glxclient.h
11/glxextensions.h
62fb5f7b9ab70017d5de6ab3d0886bc4cbdbc57f 08-Jul-2008 Adam Jackson <ajax@redhat.com> Drop unused 'entries' field from __glxHashTable.
11/glxhash.c
27e3f7f21d4405edbdbe98b5b62b1eaeec0d4aab 15-Jul-2008 Ian Romanick <ian.d.romanick@intel.com> glx: Update my e-mail address. :)
11/indirect_vertex_array.c
67108adb48f3be927d7fb92ba8f6bd5c9d165222 15-Jul-2008 Ian Romanick <ian.d.romanick@intel.com> glx: Trivial clean-ups to __glXSetArrayEnable
11/indirect_vertex_array.c
4fab47b13c214dc79e0ae5d8001521029ce34231 13-Jul-2008 Dave Airlie <airlied@linux.ie> glx/dri: only report DRI2 extensions when DRI2 is enabled.

Fixes bug 15477
11/dri2_glx.c
11/dri_common.c
11/dri_common.h
11/dri_glx.c
11/drisw_glx.c
db072baaaf6adcd176ea7e4d67b77177de7eca31 11-Jul-2008 Dan Nicholson <dbn.lists@gmail.com> Call mklib with $(SHELL) so the user controls the interpreter

Respect the user's choice of shell when running mklib rather than always
using /bin/sh.
ini/Makefile
11/Makefile
df2c9424d3b625d6e97528c74051257bc5630a67 11-Jul-2008 Brian Paul <brian.paul@tungstengraphics.com> glx: added __glXPreferEGL() to tell libGL to prefer "egl_" drivers over regular DRI drivers.

Also, clean-up, consolidate the dlopen() code a bit.
11/dri_glx.c
11/glxclient.h
a36bf890e8be3473f6a98f5ba4369e3acc0463ad 07-Jul-2008 George Sapountzis <gsap7@yahoo.gr> glx: add LIBGL_ALWAYS_SOFTWARE

this disables accelerated DRI and fallbacks to client-side software rendering.

compile-tested only.
11/glxext.c
9157b1e09a8948e9e084ed3ce2a3537a6bac2005 04-Jul-2008 Alan Hourihane <alanh@tungstengraphics.com> glcontextmodes.c is required remove the reference in .gitignore
11/.gitignore
4ba39c40aef45be5d534676c8661e90808deb602 07-Jun-2008 Alan Coopersmith <alan.coopersmith@sun.com> Fix builds with compilers other than gcc 3.0 & newer

Add #include "glheader.h" for definition of __builtin_expect for compilers
that don't support it.

Signed-off-by: Brian Paul <brian.paul@tungstengraphics.com>
11/indirect_vertex_program.c
11/pixelstore.c
11/singlepix.c
1087cc61b3776f4cdc991dcd95ee59dbd26307f3 13-Jun-2008 George Sapountzis <gsap7@yahoo.gr> glx: load swrast_dri.so

caveats:

- does not work with old (i.e. libGLcore) xserver:

- made unbindContext a noop

- extensions:

GLX_SGI_make_current_read
GLX_EXT_texture_from_pixmap
GLX_MESA_copy_sub_buffer
11/Makefile
11/dri_glx.c
11/drisw_glx.c
11/glxclient.h
11/glxext.c
4297413656dd932a6bc2b56e16a2633ae8e712cd 13-Jun-2008 George Sapountzis <gsap7@yahoo.gr> glx: use ErrorMessageF
11/dri_glx.c
6f7ed99b306990f284f9d57c0b66efaa7f2277e1 12-Jun-2008 Alan Hourihane <alanh@tungstengraphics.com> revert the DRI2 commits
11/Makefile
11/XF86dri.c
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_common.h
11/dri_glx.c
11/glcontextmodes.c
11/glcontextmodes.h
11/glx_pbuffer.c
11/glx_texture_compression.c
11/glxclient.h
11/glxcmds.c
11/glxcurrent.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
11/glxhash.c
11/glxhash.h
11/indirect.c
11/indirect.h
11/indirect_init.c
11/indirect_texture_compression.c
11/indirect_vertex_array.c
11/indirect_vertex_array_priv.h
11/singlepix.c
11/xf86dri.h
11/xfont.c
5e9fe62c7090768b82a3cc905d1da6b623304b50 11-Jun-2008 Alan Hourihane <alanh@tungstengraphics.com> add missed files for DRI2 merge
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_common.c
11/dri_common.h
11/glxcurrent.c
11/glxhash.c
11/glxhash.h
11/indirect_texture_compression.c
11/indirect_vertex_array_priv.h
1bcb817167773d6a148dd4b2cd63777d0f072c08 11-Jun-2008 Alan Hourihane <alanh@tungstengraphics.com> Hook gallium i915 up to DRI2
11/Makefile
4566b006f1a6bbdb96871e511e10e16f18bad23e 10-Jun-2008 Alan Hourihane <alanh@tungstengraphics.com> Bring in DRI2 changes
11/Makefile
11/XF86dri.c
11/dri_glx.c
11/glcontextmodes.c
11/glcontextmodes.h
11/glx_pbuffer.c
11/glx_texture_compression.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
11/indirect.c
11/indirect.h
11/indirect_init.c
11/indirect_vertex_array.c
11/singlepix.c
11/xf86dri.h
11/xfont.c
17ec0dbd7575de749377f6b33075e087ebe9fc9f 10-Jun-2008 Roland Scheidegger <sroland@tungstengraphics.com> copy msaa visuals capability
11/glcontextmodes.c
d85f1e95d32777e8b5e5fa818caff4bb5afe46eb 10-Jun-2008 Roland Scheidegger <sroland@tungstengraphics.com> copy msaa visuals capability
11/glcontextmodes.c
906e189bd362399f1ffc4d5421ae0d0abd586977 09-Jun-2008 George Sapountzis <gsap7@yahoo.gr> glx: use goto's vs. nested if's ala xserver

compile tested only
11/dri_glx.c
079345703901b497f2c09714051b33bb2dff1b4f 09-Jun-2008 George Sapountzis <gsap7@yahoo.gr> glx: add dri_common.c ala xserver

also drop driFilterModes which is unused

in preparation of loading swrast_dri.so
11/Makefile
11/dri2_glx.c
11/dri_common.c
11/dri_common.h
11/dri_glx.c
f82d5cf76929ed2de29966117f97774b465d6b0d 06-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: disable visual warning unless LIBGL_DEBUG is defined
11/glxext.c
b2a9788ec6f4be8fa6cd2d213288d5488878be47 05-Jun-2008 Alan Hourihane <alanh@tungstengraphics.com> Silence warning
11/glx_pbuffer.c
5429d4a04a90f1e8664336143985973729a97768 28-May-2008 Brian Paul <brian.paul@tungstengraphics.com> replace make with $(MAKE) (bug 16133)
11/Makefile
77ce568ff704e6cdcfaa557965c894752d19e462 26-May-2008 José Fonseca <jrfonseca@tungstengraphics.com> Remove CVS keywords.
ini/miniglx_events.c
11/XF86dri.c
11/clientattrib.c
11/compsize.c
11/dri_glx.c
11/eval.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/indirect_init.h
11/packrender.h
11/packsingle.h
11/pixel.c
11/pixelstore.c
11/render2.c
11/renderpix.c
11/single2.c
11/singlepix.c
11/vertarr.c
11/xf86dri.h
11/xf86dristr.h
11/xfont.c
1b359bc88e4f98f9aab454c270684172ae0e46ca 20-May-2008 Kristian Høgsberg <krh@redhat.com> Revert "glapi: Generate xserver glapi sources in the mesa tree"

This reverts commit 7688791fc52f116eea421fda1d17aba5cf10977b, and takes
us back to generating the glapi files straight into the xserver tree.

Conflicts:

src/glx/x11/indirect_size_get.c
11/indirect_dispatch.c
11/indirect_dispatch.h
11/indirect_dispatch_swap.c
11/indirect_reqsize.c
11/indirect_reqsize.h
11/indirect_size_get.c
11/indirect_size_get.h
11/indirect_table.c
1bb30b02dd7610fb1094491c232e8dd4497a931a 18-May-2008 Brian Paul <brian.paul@tungstengraphics.com> Regenerated API dispatch files

Follow on to cherry-pick from master
11/indirect.c
11/indirect.h
11/indirect_init.c
5dbbde5b222204fa8dfc086b88a8105516f7d727 06-May-2008 Dan Nicholson <dbn.lists@gmail.com> Default DRI driver directory to match X.Org xserver

Since the only valid consumer of the DRI drivers is the X.Org xserver,
this changes the default DRI driver directory to match xorg-server:
${libdir}/dri. The old default of /usr/X11R6/modules/dri was wrong for
nearly all current systems.
11/dri_glx.c
a6464b3cb08b86d5fc537a4907849546a63ae4da 07-May-2008 Dan Nicholson <dbn.lists@gmail.com> Never fail `make clean'

Mostly some pedantic changes such that `make clean' always ignores
errors. Also changed the top clean target to do the `touch
configs/current' dance instead of realclean.
akefile
c5e2b850ad53fcd1af62c838f8ee288e8ea9fb3d 06-May-2008 Dan Nicholson <dbn.lists@gmail.com> Always cleanup the makedepend backup files

Consistently cleanup the depend.bak files created by makedepend. Also,
realclean has been changed to use a single find command, which speeds it
up considerably.
ini/Makefile
11/Makefile
cba14d85a854df8b5f24342c072acf21813761b6 06-May-2008 Dan Nicholson <dbn.lists@gmail.com> Error consistently when running recursive make

When changing directories and running a sub-make, ensure that both the
cd and make commands propagate errors to the parent make.
akefile
6497d50924230e6b96929c8da0c2bd7287b70d8a 23-Apr-2008 Alan Hourihane <alanh@tungstengraphics.com> include <X11/Xlib.h>
11/dri2_glx.c
11/dri_glx.c
f027f8d3a832f9820acba8892e2540094b01c9ae 18-Apr-2008 George Sapountzis <gsap7@yahoo.gr> glx: nitpick renames
11/Makefile
11/glx_texture_compression.c
11/indirect_texture_compression.c
11/indirect_va_private.h
11/indirect_vertex_array.c
11/indirect_vertex_array_priv.h
df04ffbf025994abd59e26c8439e77bb340ef20b 18-Apr-2008 George Sapountzis <gsap7@yahoo.gr> glx: split out current context code

also clean header inclusion after code movement
11/Makefile
11/dri2_glx.c
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
11/glxcurrent.c
11/glxext.c
23635510e3333ea8056311afa741c5e6d7c9ec15 10-Apr-2008 Michel Dänzer <michel@tungstengraphics.com> Get the default GLXPixmap texture target from the server when appropriate.

Fixes compiz with direct rendering when both GLX_TEXTURE_2D_EXT and
GLX_TEXTURE_RECTANGLE_EXT are supported for a GLXPixmap and the
application didn't specify the texture target as a GLX drawable attribute
when creating the GLX drawable.
11/glx_pbuffer.c
2771862adcbc163c0a3f3eaaf4b58c658e72f680 09-Apr-2008 Jie Luo <clotho67@gmail.com> Handle fbconfig comparison correctly for attributes the X server didn't send.
11/dri_glx.c
11/glcontextmodes.c
c016f329abb3d638442bf0b0f27d8f34ebf54f86 09-Apr-2008 Kristian Høgsberg <krh@redhat.com> Only convert configs if screen creation was successful.

Thanks to Adam Jackson for pointing it out.
11/dri_glx.c
e786924bf08583f74fff135a211c040843abd0bb 03-Apr-2008 Kristian Høgsberg <krh@redhat.com> Pick up dri2proto from the standard proto header include path.
11/dri2.c
dc836edf49a08a7fd77fc1f127818b0550558581 03-Apr-2008 Kristian Høgsberg <krh@redhat.com> Initialize GLX_EXT_texture_from_pixmap attributes correctly.
11/dri_glx.c
e82dd8c6e1fa2fff5b960de26961080ba5e9651d 27-Mar-2008 Kristian Høgsberg <krh@redhat.com> DRI interface changes and DRI2 direct rendering support.

Add DRI2 direct rendering support to libGL and add DRI2 client side
protocol code. Extend the GLX 1.3 create drawable functions in
glx_pbuffer.c to call into the DRI driver when possible.

Introduce __DRIconfig, opaque struct that represents a DRI driver
configuration. Get's rid of the open coded __GLcontextModes in the
DRI driver interface and the context modes create and destroy
functions that the loader was requires to provide. glcore.h is no
longer part of the DRI driver interface. The DRI config is GL binding
agnostic, that is, not specific to GLX, EGL or other bindings.

The core API is now also an extension, and the driver exports a list
of extensions as the symbol __driDriverExtensions, which the loader
must dlsym() for. The list of extension will always include the DRI
core extension, which allows creating and manipulating DRI screens,
drawables and contexts. The DRI legacy extension, when available,
provides alternative entry points for creating the DRI objects that
work with the XF86DRI infrastructure.

Change DRI2 client code to not use drm drawables or contexts. We
never used drm_drawable_t's and the only use for drm_context_t was as
a unique identifier when taking the lock. We now just allocate a
unique lock ID out of the DRILock sarea block. Once we get rid of the
lock entirely, we can drop this hack.

Change the interface between dri_util.c and the drivers, so that the
drivers now export the DriverAPI struct as driDriverAPI instead of the
InitScreen entry point. This lets us avoid dlsym()'ing for the DRI2
init screen function to see if DRI2 is supported by the driver.
11/Makefile
11/dri2.c
11/dri2.h
11/dri2_glx.c
11/dri_glx.c
11/glx_pbuffer.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
ae2c31ed669abab66a8c4b68d8d746e94b9ebf28 18-Mar-2008 Xiang, Haihao <haihao.xiang@intel.com> glx: Add isDirect back to __GLXcontextRec. It is needed
to check whether oldGC is used for direct rendering in
function MakeContextCurrent. However it is possible
oldGC->driContext is already freed. fix bug #14926.
11/glxclient.h
11/glxcmds.c
11/glxext.c
98e13fecd0cb5c13dab0ead424b0f94f318e5a0b 15-Mar-2008 Kristian Høgsberg <krh@redhat.com> Test createNewScreen for NULL, not createNewScreenName in driCreateScreen().
11/dri_glx.c
42c279a03b4d3529efc0d552c37ace2c82306822 14-Mar-2008 Xiang, Haihao <haihao.xiang@intel.com> glx: fix rotation regression. bug #14963
11/dri_glx.c
9110425c72e45f618131b559eba883fd6c5536b4 12-Mar-2008 Kristian Høgsberg <krh@redhat.com> libGL: Pull the drawable hash back out in the generic code.

This will be shared between dri and dri2 code.
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
94f39f2e7cc7f8ef6915a40d14965e5b193d9952 12-Mar-2008 Kristian Høgsberg <krh@redhat.com> Add another missing check for uninitialized DRI.

Spotted by Chris Taylor.
11/glxext.c
fe23dc5ecae87de73f7b5a581868065a4c4ac09b 10-Mar-2008 Kristian Høgsberg <krh@redhat.com> Move make install logic for libGL back into src/mesa/Makefile.

This makes make install work again for non-glx libGL implementations.
The make install logic is split into three sub-targets: install-libgl,
install-osmesa, install-drivers. The install target in src/glx/x11
is then implemented using the src/mesa make install-libgl rule.

Thanks to Dan Nicholson for pointing out the breakage.
11/Makefile
11/gl.pc.in
3731159ec6e1527655d91b3eb364d5c2d252ac60 10-Mar-2008 Kristian Høgsberg <krh@redhat.com> Only try to call DRI function if DRI got initialized properly.
11/glxcmds.c
11/glxext.c
9162bc8f48dfa07ca07b60bc95e36caa2b961c0f 10-Mar-2008 Brian <brian.paul@tungstengraphics.com> remove extra #include of assert.h (bug 14932)
11/glxext.c
20e0a8a1ca8e526f4b9b5e6043456c5aeb8fbc0f 10-Mar-2008 Dave Airlie <airlied@linux.ie> dri: fix function call to add new parameter.

This may not be correct but it should get the build going.
11/dri_glx.c
b0f80254340222829b659df7a77ad6de410cd737 10-Mar-2008 Kristian Høgsberg <krh@redhat.com> Properly revert the libGL loader path breakage.
11/dri_glx.c
03db9c8acb83f7072681876ce5e8d73e1ec922e9 09-Mar-2008 Kristian Høgsberg <krh@redhat.com> libGL: Fall back to DEFAULT_DRIVER_DIR properly.

After commit 6fd82f6fbd208dc7b1839ea408a5fb28589ee622, we would
overwrite the libPath default value with NULL if libGL was running
non-setuid and none of the env vars were set.

Thanks to Magnus Kessler <Magnus.Kessler@gmx.net> for spotting it.
11/dri_glx.c
3d28a2690f3752990be50a25447747e237d7bee9 09-Mar-2008 Kristian Høgsberg <krh@redhat.com> Use _X_HIDDEN to hide a bunch of leaked symbols.
11/dri_glx.c
11/glxcmds.c
11/glxext.c
11/glxhash.c
11/xfont.c
020c64b2cf2973b5cb41e233d2bfbd85f1b699f7 09-Mar-2008 Kristian Høgsberg <krh@redhat.com> Move DRI context functions into dri_glx.c.

Also drop isDirect flag; if gc->driContext is non-NULL, it's direct.
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/indirect.c
11/singlepix.c
20b9230ce1b96ca246850a8088caeffc3f391a0c 09-Mar-2008 Kristian Høgsberg <krh@redhat.com> Move DRI drawable creation into dri_glx.c.
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
92d2a78f8d2d56cfadb4cb5323adec32fe73e353 09-Mar-2008 Kristian Høgsberg <krh@redhat.com> Introduce __GLXDRIscreen so we can start moving function pointers in there.

Temporarily rename the __DRIscreen member to __driScreen. Eventually,
we'll move that into __GLXDRIscreen and only access it in dri_glx.c.
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/glxextensions.c
53dc86363665b9b22f042c5d950b7de0ed02b4c8 09-Mar-2008 Kristian Høgsberg <krh@redhat.com> Move DRI specific parts of CreateContext into dri_glx.c.
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
a1ea6f6198d80f716936a308cfab235f18a014e1 09-Mar-2008 Kristian Høgsberg <krh@redhat.com> Convert driCreateScreen and driDestroyScreen to function pointers.

We avoid leaking the symbols and will be able to replace them with
DRI2 implementation later on.
11/dri_glx.c
11/glxclient.h
11/glxext.c
425f9ed44e576aef27f7ab98968043f7f180d0fd 09-Mar-2008 Kristian Høgsberg <krh@redhat.com> Abstract __DRIdisplayPrivateRec away in dri_glx.c.

This patch moves __DRIdisplayPrivateRec definition into dri_glx.c and
let's dri_glx.c allocate the __DRIdisplay struct pointer to from
__GLXdisplayPrivate.

A small step towards moving more of the dri functionality into dri_glx.c.
11/dri_glx.c
11/dri_glx.h
11/glxclient.h
11/glxcmds.c
11/glxext.c
f585cb29b827104b9ea04cb11e3e3087ef1684c0 08-Mar-2008 Kristian Høgsberg <krh@redhat.com> Make __glXCloseDisplay static instead of prototyping it to avoid warning.
11/glxext.c
47d563006de646b039c456ffc8379ca8ded3d5a5 08-Mar-2008 Kristian Høgsberg <krh@redhat.com> Move libGL install target to the libGL Makefile.
11/Makefile
11/gl.pc.in
6fd82f6fbd208dc7b1839ea408a5fb28589ee622 07-Mar-2008 Kristian Høgsberg <krh@redhat.com> Simplify LIBGL_DRIVERS_PATH walking.
11/dri_glx.c
0f2723cacbaf9b27ecb8d13581f4b72ff86dd911 07-Mar-2008 Kristian Høgsberg <krh@redhat.com> Simplify dri loading code by eliminating dlopen "cache".

No need to jump through hoops to track __DRIdrivers and avoid dlopening the
same .so more than twice, dlopen() does this internally. Besides, we
were already bypassing this and dlopening drivers for each screen,
whether or not they were already dlopened.
11/dri_glx.c
11/dri_glx.h
11/glxclient.h
11/glxext.c
890d44e54f2c800f066f59eb074ad09e14d54483 07-Mar-2008 Kristian Høgsberg <krh@redhat.com> libGL: Consolidate DRI initialization in dri_glx.c

Move a lot of code over from glx_ext.c.
11/dri_glx.c
11/glxclient.h
11/glxext.c
3c5a1e4c2d20da0e8581df22d82a45a4156e0894 29-Feb-2008 Kristian Høgsberg <krh@redhat.com> Update libGL DRI loader to latest DRI interface changes.
11/glxclient.h
11/glxcmds.c
11/glxext.c
bcecea6ea6c2727e4071f5a43fab49673573e905 26-Feb-2008 Kristian Høgsberg <krh@redhat.com> autoconf: Add gcc search patch to MKDEP_OPTIONS to eliminate warnings.

Also, use -include to avoid error message when make initially fails to
include the non-existent depend file.
11/Makefile
6e8d21d72f35767e07081a8bee4323aaaf5e2aae 25-Feb-2008 Kristian Høgsberg <krh@redhat.com> Remove GetMSC DriverAPI function.

The DriverAPI is internal to the DRI drivers and GetDrawableMSC
obsoletes GetMSC. Also, since the DRI driver interface has not yet
been released, just drop the getMSC function from the DRI interface
instead using the ABI preserving version mechanism.

Finally, using void pointer privates in the DRI interface is not allowed,
always pass the actual types around (__DRIdrawable in this case) to
enhance type safety and readability of the code.
11/glxcmds.c
a3a480979b0d8688285d6b8632e02dd6d37071a3 19-Feb-2008 Brian <brian.paul@tungstengraphics.com> Regenerated (see bug 11893)
11/indirect_size_get.c
fda62a6f2fa2817cba6a32edbfbaf2636d1782a3 19-Feb-2008 Brian <brian.paul@tungstengraphics.com> Regenerated (raise GL_INVALID_VALUE if counter param is negative)
11/indirect.c
90b2beb661f630966788a6e909dc759c99e38973 19-Feb-2008 José Fonseca <jrfonseca@tungstengraphics.com> Simplify makefile boilerplate code.

Don't define ASM_SOURCES variable globally -- reserve that variable to be defined
locally by makefiles, together with C_SOURCES and CPP_SOURCES.
11/Makefile
7688791fc52f116eea421fda1d17aba5cf10977b 16-Jan-2008 Dan Nicholson <dbn.lists@gmail.com> glapi: Generate xserver glapi sources in the mesa tree

Instead of generating the glapi sources for the xserver and commiting
them to the xserver tree, we can keep them in the mesa tree and change
the xserver build to use the files from the mesa tree.

This makes the xserver glx build more robust as it reduces the chances
for mismatches of the glX API used in the xserver vs. in mesa.
11/indirect_dispatch.c
11/indirect_dispatch.h
11/indirect_dispatch_swap.c
11/indirect_reqsize.c
11/indirect_reqsize.h
11/indirect_size_get.c
11/indirect_size_get.h
11/indirect_table.c
4875b4030490d7756d607d42821deed0035e1ec4 24-Jan-2008 Brian <brian.paul@tungstengraphics.com> Assorted patches for miniglx/linux-solo (Gavin Li <codeview@gmail.com>)
ini/Makefile
5c82549d9e3151aae4f66f2a26b6055475f6f538 22-Jan-2008 Brian <brian.paul@tungstengraphics.com> fix pc vs. gc->ps usage (bug 14197)
11/indirect_vertex_array.c
eaa82d33bffda1fb9a787b92b5f1a2d15c99f045 12-Dec-2007 José Fonseca <jrfonseca@tungstengraphics.com> Add src/mesa to include path.
11/Makefile
62f6e550138ebccbdeb8dd044eabf757d5482126 06-Dec-2007 Michel Dänzer <michel@tungstengraphics.com> Minor followup fixes for the previous commit.
11/dri_glx.c
17afc800c9b69997ae7ba52b67c021f68066e008 06-Dec-2007 George Nassas <gnassas@gmail.com> Always call dlopen in DriverOpen.

This increases the reference count for the driver binary, preventing it from
getting unloaded prematurely in driDestroyDisplay. See
https://bugs.freedesktop.org/show_bug.cgi?id=13541 .
11/dri_glx.c
11/glxclient.h
16099c15f5495f22252c6bed655f7f598ebf8001 28-Nov-2007 WuNian <nian.wu@intel.com> remove drawable from hash table when window is deleted (see bug 13091)
11/glxcmds.c
42108629e80c4ad39da80dca1853c20fd65ad22c 25-Nov-2007 Michel Dänzer <michel@tungstengraphics.com> libGL: Make sure a valid value is returned for GLX_BIND_TO_MIPMAP_TEXTURE_EXT.

If the server didn't send a value, assume it's not supported.

A more generic solution might be better for this kind of problem, but an
attempt for this failed (see https://bugs.freedesktop.org/show_bug.cgi?id=9264)
and this allows compiz to work with drivers that support
GL_EXT_framebuffer_object.
11/glcontextmodes.c
7b3ab451a81c6558a00c9c19022e9493fd70b6d9 09-Nov-2007 Roland Scheidegger <sroland@tungstengraphics.com> recreate from changed gl_API.xml
11/indirect.c
11/indirect.h
11/indirect_init.c
286ce2719395485ffafb38097fa2551b066acd96 06-Nov-2007 Kristian Høgsberg <krh@redhat.com> Fix compilation for !GLX_DIRECT_RENDERING.
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/xfont.c
001de0ac4e9ccd5c440dca4a2994deca668a2d9f 06-Nov-2007 Kristian Høgsberg <krh@redhat.com> Remove a couple of "deprecated" fields from __GLXcontextRec.

The __GLXcontextRec struct is internal to the libGL implementation. No point
in "deprecating", just get rid of it.
11/glcontextmodes.c
11/glcontextmodes.h
11/glxclient.h
11/glxcmds.c
866d271aa848d33dfded4989c48ba46108d6cceb 06-Nov-2007 Kristian Høgsberg <krh@redhat.com> Don't return 0 in a void function.
11/glxext.c
559ae0ab1b68682716b39d93402a6b9e90c88127 06-Nov-2007 Kristian Høgsberg <krh@redhat.com> Pass the visual id to XF86DRICreateContextWithConfig(), not fbconfig id.
11/glxcmds.c
8e66c3d7552bf33163bb8ac2a6d3963bad1b0eb4 05-Nov-2007 Kristian Høgsberg <krh@redhat.com> Lookup visual in visual list, not fbconfig list.

Also, handle visual not found error case by throwing X error.
11/glxcmds.c
e2c2df5c23fe718d319cf59ba91eea7abc0455b6 05-Nov-2007 Kristian Høgsberg <krh@redhat.com> Filter both visuals and fbconfigs against driver supported configs.
11/glxext.c
d2f19a554a9089fddb5e978e3a732bbf71d77f93 30-Oct-2007 Michel Dänzer <michel@tungstengraphics.com> Fix some build warnings, mostly with XCB.
11/glxext.c
11/indirect.c
ad8ee7db3b406b23136873fc8c87a22e4d8b94de 29-Oct-2007 Jesse Barnes <jesse.barnes@intel.com> Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa
38fdb47d26055e19d50cd407266b56ed4317ae0a 29-Oct-2007 Jesse Barnes <jesse.barnes@intel.com> Refactor and fix core vblank support

Consolidate support for synchronizing to and retrieving vblank counters. Also
fix the core vblank code to return monotonic MSC counters, which are required
by some GLX extensions. Adding support for multiple pipes to a low level
driver is fairly easy, the Intel 965 driver provides simple example code (see
intel_buffers.c:intelWindowMoved()).

The new code bumps the media stream counter extension version to 2 and adds a
new getDrawableMSC callback. This callback takes a drawablePrivate pointer,
which is used to calculate the MSC value seen by clients based on the actual
vblank counter(s) returned from the kernel. The new drawable private fields
are as follows:
- vblSeq - used for tracking vblank counts for buffer swapping
- vblFlags - flags (e.g. current pipe), updated by low level driver
- msc_base - MSC counter from the last time the current pipe changed
- vblank_base - kernel DRM vblank counter from the last time the pipe changed

Using the above variables, the core vblank code (in vblank.c) can calculate a
monotonic MSC value. The low level DRI drivers are responsible for updating
the current pipe (by setting VBLANK_FLAG_SECONDARY for example in vblFlags)
along with msc_base and vblank_base whenever the pipe associated with a given
drawable changes (again, see intelWindowMoved for an example of this).

Drivers should fill in the GetDrawableMSC DriverAPIRec field to point to
driDrawableGetMSC32 and add code for pipe switching as outlined above to fully
support the new scheme.
11/glxcmds.c
1421bffb180e2e1a8f0c16f61768805666492ed2 29-Oct-2007 Chris Rankin <rankincj@yahoo.com> Remember to call XSync() before resetting X error handler.
11/glxcmds.c
6c753ad51d05fcff260fcf8cccf613d47027171f 17-Oct-2007 Kristian Høgsberg <krh@redhat.com> Pull workaround for unset GLX_DRAWABLE_TYPE back in.

The old version just set GLX_DRAWABLE_TYPE to GLX_WINDOW_BIT for
configs received through glXGetVisualConfigs and to
GLX_WINDOW_BIT | GLX_PIXMAP_BIT for configs received as FBConfigs.
The X server needs to send this info, but keep the workaround for now.

Fixes #12835.
11/glxext.c
6c533ea2d1953152f7d95d6c984e0d287edb46c2 16-Oct-2007 Kristian Høgsberg <krh@redhat.com> Handle fbconfigs and glx visuals separately.

The old implementation fetches fbconfigs or glx visuals once and assumes the list
describes both fbconfigs and glx visuals. This patch splits it up and fetches
visuals and fbconfigs in two steps and keep the two lists separate. A server
could have no glx visuals or no glx fbconfigs and the old code wouldn't know the
difference.
11/glxclient.h
11/glxcmds.c
11/glxext.c
7a88ecbd1aae1b64ddb3c5dad15276b044e5e6af 15-Oct-2007 Kristian Høgsberg <krh@redhat.com> Roll back premature version bump.
11/xf86dristr.h
a87e9a3479aa8fc2d3aab7ee848224418b04bde3 30-Aug-2007 Kristian Høgsberg <krh@redhat.com> Dont add fbconfigs to array that we didn't allocate for.
11/glxcmds.c
d7c137b0df8e27131b69872eb957e56f692cf551 14-Oct-2007 George Sapountzis <gsap7@yahoo.gr> Drop include "dri_interface.h" from xf86dri.h

Thanks to dri2, xf86dri no longer uses __DRI types.
11/xf86dri.h
8b2041191517a7aeaaa77a6896cdd15f97c4c100 27-Aug-2007 Kristian Høgsberg <krh@redhat.com> Get the width and height from the attrib list in glXCreatePbuffer.
11/glx_pbuffer.c
ecdb45cb29e3209287cc297081596126e955ff2b 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Convert a left-over private void * to __DRIcontext *.
11/glxcmds.c
3eaec7dc5d9b859cd394288ba73ae7e692f26a50 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move enabling of DRI extensions into glxextensions.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
594006d8b2960b9e49b57c02682289ae900ffc71 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Remove now unused getProcAddress from DRIinterfaceMethods.
11/glxext.c
f968f67e6214416f04b8875ce59a94a02f464c81 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Add a DRI_ReadDrawable marker extension to signal read drawable capability.
11/glxext.c
106a6f29bbdc71982afd629bdf89369cefd1459e 17-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move media stream counter entry points to new extension.
11/glxclient.h
11/glxcmds.c
11/glxext.c
a7a0a2beb54dcb78d7e0ab64cf2f5a6ede8191a4 16-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move GLX_MESA_swap_frame_usage DRI entry points to the new mechanism.
11/glxclient.h
11/glxcmds.c
11/glxext.c
78a6aa57a0155d72280dd91c05513c847bf76f3b 16-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move GLX_MESA_allocate_memory related functions to new extension mechanism.
11/glxclient.h
11/glxcmds.c
11/glxext.c
efaf90b03e8b69e04909bce071f8ef6b65cc0e9d 15-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move swap_interval to new extension mechanism.
11/glxclient.h
11/glxcmds.c
11/glxext.c
ac3e838fa748c8c8a6ffc04d1ab13da71f75f103 15-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Move the copySubBuffer extension over to the new mechanism.
11/glxclient.h
11/glxcmds.c
11/glxext.c
f616a263a25eda135800bea7d3a863c569b93e30 15-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Implement new screen extension API.

This new API lets the loader examine DRI level extensions provided by the
driver in a forward compatible manner.

Much of the churn in the DRI interface is adding support for new
extensions or removing old, unused extensions. This new extension
mechanism lets the loader query the extensions provided by the driver
and implement the extensions it knows about. Deprecating extensions
is done by not exporting that extension in the list, which doesn't
require keeping old function pointers around to preserve ABI.
11/glxext.c
295dc2d225ccac1951c0fcc2c08119f31d1b575c 14-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Stop passing in unused fbconfigs to createNewScreen.
11/glxext.c
5987a03f994af2bb413d1cf984ab01aa095c0943 11-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Convert all DRI entrypoints to take pointers to __DRI* types.

The entrypoints take a mix of __DRIscreen * and void * (screen private)
arguments (similarly for contexts and drawables). This patch does away
with passing the private void pointer and always only passes the fully
typed __DRIscreen pointer and always as the first argument.

This makes the interface more consistent and increases type safety, and
catches a bug where we would pass a screen private to DRIdrawable::getSBC.
11/glxcmds.c
11/glxext.c
aac367f48afc62176faf67aa6f329fbeae2004b4 11-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Remove screenConfigs from __DRIscreen.

The screenConfigs field of __DRIscreen points back to the containing
__GLXscreenConfigs struct. This is a serious abstraction violation; it
assumes that the loader is libGL and that there *is* a __GLXscreenConfigs
type in the loader.

Using the containerOf macro, we can get from the __DRIscreen pointer to
the containing __GLXscreenConfigs struct, at a place in the stack
where the above is a valid assumption. Besides, the __DRI* structs shouldn't
hold state other than the private pointer.
11/glxext.c
11/glxextensions.c
11/glxextensions.h
fa72013adaab4d0755e852805e2e44d1a879a204 11-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Drop mostly unused __DRIid typedef.
11/XF86dri.c
11/glxcmds.c
11/xf86dri.h
9590ba97ad6606a96b50a66242f606c860ca239d 11-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Avoid deadlock in GarbageCollectDRIDrawables.

__glXinitialize() can't be called with the GLX lock held. Just
pass in the __GLXscreenConfigs pointer so we don't have to look it
up in __GLXdisplayPrivate.
11/glxcmds.c
8ed5c7ca0572a09375bdfd411c3804456dac78d6 11-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Drop createContext and destroyContext from DRIinterfaceMethods.

As for createDrawable and destroyDrawable, these functions immediately
upon entry to driCreateNewContext and immediately before exit from
driDestroyContext. Instead of passing function pointers back and forth
just obtain the drm_context_t prior to calling DRIscreen::createNewContext
and pass it as a parameter.

This change also lets us keep the DRI context XID in the libGL loader only.
11/glxclient.h
11/glxcmds.c
11/glxext.c
4ff95e78e19e5902352ea3759d32d9f013255f42 10-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Drop createDrawable and destroyDrawable fron DRIinterfaceMethods.

All the DRI driver did was call the createDrawable callback immediately
upon entry to DRIscreen::createNewDrawable to get the drm_drawable_t.
We can just call that before calling into the DRI driver and pass the
returned drm_drawable_t as an argument to the DRI entry point.

Likewise for destroyDrawable.

Also, DRIdrawablePrivate::draw isn't used anywhere, and since the
driver no longer needs the XID of the drawable we can now drop that.
11/glxcmds.c
11/glxext.c
aceccda56b08338e217991e54607f1c9f18fc3e6 10-May-2007 Kristian Høgsberg <krh@hinata.boston.redhat.com> Drop __DRInativeDisplay and pass in __DRIscreen pointers instead.

Many DRI entry points took a __DRInativeDisplay pointer and a screen
index as arguments. The only use for the native display pointer was to
pass it back to the loader when looking up the __DRIscreen for the given
screen index.

Instead, let's just pass in the __DRIscreen pointer directly, which
let's drop the __DRInativeDisplay type and the getScreen function.

The assumption is now that the loader will be able to retrieve context
from the __DRIscreen pointer when necessary.
11/XF86dri.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/xf86dri.h
b42152061c50e870dc2698ea1d860980ce1198b1 01-May-2007 Kristian Høgsberg <krh@redhat.com> Add macros to generate CreateNewScreen entrypoint.
11/dri_glx.c
4a22ae8d446855d839cc199df8eb1b057045cb88 07-Jan-2007 Kristian Høgsberg <krh@redhat.com> Remove XIDs from DRI interface (see #5714).
11/XF86dri.c
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/glxhash.c
11/xf86dristr.h
4ceefccbfa180d19e27716bf7f282d0438ac34bd 29-Apr-2007 Kristian Høgsberg <krh@redhat.com> Pull in the drm hash.
11/Makefile
11/glxhash.c
11/glxhash.h
2a3e33865dd9a3d064a3c0af94ef11d4aa4a6ce4 29-Sep-2007 Dan Nicholson <dbn.lists@gmail.com> add support for LDFLAGS env var
ini/Makefile
11/Makefile
d62be3d4cac4228a74fd93a5588717b8b8468cc6 27-Aug-2007 Colin McDonald <cjmcdonald@qinetiq.com> fixed problem with big glDrawArrays (see bug 12141)
11/indirect_vertex_array.c
a6d4dddb38e2342a6f80d7a241f23900b8b4c633 16-Aug-2007 Roland Scheidegger <sroland@tungstengraphics.com> suppress warning about ncon visuals (bug #6689)
11/glxext.c
90ee7a41443a971d6ff2e0a6e90997806c28d11b 07-Aug-2007 Keith Whitwell <keith@tungstengraphics.com> Gutsy oopses on touch of existing file. Workaround.
ini/Makefile
11/Makefile
0b11203038d0bc978c1a7ae0b55f67bb92a680cd 05-Jun-2007 Dave Airlie <airlied@linux.ie> miniglx: implement GetProcAddressARB in miniglx as an alias for GPA
ini/miniglx.c
57ca033885b0474fff02903d13d6ad6333dc4810 17-May-2007 Brian <brian@yutani.localnet.net> get rid of needless static function declarations at top of file
11/glx_pbuffer.c
7fcf231c57b3f24bc5b4bedc345f43ac6c00cf84 17-May-2007 Brian <brian@yutani.localnet.net> In DestroyPbuffer(), use GetReq() intead of GetReqExtra(). See bug 10983.
11/glx_pbuffer.c
6efdf648f51fd1ae27043b2c59e9965467fb1ddb 14-May-2007 Bruce Merry <bmerry@gmail.com> in __glXGetArrayType() return type, not enabled (bug 10938)
11/indirect_vertex_array.c
47e33a27dfabd752dbd3ff5fbb9ba9ba32976ebe 08-May-2007 Dave Airlie <airlied@linux.ie> miniglx: fixup use of create windows x and y coordinates

This makes miniglx take not of the x and y from XCreateWindow
ini/miniglx.c
ae5f67575d4696633a877e88e42499c42d8d5238 05-May-2007 Brian <brian@yutani.localnet.net> Makefile clean-ups for miniglx.
ini/Makefile
702c8f1e6ca51aef356e89ee9c5f2e99a4191a8a 09-Apr-2007 Brian <brian@yutani.localnet.net> remove unneeded initialization code (see bug 10569)
11/glxext.c
f9574c3f6bd982f039b4c3ec3bb278cc3d043d29 09-Apr-2007 Brian <brian@yutani.localnet.net> allocate __GLXdisplayPrivate w/ Xcalloc instead of Xmalloc (bug 10569)
11/glxext.c
d8bfc42bb778e46e64569a6f621e9d41ddca2e59 08-Apr-2007 Adam Jackson <ajax@benzedrine.nwnk.net> Make sure GLX entrypoints are marked PUBLIC.

Fedora bug #229808.
11/dri_glx.c
11/glxext.c
ca7885f7337141b50abd8f64d8773cabbf0256fe 08-Apr-2007 Wei Wang <wei.z.wang@intel.com> fix bug 9823: GL_CLIENT_ATTRIB_STACK_DEPTH query fails for indirect rendering
11/single2.c
4647f13c43a1f4f4dba60a609c370fb0a614bf49 08-Apr-2007 Brian <brian@i915.localnet.net> fix etags command to find headers
11/Makefile
487f7a73cbb8534ab163ef8a3549caa71684b607 05-Apr-2007 George Sapountzis <gsap7@yahoo.gr> Remove SI imports/exports remnants.
ini/driver.h
aa1c79eaea96283e3ac7bae513b8d7535b875ce9 05-Apr-2007 George Sapountzis <gsap7@yahoo.gr> glx: minor cosmetic in glcontextmodes.c

move memory macros to separate block and unwrap malloc/free for miniglx towards
cleaning Mesa core glitches in glx...
11/glcontextmodes.c
885111518eeb60664b2ac708512dc8b599060280 05-Apr-2007 George Sapountzis <gsap7@yahoo.gr> Move glcontextmodes.c to glx.

It is no longer linked with DRI drivers, libGL passes function pointers through
the DRI interface.
ini/Makefile
11/Makefile
11/glcontextmodes.c
11/glcontextmodes.h
a83593922218b3fc88d3e553f8db079b188bd068 27-Mar-2007 Bernardo Innocenti <bernie@develer.com> always print error messages, unless LIBGL_DEBUG=quiet
11/dri_glx.c
eab92fcdc23a8a9d333227e4c98e6a33a9cc1183 05-Feb-2007 Panagiotis Papadakos <papadako@csd.uoc.gr> fix mem leaks
11/dri_glx.c
11/glxext.c
3805ccf02015e8127748e6f53ae9d7419ae3f633 05-Feb-2007 Panagiotis Papadakos <papadako@csd.uoc.gr> break if we removed driver from Drivers list in driDestroyDisplay

Else we read memory we just released, in for statement.
11/dri_glx.c
af1d1e08e40c8c70dfa81e39724be11da94f938d 01-Feb-2007 Brian <brian@yutani.localnet.net> Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
0930248bb1336064337e636aab0f17ee0f8f7043 01-Feb-2007 Brian <brian@yutani.localnet.net> fix mem leak in __glXReportDamage (Panagiotis Papadakos)
11/glxext.c
8628b382e4ac492d829fe720219187b758add003 01-Feb-2007 Michel Dänzer <michel@tungstengraphics.com> driDestroyDisplay: Fix comment, it is called now.
11/dri_glx.c
bed026e7dda14ac1c555f1fb16d70eadcd1a01fc 01-Feb-2007 Michel Dänzer <michel@tungstengraphics.com> driDestroyDisplay: Remove Drivers list entry when dlclosing its handle.

This fixes a regression from commit f81b1dbe374fe446f6ef676e70a72952ffb47d4e:
Since then, driDestroyDisplay gets called from __glXFreeDisplayPrivate. It
dlcloses the handles associated with the display but fails to remove their
references from the Drivers list, so subsequent calls to OpenDriver return a
stale handle and an invalid createNewScreenFunc pointer. The attempt to call
the latter results in a segfault when running amoeba, e.g.
11/dri_glx.c
876e372567ad44c03b9d9db6e57d3a06b684f6e1 30-Jan-2007 Brian <brian@yutani.localnet.net> regenerated
11/indirect.c
d2c62e6065acf5ab6003f568e543c59a6e4d5cd1 30-Jan-2007 Brian <brian@yutani.localnet.net> s/params/pointer/ for glGetVertexAttribPointer
11/indirect.h
3dd243c59eb48bcf330a5d667d93b93c1226eae2 10-Jan-2007 Eric Anholt <eric@anholt.net> Track rename of DamagePost -> DamageAdd.
11/glxext.c
c2b185cff82a6cdb723cda4e05ffe1a213a9de3e 06-Jan-2007 Eric Anholt <eric@anholt.net> Add reporting of damage by DRI drivers when the extension support is available.

With this, tools like ximagesrc in gstreamer correctly see updates from GL
rendering. Support requires that the Xdamage library be current (but will be
disabled if not present) plus a new X Server with support for the new
XDamagePost request. libGL now has a new interface version, and also links
against libXdamage and libXfixes to support it, but backwards compatibility
is retained.

Currently, all drivers report damage at SwapBuffers time through common code --
front buffer rendering doesn't result in damage being reported. Also, the
damage is against the root window, as our drivers don't yet render to backing
store when they should (composited environments).
11/glxcmds.c
11/glxext.c
8d287d0f5e18246a3c8fbad6101ac32b4eaf6c32 04-Jan-2007 Brian <brian@yutani.localnet.net> s/unsigned/size_t/ (Matthias Hopf)
11/indirect_vertex_array.c
14f92636b00e6961c419e5457151f44853bd297f 06-Dec-2006 Michel Dänzer <michel@tungstengraphics.com> Make git ignore files only generated at build time.
11/.gitignore
c058f69daab817476582f8e04aedf8370f76d724 28-Nov-2006 Dave Airlie <airliedfreedesktop.org> add support to miniglx for updating drawables ..

requires hacks to DRM to remove MASTER from UPDATE_DRAW and ADD_DRAW
ini/miniglx.c
33d2835182f5f8a1f283811cbd13afe79cf6ea21 21-Nov-2006 Alan Hourihane <alanh@tungstengraphics.com> Don't define as const's to avoid compiler optimization & warning.
11/XF86dri.c
4bb39f5899e7f004f6e06cb2f734d7847ab38dda 08-Nov-2006 Dave Airlie <airliedfreedesktop.org> remove drm stuff from libGL, this is now in libdrm 2.3.0
11/glxext.c
83a5c2bf63ef285dea096612f4d84236e9c8d543 03-Nov-2006 Brian Paul <brian.paul@tungstengraphics.com> Update gl_API.xml with OpenGL 2.0 functions, regenerate derived files.
11/indirect.c
11/indirect_vertex_array.c
26b5904d7080618718f9ac112bf3d9135366c4e5 01-Nov-2006 Brian Paul <brian.paul@tungstengraphics.com> disable debug printf
11/glxext.c
48e6fff3a9d97fffa6d2dd63e63ffe94c25d2d96 01-Nov-2006 Keith Whitwell <keith@tungstengraphics.com> merge the (rest of) texmem branch
11/glxext.c
6ae157f9e776400b2cca0552e9028857e0a23f7d 16-Oct-2006 Ian Romanick <idr@us.ibm.com> Fix bug #8563.

Fixes a GLX protocol problem when binding an indirect rendering context
after a direct rendering context. In this case, the oldContetTag sent to
the server should be None, but the currectContextTag stored in the direct
rendering context (i.e., -1) was sent instead.
11/glxext.c
461651357713b1408400669d6a809f2e367182fe 13-Oct-2006 Ian Romanick <idr@us.ibm.com> Fix dumb build errors.

I always build with -DGLX_USE_TLS, so I never hit these paths. glapi.h is
required in some places because _glapi_Dispatch is declared there, but
_glapi_tls_Dispatch is declared in glthread.h.
11/singlepix.c
c28d0f779aec13f937d452de01a1b34a2ec44de8 13-Oct-2006 Brian Paul <brian.paul@tungstengraphics.com> include glapi.h to fix broken build
11/indirect.c
f3f51bc844c8749250724d164722402cb9a07dc7 12-Oct-2006 Ian Romanick <idr@us.ibm.com> Fix bug #4681.

glDeleteTextures and glDeleteTexturesEXT were erroneously listed as
aliases of each other. For anything /except/ GLX protocol they are
aliases. This set of changes allows functions that are functionally
identical but have different GLX protocol to be listed as aliases.

When building with GLX_INDIRECT_RENDERING set, different static
functions are used. These functions determine whether the current
context is direct rendering or not. If the context is direct
rendering, the aliased function (e.g., glDeleteTextures in the case of
glDeleteTexturesEXT) is called. If the context is not direct
rendering, the correct GLX protocol is sent.

For a deeper explanation of what is changed, please see:
http://dri.freedesktop.org/wiki/PartiallyAliasedFunctions
11/indirect.c
11/indirect.h
11/indirect_init.c
11/singlepix.c
d3b257374ef1c367de0e2a38924021818b19a37e 09-Oct-2006 Brian Paul <brian.paul@tungstengraphics.com> added a SyncHandle() call, remove UnlockDisplay() call. (bug 8521)
11/glxext.c
0a0cd3a8ae32fcdfd058969ae288449bbc87ca60 09-Oct-2006 Brian Paul <brian.paul@tungstengraphics.com> Updates for XCB. Bug 8560.
11/glxext.c
11/indirect.c
dba173077e24fc523cf41639284ac0130027b4d0 07-Oct-2006 Ian Romanick <idr@us.ibm.com> Major clean up of MakeContextCurrent

Rearrange most of the internals of MakeContextCurrent. Put all of the code to
bind the new context up front. If that is successful, unbind the old context.
This saves a lot of code and removes some locking crazyiness.

This patch has been tested for indirect rendering with glxinfo, glxgears,
manywin, and wincopy.
11/glxext.c
6921063520006496544b41c916ac82c3c2a87548 05-Oct-2006 Ian Romanick <idr@us.ibm.com> Changes to generated code caused by the previous commits.
11/indirect.c
11/indirect_init.c
11/indirect_size.c
25e441e8e92688e596e4976b32818141d9fa3aab 04-Oct-2006 Brian Paul <brian.paul@tungstengraphics.com> in MakeContextCurrent() use old display pointer for __glXSetupForCommand(), bug 8443
11/glxext.c
07bacc226379dba36b245672af6d680a7d18e58f 27-Sep-2006 Jeremy Kolb <jkolb@freedesktop.org> Update to use the new XCB naming convention.
11/glxext.c
11/indirect.c
d6c675f497950c6fa5afea531e86a25fd115d2a5 31-Aug-2006 Ian Romanick <idr@us.ibm.com> Fix problems with vertex program protocol

There were two sets of bugs in the vertex program (ARB and NV)
protocol. First, several of the ARB functions were missing the
'doubles_in_order="true"' annotation. Second, after the ARB decided
that glVertexAttrib*ARB functions must not alias fixed-function state
for GLSL, Nvidia re-assigned GLX protocol opcodes for
glVertexAttrib*NV (circa Septeber 2004). For some reason gl_API.xml
was never updated to reflect this, and the updated version of the
GL_NV_vertex_program spec never made into the registry.
11/indirect.c
a70d56485a2d0f15ee5b660e8931eb8657535e2d 31-Aug-2006 Ian Romanick <idr@us.ibm.com> Add missing parenthesis so that glXSwapIntervalSGI protocol is
correctly generated.
11/glxcmds.c
8d675aa637a551c634b827b007c18e061d0ae2f6 29-Aug-2006 Ian Romanick <idr@us.ibm.com> Deprecate GL_EXT_vertex_weighting.

Nvidia no longer supports this extension, and they no longer export its
entry points from their libGL. There's no reason for us to keep dragging it
around either.
11/indirect_init.c
fc5b57b71375ef6c117482be036b442c2cb8ab23 29-Aug-2006 Ian Romanick <idr@us.ibm.com> Clean up GLX function exports.

Make functions for the following extensions only accessable via
glXGetProcAddress:

- GLX_EXT_texture_from_pixmap
- GLX_MESA_copy_sub_buffer
- GLX_MESA_release_buffers
- GLX_MESA_swap_control
- GLX_MESA_swap_frame_usage
- GLX_OML_sync_control
- GLX_SGI_make_current_read
- GLX_SGI_swap_control
- GLX_SGI_video_sync
- GLX_SGIX_swap_barrier
- GLX_SGIX_swap_group

Removed all remnants of the following extensions:

- GLX_MESA_set_3dfx_mode
- GLX_SGI_cushion
- GLX_SGIX_dmbuffer
- GLX_SGIX_video_resize
- GLX_SGIX_video_source
- GLX_SUN_get_transparent_index
-
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
3fea5910b9db41252da28bf0ab8ed763d1a129f8 25-Aug-2006 Ian Romanick <idr@us.ibm.com> Add a couple of the missing GL 2.0 functions. Enable GLX protocol for
glBlendEquationSeparateEXT. Add missing enum "get" information for
GL_EXT_texture_filter_anisotropic.
11/glxextensions.c
11/indirect.c
11/indirect.h
11/indirect_init.c
a5f2206077402f0a8700ec1348e09731e53c5bc2 24-Aug-2006 Ian Romanick <idr@us.ibm.com> GL_EXT_paletted_texture functions should alias GL_SGI_color_table functions.

The functions for GL_EXT_paletted_texture that do not share GLX
protocol with GL_ARB_imaging are supposed to alias the similar
functions from GL_SGI_color_table. They didn't. This patch corrects
this problem and enables GLX protocol for both extensions.

Since this removes 3 entries from the dispatch table, this change
creates a lot of changes in the generated files.
11/glxextensions.c
11/glxextensions.h
11/indirect.c
11/indirect.h
11/indirect_init.c
bf83e652f6d023f1cdcf83ec3ebac024dc0032dc 24-Aug-2006 Ian Romanick <idr@us.ibm.com> Add a new offset mode to the GL API XML. This mode, called "assign,"
tells the scripts to assign an available offset to the function. The
important changes are in src/mesa/glapi/gl_XML.py and
src/mesa/glapi/*.xml.

Since the DRI drivers only depend on functions required by the ABI
(e.g., GL 1.2 + ARB_multitexture) having fixed offsets, all functions
not in the ABI use "assign" mode. This has caused the offset of
basically every function outside the ABI to change. I have verified
that a libGL with this patch works with a DRI driver without the patch.

Futher, several function were removed from the dispatch tables
altogether. These are the functions for the following extensions:

GL_SGIS_texture_filter4
GL_SGIS_texture4D
GL_SGIS_detail_texture
GL_SGIS_sharpen_texture
GL_SGIX_sprite
GL_SGIX_instruments
GL_SGIX_framezoom
GL_SGIX_tag_sample_buffer
GL_SGIX_reference_plane
GL_SGIX_flush_raster
GL_SGIX_list_priority
GL_SGIX_fragment_lighting
GL_PGI_misc_hints
GL_EXT_index_material
GL_EXT_index_func
GL_3DFX_tbuffer

This removes 50 functions from the dispatch table.
11/indirect.c
11/indirect.h
11/indirect_init.c
061a3fe34051327fba418cc99599ecff0016ee15 14-Aug-2006 Michel Dänzer <michel@daenzer.net> Bug #7169: Attempt to make libGL symbols visible to drivers.

Some applications end up dlopening libGL without RTLD_GLOBAL, so the libGL
symbols referenced by the driver can't be unresolved when libGL dlopens it.
This attempts to make the libGL symbols visible to the driver by dlopening
libGL (again) with RTLD_GLOBAL before dlopening the driver and dlclosing
the obtained handle afterwards.
11/dri_glx.c
be85fde82b148c4fc3639fcf3cfedb5de9381fc8 10-Aug-2006 Adam Jackson <ajax@freedesktop.org> linux-indirect target fixes.
11/Makefile
11/XF86dri.c
f81b1dbe374fe446f6ef676e70a72952ffb47d4e 15-Jul-2006 Tilman Sauerbeck <tilman@freedesktop.org> fix a memleak (that code block has been commented out for years for unknown reasons)
11/glxext.c
7ef4a07165d49e671f6f569ee87bfe893b1e7fcf 13-Jul-2006 Ian Romanick <idr@us.ibm.com> Move initialization of server_support from __glXProcessServerString to
__glXCalcualteUsableExtensions. By having both callers of
__glXProcessServerString initialize the bit-fields passed in, we guarantee
that the correct amount of data is initialized:

This fixes bugzilla #7353.
11/glxextensions.c
883f9891cb203dd087843b830ab058d6c9e160dc 13-Jul-2006 Brian Paul <brian.paul@tungstengraphics.com> LIB_DIR is now just 'lib' or 'lib64'
Replaced $(LIB_DIR) with $(TOP)/$(LIB_DIR), use LIB_DIR in install targets.
Patch by Hanno Böck.
ini/Makefile
11/Makefile
b8528ea55e7b1f4114ab84e421c4e09b451520b6 12-Jul-2006 Brian Paul <brian.paul@tungstengraphics.com> New config var DRI_DRIVER_SEARCH_DIR to specify where libGL should search
(at runtime) for the DRI drivers.
See bug 2372.
11/dri_glx.c
e77875dcbe3243224f24c2b06c7722fa312445fe 12-Jul-2006 Tilman Sauerbeck <tilman@freedesktop.org> fix a memleak
11/glxext.c
0e794a1bc6885cf569c3dc07b7fd56725aee2c2e 23-Jun-2006 Brian Paul <brian.paul@tungstengraphics.com> New 'install' targets in makefile. See bug 2372.
11/Makefile
c25eb99f95eec9f905a603079603fc6d4252575a 13-Jun-2006 Kristian Høgsberg <krh@redhat.com> Fix all instances of calling __glXSetupForCommand before GetReqExtra.
11/glx_pbuffer.c
d2fb24a6714ca4eacaf50e8741fd9b012f7a3560 12-Jun-2006 Brian Paul <brian.paul@tungstengraphics.com> make do_vertex_attrib_enable() static
11/indirect_vertex_program.c
f2ce358331eeab7973e157fbe61cf6f23fc02f46 12-Jun-2006 Brian Paul <brian.paul@tungstengraphics.com> include glxclient.h to silence missing prototypes warning
11/compsize.c
88cf5aa783fc16043b31bc4cc0744412712dc22f 11-May-2006 Brian Paul <brian.paul@tungstengraphics.com> In __glXPushArrayState() we weren't pushing the index field.
But later, in __glXPopArrayState(), we were using that field to set
the active_texture_unit. The value was garbage and could lead to
things blowing up.
See bug 6863.
11/indirect_vertex_array.c
791e7b385adbe865d0fa7b0aff3672095fdc0c7b 09-May-2006 Brian Paul <brian.paul@tungstengraphics.com> When error-checking 'unit' against num_texture_units, need to use >=, not >.
See bug 6863.
11/indirect_vertex_array.c
015762455764e3b467f0df769d51d0ed0ea3ee2c 02-May-2006 Adam Jackson <ajax@freedesktop.org> Update function signatures for EXT_tfp entrypoints.
11/glxcmds.c
ba23f699f03e45a7519cb41cc853deba686ff8d9 11-Apr-2006 David Reveman <c99drn@cs.umu.se> FBConfig support for EXT_tfp
11/glxext.c
c6f8ae1085c84cd3f9292019b8be12d8f6623426 11-Apr-2006 David Reveman <c99drn@cs.umu.se> Add attrib_list to glXBindTexImageEXT
11/glxcmds.c
342d1de38c25c70f98783a8adc27b2acca2b84ab 11-Apr-2006 David Reveman <c99drn@cs.umu.se> Fix CreateDrawable
11/glx_pbuffer.c
9d3de643d1cd84cd0f48ff72ab7218f20b158c28 07-Apr-2006 Dave Airlie <airliedfreedesktop.org> make miniglx use libdrm properly
ini/Makefile
d25ad506f2c2ce28e7d01b8d3f31c1863ef15d63 07-Apr-2006 Adam Jackson <ajax@freedesktop.org> Coverity #943: Avoid a NULL chase.
11/glx_pbuffer.c
a951c80ae410bfe541cd6733fdef4972ee52dbfd 03-Apr-2006 Dave Airlie <airliedfreedesktop.org> setup to use pci access, comment out size bumps,
sest xres from real width, use new -1 ddx version
ini/miniglx.c
808a678d85d2d4486187d779dcf8a6e38cd884db 03-Apr-2006 Dave Airlie <airliedfreedesktop.org> do a drm lock/unlock sequence after the client close
ini/miniglx_events.c
d61c1cc7c99dd5beaeeea481b5ecba5548de1981 03-Apr-2006 Dave Airlie <airliedfreedesktop.org> add width to struct for width != virtual width
ini/driver.h
cf69d0920226b86f1062bee939f784ec65ef2313 03-Apr-2006 Dave Airlie <airliedfreedesktop.org> make miniglx use libdrm and libpciaccess
ini/Makefile
5ab5517ba8d2d0b4d590b5fe864797b8a8241cc5 03-Apr-2006 Adam Jackson <ajax@freedesktop.org> Coverity #468: Fill in the rest of the error_list to match the error codes
defined in glxproto.h. Avoids reading semi-random memory (and probably
crashing) when calling __glXErrorString().
11/glxext.c
f2ad1b60c0da11283b399008f491792790cea294 31-Mar-2006 Brian Paul <brian.paul@tungstengraphics.com> Dave Reveman's patch for GLX_MESA_copy_sub_buffer support
11/glxcmds.c
11/glxextensions.c
2a0d441ebb732496c2fd7d381bc19540803bbb77 14-Mar-2006 Brian Paul <brian.paul@tungstengraphics.com> Set always_array=true for glGenProgramsNV (Dave Reveman)
11/indirect.c
841a823d6ded26585aaecbc69a937b1ece8fccb2 09-Mar-2006 Brian Paul <brian.paul@tungstengraphics.com> s/GLint/int/, to fit GLX conventions
11/glxcmds.c
0d57301ba20568953b9196a4e191cd5656b22370 09-Mar-2006 Brian Paul <brian.paul@tungstengraphics.com> Instead of adding extra flags to DEFINES with +=, define EXTRA_DEFINES instead.
This eliminates a bunch of duplication in the compilation commmands.
11/Makefile
1aad408b5a0f4b7253790d437b7e8d8ad4c80131 24-Feb-2006 Brian Paul <brian.paul@tungstengraphics.com> EXT_framebuffer_object (Dave Reveman)
11/glxextensions.c
11/glxextensions.h
d5aca8bf0cbfc23d8cede95a19909605277f6a7b 15-Feb-2006 Brian Paul <brian.paul@tungstengraphics.com> remove stray 'foo' line
11/indirect_vertex_array.c
0c1438d331051010e8f12f0bbee03b4659b0b598 14-Feb-2006 Brian Paul <brian.paul@tungstengraphics.com> replace size_t * w/ unsigned int * (Jurg Billeter)
11/indirect_vertex_array.c
42725d6f545087d094b1479d1ebcbd45ec6ac15c 07-Feb-2006 Brian Paul <brian.paul@tungstengraphics.com> David Reveman's GLX_EXT_texture_from_pixmap extension patch
11/glx_pbuffer.c
11/glxcmds.c
11/glxextensions.c
11/glxextensions.h
1b3128cc9a6b51874bf98871ec1b171049770d71 02-Dec-2005 Brian Paul <brian.paul@tungstengraphics.com> Test sizeof(drm_handle_t) instead of LONG64 when returning handles
11/XF86dri.c
5910dfacf100f3748a732cc262a7913e2922016e 30-Nov-2005 Ian Romanick <idr@us.ibm.com> This is a major re-work of the __indirect_glInterleavedArrays routine. The
big, ugly, error prone switch-statement is replaced with a compact table.
I also added numerous comments, including a comment explaining how the
format parameter is validated.

Explicitly pass GL_FLOAT as the type in the cases where that is the only
possible value (e.g., everywhere except the call to glColorPointer).

Validate that stride is >= 0.

Tested with all modes (including the two error modes) of
progs/tests/interleave.c.

Bug: #5001, #5058
Reviewed by: Brian Paul
11/vertarr.c
f468dfde17e055f713bd8df14c34e2229c268255 21-Oct-2005 Brian Paul <brian.paul@tungstengraphics.com> restore FASTCALL stuff
11/indirect.c
11/indirect.h
11/indirect_size.c
11/indirect_size.h
adfd5510c0ec2100c37b80b1db1cff76f349a1af 21-Oct-2005 Brian Paul <brian.paul@tungstengraphics.com> fix bad loops in TransposeMatrix[fd]()
11/indirect_transpose_matrix.c
c8f86105d0df2ef14c9dd9fc193f8cd40b58fc00 20-Oct-2005 Brian Paul <brian.paul@tungstengraphics.com> Disable the FASTCALL optimization because it still breaks server-side GLX.
11/indirect.c
11/indirect.h
11/indirect_size.c
11/indirect_size.h
a01cb26a90aaa8f631c94d741617715dff89168c 19-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> s/unsigned long/drm_handle_t/ to get compilation of fb driver to work
ini/driver.h
28569c25f6c211796fd8720f98f386690bddd3c9 12-Sep-2005 Brian Paul <brian.paul@tungstengraphics.com> use ASM_API variable, bug 4415
11/Makefile
3d4d6d29e2209a2ca701bff2c781078a82c6b229 31-Aug-2005 Dave Airlie <airliedfreedesktop.org> complete fix for miniglx startup issue since driver version checks
ini/miniglx_events.c
ca1ac986a1d6d3f292e3d20540de884ad08d9816 26-Aug-2005 Adam Jackson <ajax@freedesktop.org> /dri/msg
11/indirect.c
11/indirect.h
11/indirect_init.c
11/indirect_size.c
11/indirect_size.h
f4166a1fd76935f358c2db900c21b3532ba9d6a8 26-Aug-2005 Alan Hourihane <alanh@tungstengraphics.com> Fix the scripts for the cygwin & mingw changes
11/indirect_size.c
11/indirect_size.h
8de9d92acf3e2ec76245c34d90fac65c7bb1994c 25-Aug-2005 Alan Hourihane <alanh@tungstengraphics.com> update for mingw
11/indirect_size.c
11/indirect_size.h
c58cea00853ad80efc9b5866bd1b95321a6d04ae 24-Aug-2005 Alan Hourihane <alanh@tungstengraphics.com> Fix Windows build problems.

GCC's visibility attribute is for ELF systems, so undef INTERNAL
GCC's fastcall attribute interferes with __stdcall so undef FASTCALL
11/indirect_size.c
11/indirect_size.h
8fcd1e028750ec7669aa311dfd63d86767097feb 19-Aug-2005 Adam Jackson <ajax@freedesktop.org> Convert libGL and DRI drivers to require libdrm.

libdrm can be had from:

http://people.freedesktop.org/~ajax/libdrm/
11/Makefile
2ae5645115124ecc97bf4a0ba9f5542cf2409845 19-Aug-2005 Ian Romanick <idr@us.ibm.com> Fix a realloc problem with indirect vertex arrays. The actual head pointer
wasn't tracked and used for the realloc, so it tended to explode.
11/indirect_va_private.h
11/indirect_vertex_array.c
f2876d1ee3b878a07b12ddcb464633a44f7c29e7 11-Aug-2005 Ian Romanick <idr@us.ibm.com> Remove the logic that determines at compile time whether or not HAVE_ALIAS
should be defined. It was flawed on some platforms (e.g., Darwin & mingw).
Instead, rely on the build system to define it on the compiler command line.

This also reverts ajax's hand-edit to indirect_size.c. I'll fix that on the
X.org side of things later today.
11/indirect_size.c
4c4e4bfa4e520a06d5421018247fe9be42124c1c 11-Aug-2005 Ian Romanick <idr@us.ibm.com> Makefile cleanups suggested by George Fufutos (bugzilla #3899).
11/Makefile
82dfd4b71f932f46e116743b204d0077a0875ab8 11-Aug-2005 Brian Paul <brian.paul@tungstengraphics.com> fix X #includes so they're relative to X11/ directory (bug 4047)
11/XF86dri.c
11/dri_glx.c
11/glx_pbuffer.c
11/glxcmds.c
11/glxext.c
11/glxextensions.c
967b006f518849e57fef68ab71359485b1535b3a 11-Aug-2005 Ian Romanick <idr@us.ibm.com> Remove _glapi_check_multithread from the interface exported by the loader to
the driver. The loader now takes care of this for the driver.

Remove _glapi_DispatchTSD and give _glapi_Dispatch its semantic (i.e.,
having a NULL value means that the application is multithreaded and
_glapi_get_dispatch must be called).

Gut all of the dispatch override code. This removes _glapi_RealDispatch,
_glapi_tls_RealDispatch, _glapi_begin_dispatch_override,
_glapi_end_dispatch_override, and _glapi_get_override_dispatch.

Remove _glapi_get_proc_address, _glapi_get_proc_name, _glapi_get_version,
and _glapi_check_table from the loader / driver interface.

Reviewed by: Brian Paul
11/glxext.c
ac54de021a8f54b52cdb6d67fbdba5958de76f24 08-Aug-2005 Dave Airlie <airliedfreedesktop.org> fix miniglx setting virtual size of 832 for 800x600
ini/miniglx.c
23a4f50c5b2080e97d1a48d7fb693ad8269fe0e7 06-Aug-2005 Ian Romanick <idr@us.ibm.com> Fixes bugzilla #1730.

Make sure that all the values used in the clean-up code are initialized at
some point. It is still unclear to me as to why GCC does not complain. I
suspect the problem may be due to the depth of if-statement nesting.
11/glxext.c
6bc24c5c0560844e481b76600991665cc076eb2c 05-Aug-2005 Ian Romanick <idr@us.ibm.com> In order to create the set of available extensions, we have to know if
direct-rendering is possible on a given screen. It is not possible to
determine this by just looking at driDisplay.private in the display
structure. However, it is possible to determine this by looking at
driScreen.private in the screen structure. This field is only non-NULL if a
DRI driver has been successfully loaded and bootstrapped. Once we get to
that point, we know that direct-rendering is at least theoretically
possible.

This fixes bugzilla #2875.
11/glxcmds.c
711555d1e347f0e64e6b1b2d0e402e0ee72ace07 04-Aug-2005 Ian Romanick <idr@us.ibm.com> Convert all instances of XTHREADS to USE_XTHREADS. This fixes one of
serveral things that are broken when building on a system with X.org 7.0rc0
installed.
11/glxclient.h
11/glxext.c
7f5925d57c1405ff40acb2fd40b41ab4f189f7a4 03-Aug-2005 Dave Airlie <airliedfreedesktop.org> Add color tiling support to miniglx for radeon
(Stephane Marchesin + Dave Airlie)
ini/driver.h
ini/example.miniglx.conf
ini/miniglx.c
7adcedcd54f6a436512c172e22e98097bfbdbc50 01-Aug-2005 Ian Romanick <idr@us.ibm.com> Fix build problems related to finding Xthreads.h.
11/glxclient.h
11/glxext.c
29206ae569c4c784ec6884084b4bd8631f66b866 29-Jul-2005 Ian Romanick <idr@us.ibm.com> Remove unused structures and data fields. These had been left in because
DRI drivers using the "old" interface relied on certain fields being at
certain offsets. Removing the structures would break that. Now that the
old interface is no longer supported, the dead data can finally die.
11/glxclient.h
dc6e2c778aa0e67b68fa02043443bfad4dbbccbf 29-Jul-2005 Ian Romanick <idr@us.ibm.com> Add a new config called linux-indirect. This build the GLX libGL just like
linux-dri, but it disables support for direct-rendering in it. This config
mainly exists so that I can verify that changes to libGL haven't broken
builds on non-DRI platforms.
11/Makefile
4ce390b9333decc8ffa30ccfc73f8cf264aeea95 29-Jul-2005 Jon Smirl <jonsmirl@gmail.com> Commit Ian's fixes from Bug 3877
I have tested these on miniglx and they seem to be working.
I'm sure Dave will give them a better test.
ini/Makefile
ini/miniglx.c
ini/miniglxP.h
1585c234e0db4bfb7cd85c4111594f6da1582e6f 28-Jul-2005 Ian Romanick <idr@us.ibm.com> Major rip-up of internal function insertion interface. The old
_glapi_add_entrypoint has been replaced by a new routine called
_glapi_add_dispatch. This new routine dynamically assignes dispatch offsets
to functions added. This allows IHVs to add support for extension functions
that do not have assigned dispatch offsets.

It also means that a driver has no idea what offset will be assigned to a
function. The vast majority of the changes in this commit account for that.
An additional table, driDispatchRemapTable, is added. Functions not in the
Linux OpenGL ABI (i.e., anything not in GL 1.2 + ARB_multitexture) has a
fixed offset in this new table. The entry in this table specifies the
offset in of the function in the real dispatch table.

The internal interface was also bumped from version 20050725 to 20050727.

This has been tested with various programs in progs/demos on:

radeon (Radeon Mobility M6)
r128 (Rage 128 Pro)
mga (G400)
11/dri_glx.c
11/glxcmds.c
ab7c6ffadccbeb96b6f4ac58fb75e90697cd30c5 27-Jul-2005 Ian Romanick <idr@us.ibm.com> Remove the last remnants of GLX_BUILT_IN_XMESA. This allows the removal of
the evil, ugly GLX_PREFIX macro as well.
11/glx_pbuffer.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/glxextensions.h
5c6fd3dd4c1b8e95c4da8cc4a52aa310ad324d45 26-Jul-2005 Ian Romanick <idr@us.ibm.com> No, really, get rid of all the remaining references to DRI_USE_NEW_INTERFACE.
A couple other remnants of the old interfaces hit the dust too. Thanks
Jon. :)
11/glxext.c
a08d8a095c117bd845418401dc754851e6187aa4 26-Jul-2005 Ian Romanick <idr@us.ibm.com> Quote $(CC) and $(CXX) so that 'CC=ccache gcc' and 'CXX=ccache g++' will
work again.
ini/Makefile
11/Makefile
5f1ba3e21b62cee1a4f900a2e6964728f3eeea9b 26-Jul-2005 Ian Romanick <idr@us.ibm.com> Fixes the glXGetProcAddress portion of the interface. Most of the functions
that are currently obtained via glXGetProcAddress and all of the XF86DRI
functions are replaced with a funciton table. This table will be passed to
__driCreateNewScreen.

One of the functions in the table is getProcAddress. This allows some
loaders to expose functionality not in all loaders. This will be immediatly
used for glxEnableExtension (formerly known to drivers as
__glXScrEnableExtension). libGL (and in the future libglx) expose this
function so that drivers can enable GLX extensions. libEGL should exposed
eglEnableExtension to enable EGL extensions. The same function cannot be
used for both because the extensions have different names and (possibly)
different semantics. Drivers can optionally use one, both, or neither.

The key parts are in the __DRIinterfaceMethodsRec structure in
dri_interface.h. A pointer to one of these structures is passed into
__driCreateNewScreen. Because of this, the version of the API is bumped to
20050725. Since the previous version(s) were never in a release, their
existance is erased.

I was actually a little surprised by how much code this cuts from the
drivers. A lot of glXGetProcAddress calls disappear, and a lot of
version checks go with them. Nice.

The one thing I'm not sure of is removing __glXInitialize. For some
reason that function was in the glXGetProcAddress table, but *nothing*
in the Mesa tree used it. Did something with DRI conf. use this
function? It seems odd...
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
8dcc6736aba672916bd4bc70a964c30bb11eeafa 26-Jul-2005 Brian Paul <brian.paul@tungstengraphics.com> Added -linker option to mklib, used to specify a particular program for
linking, if relevant.
Updated Makefiles to use -linker option instead of setting CC, CXX env vars.
ini/Makefile
11/Makefile
e9dbe58b8b541d0abb9be9e1000a63776abe678c 24-Jul-2005 Ian Romanick <idr@us.ibm.com> Gut a few more dead bits. Replace uses of the CreateNewScreenFunc typedef
(from glxclient.h) with PFNCREATENEWSCREEN (from dri_interface.h).

Remove the prototype for __driCreateScreen and fix the prototype for
__driCreateNewScreen (append the API version) in dri_interface.h.
11/dri_glx.c
11/glxclient.h
11/glxext.c
c39bf5e273a4995a279ae2af59fc29e06ab47e29 24-Jul-2005 Ian Romanick <idr@us.ibm.com> All elements of pre-DRI_NEW_INTERFACE_ONLY are removed. This allows
1,402 lines of code to be removed from Mesa (drivers and libGL). The
big winner is dri_util.c.

Primary changes are:

1. Remove all "deprecated" entry-points from the various structures in
dri_interface.h.

2. Rename the remaining fields to removed "version numbers." So,
bindContext3 becomes bindContext. Functions with "New" in the name
(e.g., CreateNewContext) were *not* changed, but that is an option.
Having "New" in the name is less annoying to me than having "3" in the name.

3. Remove all compatibility code that handles cases where the driver or
the loader is too old to support the latest interfaces.

4. Append the API version to the __driCreateNewScreen function name.
This is currently done by hand. In the future (i.e., the next time we
make an incompatible change to the interface) we'll want to come up with
a better way to do this. This prevents old loaders from being able to load
new (incompatible) drivers.

5. Bump the API version to 20050722. All drivers (by way of dri_util.c)
require this version.

6. All drivers are *required* to expose GLX_SGIX_fbconfig and
GLX_OML_swap_method (or the moral equivalents). Support for these
functions in implicit in the use of the "new" interface.

7. Some cases still exist that need to be compiled differently in a loader
or core Mesa versus in a driver. These are identified by the define
IN_DRI_DRIVER.
11/Makefile
11/dri_glx.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/glxextensions.c
7d40d230fa26abeb9f92bdcf8012eddbc585b118 23-Jul-2005 Adam Jackson <ajax@freedesktop.org> Add two aliases for some PointParameters entrypoints for libglx compatibility.
Doing this here rather than on the GLX side since the X monolith hasn't had
Mesa 6.3 imported yet.

idr, I know this is touching a generated file, but I haven't figured out what
needs changing in the generator scripts to make this change happen. If you
could add that I'd appreciate it.
11/indirect_size.c
f0ff50d4edbeab5aa0df349772ed2eda64878282 02-Jul-2005 Ian Romanick <idr@us.ibm.com> Add support for assembly (static) dispatch functions on x86-64. This
is basically patch #2939 from X.org bugzilla #3379. This does *not*
fix the bug as it does not dynamically generate stubs at run-time. It
just gets things one step closer.
11/Makefile
5aafea03af051fa06589580205342001a8eb2693 24-Jun-2005 Ian Romanick <idr@us.ibm.com> Fix non-x86 specific builds. The changes from glTexImage3DEXT to
glTexImage3D that caused me so many problems during the re-development
of the API scripts reared its ugly head again. This has been fixed by
tracking the parameter string for each entry-point individually.

This has the annoying side-effect that the names of the parameters in
all aliases of a function must be the same or gl_apitemp.py will
generate bad code. :( The changes in
src/mesa/glapi/{gl_API.xml,glapitable.h} and src/glx/x11/* are caused
by fixing the parameter names in various function aliases that didn't
match.

Reported by: Eric Anholt, Jacob Jansen
11/indirect.c
11/indirect.h
3fb86eefe8b22e8d95111ef49feb0a91d865fd00 24-Jun-2005 Jeremy Kolb <jkolb@freedesktop.org> Fixed the XCB implementation when always_array is true, thanks to Ian Romanick for pointing it out. Please review.
11/indirect.c
2636e853f60cf6944d04c9eb4bf25e8ef83c1cb3 22-Jun-2005 Ian Romanick <idr@us.ibm.com> Mark GenQueriesARB at 'always_array="true"'. This eliminates the need
to special-case the handling of that function in glX_proto_send.py.
11/indirect.c
814e5360b0f556e39f1f55ea4173de412df38f7d 22-Jun-2005 Jeremy Kolb <jkolb@freedesktop.org> Fixed a bug where GenQueriesARB was generating the wrong code for XCB and wouldn't compile. Not sure how that slipped through before but it should work now.
11/indirect.c
11/indirect_init.c
66a5548fbbf4c04a74b0bbc451718a8fc95502d9 22-Jun-2005 Ian Romanick <idr@us.ibm.com> Mammoth update to the Python code generator scripts that live in
src/mesa/glapi. Basically, the scripts that did simple things (like
gl_offsets.py) were simple, and the scripts that did more complicated things
(like glX_proto_send.py) were getting progressively more and more out of
control. So, I re-write the foundation classes on which everything is based.

One problem with the existing code is that the division between the GL API
database representation and the way the output code is generated was either
blury or nonexistant. The new code somewhat follows the
Model-View-Controller pattern, minus the Controller. There is a distinct
set of classes that model the API data, and there is a distinct set of
classes that generate code from that data.

One big change is in the class that represents GL functions (was glFunction,
is now gl_function). There used to be an instance of this calls for each
function and for each alias to that function. For example, there was an
instance for PointParameterivSGIS, PointParameterivEXT, PointParameterivARB,
and PointParameteriv. In the new code, there is one instance. Each
instance has a list of entrypoint names for the function. In the next
revision, this will allow a couple useful things. The script will be able
to verify that the parameters, return type, and GLX protocol for a function
and all it's aliases match.

It will also allow aliases to be represented in the XML more compactly.
Instead of repeating all the information, an alias can be listed as:

<function name="PointParameterivARB" alias="PointParameterivEXT"/>

Because the data representation was changed, the order that the alias
functions are processed by the scripts also changed. This accounts for at
least 2,700 of the ~3,600 lines of diffs in the generated code.

Most of the remaining ~900 lines of diffs are the result of bugs *fixed* by
the new scripts. The old scripts also generated code with some bugs in it.
These bugs were discovered while the new code was being written.

These changes were discussed on the mesa3d-dev mailing list back at the end
of May:

http://marc.theaimsgroup.com/?t=111714569000004&r=1&w=2

Xorg bug: 3197, 3208
11/indirect.c
11/indirect.h
11/indirect_init.c
11/indirect_size.c
a6a3e01b099a9ea15c9868b4acf01b106c5f417b 20-Jun-2005 Jeremy Kolb <jkolb@freedesktop.org> ran "make" after update to glX_proto_send.py.
11/indirect.c
22b0a42465bde9df92321876bda2f55504230363 28-May-2005 Dave Airlie <airliedfreedesktop.org> use shared-core
11/Makefile
249db89b009e64812d4bcec80d0c5a64f1d65aeb 26-May-2005 Ian Romanick <idr@us.ibm.com> Make a couple minor corrections to gl_API.xml. Fixes the name of an
extension that was missing the GL_ part and uses the core GL type names for
vertex buffer object functions instead of the ARB names.

Also commits the resulting changes to the generated code. Some how, the
#if sequence disappeared in the 1.52 version of glapi_x86.S.
11/indirect_init.c
f387c83ec10b202c1951c4b8f29bb8109de102f5 25-May-2005 Ian Romanick <idr@us.ibm.com> Commit the changes propagated from Jeremy Kolb's changes to the Python
scripts in src/mesa/glapi.
11/indirect.c
2eb147e7f5754a97cb1a5617db7d529754cfe002 07-May-2005 Brian Paul <brian.paul@tungstengraphics.com> Patches for XCB (Jeremy Kolb)
11/glxext.c
02986cb2cc1b1d47b26a653e9ae0fa508365f616 18-Apr-2005 Ian Romanick <idr@us.ibm.com> Add support for pthreads and TLS to libGL for __glXLock / __glXUnlock and
for tracking the current GLX context.

This fixes bug #3024.
11/glxclient.h
11/glxext.c
2e823f29e41d395c38804919076ba30f563266b5 18-Apr-2005 Ian Romanick <idr@us.ibm.com> Send GL_PACK_INVERT_MESA state to the server. This fixes bug #2538.
11/pixelstore.c
f434e07a6ac849cd127d70eee8b3349da7cfb360 14-Apr-2005 Ian Romanick <idr@us.ibm.com> Add missing includes of indirect.h.
11/clientattrib.c
11/glx_texture_compression.c
11/pixelstore.c
11/renderpix.c
11/single2.c
11/singlepix.c
25fe93f0a11e6f4c8d470441ff91b9cddf7b3023 13-Apr-2005 Ian Romanick <idr@us.ibm.com> Add TLS support to libGL and, by virtue of using glthread.h and GL_CALL, all
DRI drivers. A TLS enabled libGL can load a TLS or a non-TLS DRI driver,
but a TLS DRI driver requires a TLS enabled libGL.

This fixes bug #1822.
11/dri_glx.c
a657c1aee85b7a2466d8608d8f3d44ebd015e476 08-Apr-2005 Ian Romanick <idr@us.ibm.com> Use the same dispatch.c source file for "normal" Mesa builds and DRI
libGL builds.
11/Makefile
11/dispatch.c
c51ed8c2364b9e86a138cdb07fe2293ccc88f678 07-Apr-2005 Ian Romanick <idr@us.ibm.com> Follow the GLX_SGIX_fbconfig spec and return the complete list of
available fbconfigs if attrList is NULL. This fixes bug #2917.
11/glxcmds.c
979f35fb78f39cec5de53795ce91f674bfb9df52 17-Mar-2005 Ian Romanick <idr@us.ibm.com> Minor vertex array support tweaks. These are in preparation for the
(eventual) addition of support for ARB_vertex_buffer_object. Elminitate the
need for array_state_vector::large_header. Make some very minor tweaks to
the handling of the indices pointer in emit_DrawElements_old.
11/indirect_va_private.h
11/indirect_vertex_array.c
b81efaaa1ac8676a1092e4354079ffcbe7960af2 17-Mar-2005 Ian Romanick <idr@us.ibm.com> Minor vertex array support tweaks. Most of these are in preparation for the
(eventual) addition of support for ARB_vertex_buffer_object.

Move all the private vertex array data structures out of
indirect_vertex_array.c and into indirect_va_private.h.

Rename array_state_vector::enabled_array_count to
array_state_vector::enabled_client_array_count.

Make sure that both the GL extension string and the server GL version are
available when __glXInitVertexState is called.

Make sure that array_state::normalized is set correctly in the array's
gl*Pointer function.
11/glxext.c
11/indirect_va_private.h
11/indirect_vertex_array.c
3f35fbbf668dab4c1a572f77a0912f4b7c8d857c 17-Mar-2005 Ian Romanick <idr@us.ibm.com> Fix the handling of zero-sized output parameters (i.e., those with type
'GLvoid *'). This fixes the GLX protocol for glGetProgramStringARB. This
fixes bugzilla #2747.

Remove the 'ignore="true"' from glVertexAttrib4bvARB. This fixes bugzilla
#2746.
11/indirect.c
11/indirect.h
11/indirect_init.c
9eae0b9f19f3e71dec6d6440db69dd5d140228de 17-Mar-2005 Ian Romanick <idr@us.ibm.com> Hard-code the client-side maximum GL version. It turns out that there are
some flaws in the calculation code when the highest version listed in
known_gl_extensions is supported. This code would also have some problems
with some of the new features (that don't have an associated extension) on
GL 2.0.
11/glxextensions.c
91c219d9063bf7d3a181ee0b289c68b4a68f3db6 11-Mar-2005 Ian Romanick <idr@us.ibm.com> Add support for ARB_draw_buffers and ARB_occlusion_query. The GLX protocol
for these extensions (as well as ARB_vertex_program and ARB_matrix_palette)
was just approved by the ARB on 8-Mar-2005. Now the only extension missing
for 1.5 support is ARB_vertex_buffer_object.

The opcodes for ARB_matrix_palette were also added to gl_API.xml. Since
this extension isn't supported by Mesa, no code is generated for it. Some
tabs were also converted to spaces in the comment for
GetCompressedTexImageARB.
11/glxextensions.c
11/glxextensions.h
11/indirect.c
11/indirect.h
11/indirect_init.c
0bd5373d94c9b74a7b724d74e2b2bc94c8d5bd77 06-Mar-2005 Ian Romanick <idr@us.ibm.com> Actually *use* the count_scale value associated with a parameter.
11/indirect.c
1bb14ad90c1bf88b45478a40f4c7d8b706070fdb 05-Mar-2005 Dave Airlie <airliedfreedesktop.org> fix for solo to set the mode, and make solo gcc2 friendly...

From: Stephane Marchesin
ini/miniglx.c
b47731f24db2e4c99073b107050376addf636c98 04-Mar-2005 Ian Romanick <idr@us.ibm.com> Import fixes from X.org tree (Søren Sandmann <sandmann@redhat.com>).
11/glx_pbuffer.c
fdb5a87f91c80e271f78cdaaa3359c7b4d81319b 03-Mar-2005 Ian Romanick <idr@us.ibm.com> Fix some errors in the parameter descriptions in serveral vertex / fragment
program related functions.
11/indirect.c
03dc437363429d275b7f8cae74201a8e7993a52b 28-Feb-2005 Ian Romanick <idr@us.ibm.com> Clean-up some warnings caused by the addition of vertex / fragment program
protocol support (reported by Adam Jackson). Added code to validate the
'type' parameter to the draw element functions.
11/indirect_vertex_array.c
11/indirect_vertex_program.c
4e262cfb072488a0fe0ff8f4ec3ddbd25379bb1f 26-Feb-2005 Ian Romanick <idr@us.ibm.com> Accidentally committed wrong version with the previous commit set.
11/indirect.c
40af76bbaa9e8909d63d8eeab4689ed2dfe1e19c 25-Feb-2005 Ian Romanick <idr@us.ibm.com> Add GLX protocol support for ARB_fragement_program,
ARB_fragment_program_shadow, ARB_vertex_program, NV_fragment_program,
NV_fragment_program_option, NV_fragment_program2, NV_vertex_program,
NV_vertex_program1_1, NV_vertex_program2, NV_vertex_program2_option,
NV_vertex_program3, and ATI_text_fragment_shader.
11/Makefile
11/glxextensions.c
11/glxextensions.h
11/indirect.c
11/indirect.h
11/indirect_init.c
11/indirect_vertex_array.c
11/indirect_vertex_array.h
11/indirect_vertex_program.c
1fd3bbc42e8ad267c552a3818f64b0850c188927 25-Feb-2005 Ian Romanick <idr@us.ibm.com> Convert the static functions read_pixel_reply, read_reply,
setup_single_request, and setup_vendor_request to the global functions
__glXReadPixelReply, __glXReadReply, __glXSetupSingleRequest, and
__glXSetupVendorRequest. This will make it easier to add handcoded Single /
VendorPrivate / VendorPrivteWithReply functions.
11/indirect.c
11/indirect.h
365a0a7c153da53c5e4fb6433751f9dab9a16fa4 23-Feb-2005 Ian Romanick <idr@us.ibm.com> Missed the commit of glxext.c yesterday.

Fixed a flow control problem in glGet*v that could result in the display
not being unlocked. This also resulted in refactoring a lot more code
out of the glGet*v routines into get_array_data, which was renamed to
get_client_data.
11/glxext.c
11/single2.c
6614766f3e8f0ff472d328b3c42677117781d1e4 23-Feb-2005 Ian Romanick <idr@us.ibm.com> Corrected the value for X_GLrop_SecondaryColor3svEXT.
11/indirect.c
57b5e8538e5aab627fd2e0640c9ba5738cfc3a65 23-Feb-2005 Ian Romanick <idr@us.ibm.com> Missed the Makefile with the previous commit.
11/Makefile
fdb07636f2e6324c5250cd5ee97778b7f5933bea 22-Feb-2005 Ian Romanick <idr@us.ibm.com> Added __glExtensionBiIsEnabled and __GLXcontext::gl_extension_bits. This
enables libGL to query which extension are exported to applications.

Refactored array-query functionality (from glGet*v) in src/glx/x11/single2.c.

Massive re-write of indirect vertex array support. The most noticable
effect is that glDrawElements now generates DrawArrays protocol. The
side-effects (and the main reasons for the re-work) are that it is much
easier to add support for new arrays (e.g., GL_VERTEX_ATTRIB_ARRAY,
GL_WEIGHT_ARRAY_ARB, etc.) and it is much easier to add support for the new
DrawArrays protocol (required to support ARB_vertex_buffer_object).

These changes were primarilly tested with progs/demos/isosurf.
11/clientattrib.c
11/glxclient.h
11/glxcmds.c
11/glxextensions.c
11/glxextensions.h
11/indirect_vertex_array.c
11/indirect_vertex_array.h
11/single2.c
11/vertarr.c
dee1c795c25c2915582c7928238498bb63d86234 20-Feb-2005 Dave Airlie <airliedfreedesktop.org> add more functionality to miniglx for glitz
ini/miniglx.c
09298228c64f14b6c74588a89f70b0de4d1ac6a4 15-Feb-2005 Dave Airlie <airliedfreedesktop.org> add EnableExtension so r200 enables all its extensions, add mesa memory
extension entry points
ini/miniglx.c
d863424032deb7c6bcb3a0b906be29b573f18c2d 09-Feb-2005 Ian Romanick <idr@us.ibm.com> Generate GLX protocol for pixel single commands.
11/indirect.c
11/singlepix.c
a02b83115a865a58d3f0d118a6b3ad2922a0ab75 05-Feb-2005 Ian Romanick <idr@us.ibm.com> Fix some mixed spaces / tabs issues in generated code. Commit generated
files that have been trivially changed by other recent commits.
11/indirect.c
11/indirect.h
11/indirect_size.c
11/indirect_size.h
0a755ade51be419488ba621d843de939749ad76c 04-Feb-2005 Ian Romanick <idr@us.ibm.com> Enable client-side GLX support for texture compression extensions.
11/glxextensions.c
11/glxextensions.h
94a20cbadfb5266d1acbb0597dba16aacfa1fe32 03-Feb-2005 Ian Romanick <idr@us.ibm.com> Added a bunch of extensions that were previously supported but weren't
in the gl_API.xml database. Add "official" support for SGI_color_matrix
and SGI_texture_color_table. These were previously supported only by
way of ARB_imaging.
11/glxextensions.c
11/glxextensions.h
16c3c7401846bbc7c300e6a9b433584ec5b68699 28-Jan-2005 Ian Romanick <idr@us.ibm.com> Refactor the code to emit multiple-inclusion protection to
FilterGLAPISpecBase. Since the size_h mode of glX_proto_size.py will be
used to generate multiple header files, add an option to specify the define
that is used for multiple-inclusion protection.

The changes to the header files in this commit are just a side-effect of the
changes to the Python scripts.
11/indirect.h
11/indirect_size.h
20b8d9c1b927f30390093750af0f4008adbfa5cf 28-Jan-2005 Ian Romanick <idr@us.ibm.com> Fix some get / set errors with COLOR_TABLE_*. SCALE and BIAS can be
parameters to GetColorTableParameter[if]v. FORMAT, WIDTH, and the SIZE
enums cannot be parameters to ColorTableParameter[if]v.
11/indirect_size.c
6398a97affb8d2dde90dd77cb65aef8e9827e63d 27-Jan-2005 Ian Romanick <idr@us.ibm.com> Mark a couple more function parameters as counters.
11/indirect.c
82e22f50f1e1640d60dbe243ea093960aa682be1 27-Jan-2005 Ian Romanick <idr@us.ibm.com> Add numerous 'get'-type functions to most of the enums supported by the
server-side GLX implementation.

Correct the protocol for EXT_convolution. Several functions were
incorrectly listed as 'sop' that should have been 'vendorpriv'.

Remove TexParameter[if]v from the list of functions associated with
TEXTURE_RESIDENT. The state associated with this enum is read-only.

Sort the enums by value for each particular size. This ensures that the
signature is the same no matter what the ordering is of the enums in the XML
file. The side effect is that there are some extra changes in
indirect_size.c.
11/indirect_size.c
11/indirect_size.h
999534216d14d85c7f07641dfa37f1aff28d2103 23-Jan-2005 Adam Jackson <ajax@freedesktop.org> HAVE_ALIAS was never defined anywhere, add some logic to turn it on
automagically.
11/indirect_size.c
520e56f232dfe9f15e2f910be96238862aa5080a 19-Jan-2005 Keith Whitwell <keith@tungstengraphics.com> Depend tweaks
11/Makefile
591b72b6a9718e908b11c7c2fd3bbf9e5b432677 12-Jan-2005 Ian Romanick <idr@us.ibm.com> Added a couple missing proxy types.
11/compsize.c
d24e49f301db9612349ed09594e476a8dbc896a5 11-Jan-2005 Ian Romanick <idr@us.ibm.com> Put quotes around the CC and CXX variables passed to mklib. This make
them work with multi-work compiler names (e.g., "ccache gcc").
ini/Makefile
11/Makefile
1074eae704f4f68a721cfb9810cd0fde3d3aed07 08-Jan-2005 Adam Jackson <ajax@freedesktop.org> Enable libGL to be built with DRI_NEW_INTERFACE_ONLY (but don't do it yet).
11/XF86dri.c
11/glxcmds.c
11/glxext.c
70d2f152f8e312a6c51dd4547d39b09284b2c0de 07-Jan-2005 Ian Romanick <idr@us.ibm.com> Refactor the code that converts a transpose-matrix enum to a
regular-matrix enum.
11/single2.c
5f1f229f8da255ca9b390da1757ad781978cf619 07-Jan-2005 Ian Romanick <idr@us.ibm.com> Pixel oriented render functions are now generated by the
glX_proto_send.py script. This eliminates ~600 lines of non-generated
code. With proper compiler optimization settings, it also decreases the
size of libGL.so by about 3KB.
11/compsize.c
11/glxclient.h
11/indirect.c
11/pixel.c
11/render2.c
11/renderpix.c
11/singlepix.c
11/size.h
3385d7cec3308129f6f1fc5990023417e4e4be47 07-Jan-2005 Ian Romanick <idr@us.ibm.com> The generic_*_byte functions did not rount the command size to a
multiple of 4 correctly in some cases.
11/indirect.c
1e21673ea14ad1368fcebbc4d5dde8746497d782 05-Jan-2005 Alan Hourihane <alanh@tungstengraphics.com> support 720x480 and 960x540 modes
ini/miniglx.c
3276c192b7bfe4fd21967224b3d13e1c1681758e 03-Jan-2005 Ian Romanick <idr@us.ibm.com> The opcode and command length fields of RenderLarge commands were
mistakenly emitted in the wrong order.
11/indirect.c
83fcf49647f423741a0a2143e03dbaa2d43d31a1 27-Dec-2004 Ian Romanick <idr@us.ibm.com> Fixed two problems with the handling of GLX protocol replies. The logic
for determining when extra data needed to be read after a reply (to ensure
4-byte alignment) and the logic to determine whether or not to read reply
data after the SingleReply packet were both slightly wrong.
11/indirect.c
990dec7ea0ad9eca8340d39fd022baa151c05a03 22-Dec-2004 Ian Romanick <idr@us.ibm.com> Used GCC's __builtin_expect when available. Change the way code is
generated for commands that can use RenderLarge packets. Tweak the code for
__glXFlushRenderBuffer slightly.
11/glxext.c
11/indirect.c
0d84c68313cba241b8020f12211f2abdfd53a955 20-Dec-2004 Ian Romanick <idr@us.ibm.com> Use GLX protocol code generated by glX_proto_send.py.
11/Makefile
11/g_render.c
11/g_single.c
11/g_vendpriv.c
11/glxext.c
11/indirect.c
11/indirect.h
11/indirect_size.c
11/packvendpriv.h
11/render2.c
11/single2.c
4890f2605ea7f0d8ad157add2ca0dc2d3b19e848 16-Dec-2004 Adam Jackson <ajax@freedesktop.org> Mark the XF86DRI client-side extension API as PUBLIC.
11/XF86dri.c
489ccef3982267b0d35c8548921f58d553c25a3a 15-Dec-2004 Adam Jackson <ajax@freedesktop.org> Fix up glx/x11 to work when built with -fvisibility=hidden.
11/dispatch.c
11/glx_pbuffer.c
11/glxcmds.c
11/glxext.c
fc236723273d4d872ae5e7cac876ea20175df10d 08-Dec-2004 Keith Whitwell <keith@tungstengraphics.com> Improve the behaviour of the build system wrt depend files.

- Remove the -Y option for makedepend, so that the standard
directories are searched
- No longer pipe the multiple errors that the -Y option caused
into /dev/null -- we want to know about these failures.
- Fix up a few other misc makedepend failures.
ini/Makefile
11/Makefile
23b033ad28331e40287ab8b5c9150bc6be5c608f 08-Dec-2004 Dave Airlie <airliedfreedesktop.org> From: Stephane Marchesin <marchesin@icps.u-strasbg.fr>

Attached is a patch that adds pci init code for mesa solo on radeon. It's been
tested on an itanium 2 with a radeon 7000 and it works here.
The patch adds a new field in the miniglx.conf config file, to choose between
pci and agp.
ini/driver.h
ini/example.miniglx.conf
ini/miniglx.c
00d153eb726b6869ad9aa6a099c5ce31013d5535 02-Dec-2004 Ian Romanick <idr@us.ibm.com> Corrected a problem with the sizes of the MAP[12]_* enums.
11/indirect_size.c
77e297c368be479d08822ea8bd186d7d7f5ea423 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Refactor ExtractDir and OpenDriver to be a bit more clear.
11/dri_glx.c
9bba1cfc39d35b847c479dcc1afef3d5d8fb0bfc 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Use indirect_size.c and indirect_size.h generated by using
src/mesa/glapi/glX_proto_send.py with the '-m size_c' and '-m size_h'
options.
11/Makefile
11/compsize.c
11/eval.c
11/indirect_size.c
11/indirect_size.h
11/render2.c
11/size.h
548435215dc43ff4940c74f0082f48f897080ccf 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Use the indirect_init.c generate by using src/mesa/glapi/glX_proto_send.py
with the '-m init_c' option.
11/indirect_init.c
4f4854a4af069f7b2369a2d497c65e837b7cd046 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Make the transition to script-genereated GLX code easier.

Convert GL 1.4 function names to EXT_blend_func_separate names.
11/indirect.h
11/indirect_init.c
529381ff750774a67d7f17de89e554123c221c86 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Make the transition to script-genereated GLX code easier.

Convert GL 1.4 / ARB_point_parameter function names to EXT_point_parameter /
NV_point_sprite names.
11/compsize.c
11/indirect.h
11/indirect_init.c
11/size.h
6b89a8363b4934e4b5bbad10f84bbe7e38f22f9b 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Make the transition to script-genereated GLX code easier.

Move "handcoded" ARB_window_pos / MESA_window_pos functions to their own
file. Modify the ARB_window_pos functions to use the MESA_window_pos names.
11/Makefile
11/g_render.c
11/indirect.h
11/indirect_init.c
11/indirect_window_pos.c
bb427b10b156225f1f79fed01930e1e2d3b2093f 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Make the transition to script-genereated GLX code easier.

Move "handcoded" ARB_transpose_matrix functions to their own file. From
here on out, such handcoded functions should go in a file named
indirect_FOO.c, where "FOO" is some logical name for the functionality
(e.g., part of the extension name, etc.).
11/Makefile
11/indirect.h
11/indirect_transpose_matrix.c
c8c24d049d8d359894130aa7bcdf2319ef4e09df 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Make the transition to script-genereated GLX code easier.

Move EXT_vertex_array wrapper functions from indirect_init.c to vertarr.c.
Fix problems with EXT_multi_draw_arrays function names.
11/indirect.h
11/indirect_init.c
11/vertarr.c
345ed3ac8c5a26b8d99c21cf467d05da7e8edfc8 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Make the transition to script-genereated GLX code easier.

Eliminate the need for indirect_wrap.h and NEED_GL_FUNCS_WRAPPED.
Basically, this means prepending __indirect_ to all the definitions and
calls of GL functions that don't already have it.
11/clientattrib.c
11/g_render.c
11/g_single.c
11/g_vendpriv.c
11/glxclient.h
11/indirect.h
11/indirect_init.c
11/indirect_wrap.h
11/packrender.h
11/pixelstore.c
11/render2.c
11/renderpix.c
11/single2.c
11/singlepix.c
11/vertarr.c
249a5552f122c1ae7b58d1a5f693607d04c22e05 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Make the transition to script-genereated GLX code easier.

Convert GL_ARB_texture_compression related functions to use the extension
version of the names instead of the GL 1.3 versions.
11/glx_texture_compression.c
11/indirect.h
11/indirect_init.c
fc43857cc936a7c6bd003f9c2136145cb8184f97 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Add trivial support ARB_texture_rectangle and OES_read_format.
11/glxextensions.c
05f4a2b92db19c319d10220f1e93734af86f415d 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Missed GL_OES_read_format_bit in last commit.
11/glxextensions.h
f1f18cd1b899fd614e788942e6474050944490b3 01-Dec-2004 Ian Romanick <idr@us.ibm.com> Since we know the problem with HP_occlusion_test is / was on the server-side,
re-enable the extension on the client-side.
11/glxextensions.c
55656a53d4286eb49106e1fcc80dd2fe9432caf0 29-Nov-2004 Brian Paul <brian.paul@tungstengraphics.com> added __glXFindDRIScreen to glXGetProcAddress (bug 1068879)
ini/miniglx.c
ad919c30df71bc191be6f107385638b456da6a0f 15-Nov-2004 Adam Jackson <ajax@freedesktop.org> Sync with Xorg head: mingw build fixes from Alexander Gottwald.
11/glxclient.h
473fe6d6bfe039c27f0f1751dbdb9d49fe83ecb0 03-Nov-2004 Adam Jackson <ajax@freedesktop.org> constify a few arrays.
11/pixel.c
5dd18e95d9aba8cc444a511808a1df15ca7a037a 03-Nov-2004 Adam Jackson <ajax@freedesktop.org> static char * -> static char []
11/XF86dri.c
1cda832fd90c79d8a5bb81a2a141c207e68aa74b 26-Oct-2004 Adam Jackson <ajax@freedesktop.org> remove a -Werror from testing.
11/Makefile
cb3610e37c4c0a40520441b8515d044dabcc8854 25-Oct-2004 Adam Jackson <ajax@freedesktop.org> Import the GLX client side library, formerly from xc/lib/GL/glx. Build it
by adding 'glx/x11' to SRC_DIRS in your build config.
11/Makefile
11/XF86dri.c
11/clientattrib.c
11/compsize.c
11/dispatch.c
11/dri_glx.c
11/dri_glx.h
11/eval.c
11/g_render.c
11/g_single.c
11/g_vendpriv.c
11/glx_pbuffer.c
11/glx_query.c
11/glx_texture_compression.c
11/glxclient.h
11/glxcmds.c
11/glxext.c
11/glxextensions.c
11/glxextensions.h
11/indirect.h
11/indirect_init.c
11/indirect_init.h
11/indirect_wrap.h
11/packrender.h
11/packsingle.h
11/packvendpriv.h
11/pixel.c
11/pixelstore.c
11/render2.c
11/renderpix.c
11/single2.c
11/singlepix.c
11/size.h
11/vertarr.c
11/xf86dri.h
11/xf86dristr.h
11/xfont.c
75672d2e94e351cb8a65069e20cbcc941e046a1a 01-Oct-2004 Dave Airlie <airliedfreedesktop.org> Fix mesa solo with doublebuffered apps, the drawable index/stamp weren't
being updated properly..
ini/miniglx.c
e520b72e8901058729780620e3a98b4014f736f2 07-Sep-2004 Dave Airlie <airliedfreedesktop.org> Add a solo-x86 config, and make solo use the x86 glapi
ini/Makefile
521ebf670a6dbe6f9ab875ffece31664a7d668b0 10-Aug-2004 Jon Smirl <jonsmirl@gmail.com> Fix from Rogelio Serrano for miniglx double buffering
ini/miniglx.c
dc8a7603a39bade5b7411e79d5773834b89bd023 16-Jul-2004 Jon Smirl <jonsmirl@gmail.com> Miniglx clients now authorize with server DRM
ini/miniglx.c
ini/miniglxP.h
ini/miniglx_events.c
1e7ce9f6f1766847fc783d54fcbc3195874e2723 06-Jul-2004 Jon Smirl <jonsmirl@gmail.com> Convert miniglx to use xf86drm from dri/drm/libdrm instead of src/mesa/drivers/dri/dri_client
ini/Makefile
550009441375e55bda3896eba7375b9228c7fdec 06-Jul-2004 Jon Smirl <jonsmirl@gmail.com> Convert miniglx to use Ian's fancy new driver config code.
This removes the miniglx driver function InitContextModes().
All of the server directories were edited to remove the implementations.
ini/driver.h
ini/miniglx.c
ini/miniglxP.h
c61c7cb8e4100476d5feb976c39a23b1ed7b564a 29-Jun-2004 Jon Smirl <jonsmirl@gmail.com> This should make most linux-solo drivers work again. Mainly a fix
for changing SAREA size form DRM_PAGE_SIZE to SAREA_MAX. fb driver
is still broken.
ini/miniglx.c
ini/miniglxP.h
c2bffec91a5b6ba72514c875b70dbc96ac97431d 26-Jun-2004 Jon Smirl <jonsmirl@gmail.com> Mesa-solo builds with these changes. There are still more fixups needed to
get individual drivers working again. This converts miniglx to the new
dri interface. Thanks to Erdi Chen for the new interface code.
ini/Makefile
ini/dri.h
ini/dri_util.c
ini/dri_util.h
ini/drmtest.c
ini/miniglx.c
ini/miniglxP.h
ini/miniglx_events.c
ini/xf86drm.c
ini/xf86drm.h
9eecb03226a534e0fe59973133371b72e7c0d63d 26-Jun-2004 Ian Romanick <idr@us.ibm.com> Make sure mklib sees the definition of CC and CXX. Make mklib respect
the definitions of CC and CXX on Linux. This fixed build issues with
sunos5-gcc and build issues on GCC 2.x Linux when CC and CXX are set
to a GCC 3.x compiler.
ini/Makefile
ba3d643c49ce16f8dcddac56308588839c55bc87 03-Jun-2004 Jon Smirl <jonsmirl@gmail.com> kill __driRegisterExtensions(), none of the functions did anything
ini/dri_util.h
f016e2509efd07f789793c12cf44caacc8bac9aa 01-Jun-2004 Eric Anholt <anholt@FreeBSD.org> Missed in last commit:
Build fixing for FreeBSD. GNU make is installed as gmake, so make a MAKE
variable (defaults to "make") and use that. Use the MKDEP and MKDEP_OPTIONS
more. Our shell isn't bash, so change the instances of ">& /dev/null" to a more
compatible "> /dev/null 2>&1".
ini/Makefile
2fb5d15ce38d8d298c4fbf8c0bb336154a314b13 01-Jun-2004 Eric Anholt <anholt@FreeBSD.org> Build fixing for FreeBSD. GNU make is installed as gmake, so make a MAKE
variable (defaults to "make") and use that. Use the MKDEP and MKDEP_OPTIONS
more. Our shell isn't bash, so change the instances of ">& /dev/null" to a more
compatible "> /dev/null 2>&1".
akefile
5726a238d4d0d6dbe19ddb58cd07f7eeefb58fa2 12-May-2004 Brian Paul <brian.paul@tungstengraphics.com> remove the last line of the previous patch
ini/miniglx.c
86c7541f9b9b8f24d53724187729fdca25a84056 12-May-2004 Brian Paul <brian.paul@tungstengraphics.com> fix red/green/blueBits typos
ini/miniglx.c
751c9d096d7bca4cc7d2f8a8a4660d160d785134 12-May-2004 Brian Paul <brian.paul@tungstengraphics.com> obsolete in favor of regular Makefiles
ini/Makefile.solo
377ced2bf1423fbb982395c8a35b67ed9a6e0bf7 14-Apr-2004 Dave Airlie <airliedfreedesktop.org> Add agpmode to the example config file
ini/example.miniglx.conf
5d8f7b1197f641edbc0ed18d96a431e95e1923b5 14-Apr-2004 Dave Airlie <airliedfreedesktop.org> add agpmode to miniglx config file
ini/driver.h
ini/miniglx.c
c0b0b48e5be32a23ad347ab4e80e1c1406bd5b86 13-Apr-2004 Jon Smirl <jonsmirl@gmail.com> Add DRM_SOURCE_PATH to make system.
Needed for linux-solo to build
ini/Makefile
78c3edc174b5c28191ed2cfd29b5739b53dc839e 08-Apr-2004 Brian Paul <brian.paul@tungstengraphics.com> don't include GL/gl.h, rely on glheader.h
ini/dispatch.c
bb16df17674eafa5691e2ec645de78e6e407af24 08-Apr-2004 Brian Paul <brian.paul@tungstengraphics.com> move 'id' declaration so it's C compliant
ini/dri_util.c
de0ee3187c8fffb52327f9a5680a3eafea872276 26-Mar-2004 Brian Paul <brian.paul@tungstengraphics.com> New Makefile system
akefile
ini/Makefile
fda7215db36ddee1900cab38b1435f1d73ac7858 24-Mar-2004 Brian Paul <brian.paul@tungstengraphics.com> rename class to c_class if using C++ (bug 922294)
ini/miniglx.c
aae2fde0e6758769c11611d0951b2cb0e4ee24eb 16-Mar-2004 Dave Airlie <airliedfreedesktop.org> remove version number faking, shouldn't be needed anymore
ini/dri_util.c
ae4a1cc0666860bf5cc37a5cb549afc9aa5448b0 11-Mar-2004 Jon Smirl <jonsmirl@gmail.com> Adjustments to make everything use IOCTL/sarea defines in DRM instead
of glx/mini. removes glx/mini/drm.h glx/mini/sarea.h
ini/Makefile.solo
ini/dri_util.c
ini/dri_util.h
ini/driver.h
ini/drm.h
ini/miniglx_events.c
ini/sarea.h
5102075330933605ca6ac58d6fe9e4d537808646 27-Jan-2004 Brian Paul <brian.paul@tungstengraphics.com> change PFNGLXGETUSTPROC's argument from uint64_t to int64_t to match the DRI
ini/dri_util.h
520ef4b5bcb8e950675c6e0d55cb50dd590c1bc7 12-Dec-2003 Brian Paul <brian.paul@tungstengraphics.com> new makefiles
ini/Makefile.X11
ini/Makefile.solo
48383f10c9969a63fb429cc4e3e9d04c5482a6aa 09-Dec-2003 Keith Whitwell <keith@tungstengraphics.com> Remove $Id tag
ini/miniglx.c
fde2b9750ea9f37b018aaa26c9bbb6454cd1c016 06-Dec-2003 Brian Paul <brian.paul@tungstengraphics.com> basic API work for FBConfigs & Pbuffers
ini/miniglx.c
b55921db4816afd2810b8bb59d7301b936ba162c 24-Oct-2003 Jon Smirl <jonsmirl@gmail.com> Fix for missing GLAPIENTRYP definition
ini/dispatch.c
bcc6eddd335e97d49ed2ef3a1440f94d58dce12d 21-Oct-2003 Jon Smirl <jonsmirl@gmail.com> Update DRI drivers to current DRI CVS and make them work.
ini/dri_util.h
ini/miniglx.c
5fd77da4f691ee7ace6dfa9d2ff49535899f895d 03-Oct-2003 Brian Paul <brian.paul@tungstengraphics.com> improved 'clean' targets (Otto Solares)
ini/Makefile.X11
5df82c82bd53db90eb72c5aad4dd20cf6f1116b1 22-Aug-2003 Brian Paul <brian.paul@tungstengraphics.com> patch to import Jon Smirl's work from Bitkeeper
ini/Makefile.X11
ini/NOTES
ini/dispatch.c
ini/dri.h
ini/dri_util.c
ini/dri_util.h
ini/driver.h
ini/drm.h
ini/drmtest.c
ini/example.miniglx.conf
ini/miniglx.c
ini/miniglxP.h
ini/miniglx_events.c
ini/sarea.h
ini/xf86drm.c
ini/xf86drm.h