History log of /external/mesa3d/src/mesa/drivers/dri/common/dri_test.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
042a333028eba49f21b45cafaf9dd15d34c68033 10-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> Revert "glapi: Implement optional dispatch logging"

This reverts commit b9abc6139a310677a37754ea7172d976dbf56979 and the
follow on fixes (7aae704 and 6fe1b47). It's changing the glapi/driver
ABI and causes a number of problems for debug/non-debug builds.
/external/mesa3d/src/mesa/drivers/dri/common/dri_test.c
b9abc6139a310677a37754ea7172d976dbf56979 09-Sep-2010 Kristian Høgsberg <krh@bitplanet.net> glapi: Implement optional dispatch logging

There's a useful feature buried in glapi to log all API calls to stderr.
Unfortunately it requires editing the code and then it's enabled
unconditionally for that build. This patch builds in API logging for
debug builds and makes it run-time switchable by setting MESA_DEBUG=dispatch.
/external/mesa3d/src/mesa/drivers/dri/common/dri_test.c
3790199e041236ab8db1effaba2922e10b8b81ac 23-Mar-2010 Luca Barbieri <luca@luca-barbieri.com> dri: fix dri_test.c for non-TLS build

_glapi_Context and _glapi_Dispatch have different constness between
TLS and non-TLS builds.
/external/mesa3d/src/mesa/drivers/dri/common/dri_test.c
5f229547a525554ded621f4f245e22c9090e9205 23-Mar-2010 Luca Barbieri <luca@luca-barbieri.com> dri: add _glthread_GetID to dri_test.c dummy glapi
/external/mesa3d/src/mesa/drivers/dri/common/dri_test.c
7e246e6aa63979d53731a591f4caee3651c1d96b 23-Mar-2010 Luca Barbieri <luca@luca-barbieri.com> dri: make unresolved symbol test link work even without a libGL.so

Currently the test link uses -lGL to define the glapi symbols.

This makes it impossible to build DRI drivers on systems without
Mesa installed and without building the libGL from the Mesa tree
first.

Some automated build systems trigger this problem.

This commit removes -lGL and instead adds a dummy implementation of
glapi to dri_test.c

This, along with Kristian's commit, should fix all known regressions
due to the addition of unresolved symbol checking.
/external/mesa3d/src/mesa/drivers/dri/common/dri_test.c
3e17a5b047124c46ee45dbd1848127c67e0d62f3 15-Mar-2010 Luca Barbieri <luca@luca-barbieri.com> dri: test whether the built drivers have unresolved symbols

This is a different approach to solving this problem that the patch
I previously posted, and unlike that, should not cause any problems.

Right now undefined symbols in DRI drivers will still allow the
build to succeed.

As a result, people modifying drivers they cannot test risk creating
unloadable drivers with no easy way of automatically avoiding it.

For instance, the modifications to nv50 for context transfers caused
such an issue recently.

Unfortunately, just adding -Wl,--no-undefined doesn't work, because
the DRI drivers depend on glapi symbols, but do not depend on
libGL.so.1

Adding -lGL is not the correct solution since DRI drivers are not loaded
just by libGL, but also by X and possibly by other clients.

So, this patch simply tries to build an executable linked to the DRI
driver and to libGL.
If the DRI driver contains any undefined symbols not satisfied by its
dependencies or by libGL, this will fail.

This solution does not alter the built drivers, and does not significantly
slow down the build process.

All classic DRI drivers as well as all the Gallium drivers with configure
options compiled successfully with this change.

Thanks to Xavier Chantry <chantry.xavier@gmail.com> and
Michel Daenzer <michel@daenzer.net> for helping with this.

Signed-off-by: Luca Barbieri <luca@luca-barbieri.com>
Acked-by: Brian Paul <brian.e.paul@gmail.com>
/external/mesa3d/src/mesa/drivers/dri/common/dri_test.c