aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common
Commit message (Collapse)AuthorAgeFilesLines
* Revert "glapi: Implement optional dispatch logging"Kristian Høgsberg2010-09-091-12/+0
| | | | | | 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.
* glapi: Implement optional dispatch loggingKristian Høgsberg2010-09-091-0/+12
| | | | | | | 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.
* dri: Make it a little clearer that we're not dereferencing a NULL pointernobled2010-09-071-1/+2
|
* dri: Use the right type for the API tokennobled2010-09-071-1/+3
| | | | | Pass mesa_api to CreateContext, and abort early if the requested API isn't recognized.
* dri: Get prototype for _mesa_destroy_compiler().Eric Anholt2010-08-271-0/+1
| | | | Bug #29665.
* glsl2: Free the shader compiler at dri screen destruction.Eric Anholt2010-08-181-0/+2
| | | | | | Hooray, we can valgrind again without adding suppressions. This also adds an interface for use by an implementation of glReleaseShaderCompiler().
* dri2: Clean up the common dri2 options at screen destroy.Eric Anholt2010-08-182-3/+8
|
* Merge branch 'master' into glsl2Ian Romanick2010-08-131-0/+1
|\
| * dri: Add missing header to dri_metaops.c.Vinson Lee2010-07-291-0/+1
| | | | | | | | Add context.h for FLUSH_VERTICES symbol.
* | mesa: Avoid using c++ keyword in dri_util.h when compiled with c++.Eric Anholt2010-08-131-0/+4
|/
* glx: Remove support for MESA_swap_frame_usageKristian Høgsberg2010-07-192-36/+0
| | | | | The extension never worked, the implementation returns GLX_BAD_CONTEXT when enabling the frame tracking.
* mesa: rename src/mesa/shader/ to src/mesa/program/Brian Paul2010-06-101-1/+1
|
* mesa: move arbprogram.[ch] to main/Brian Paul2010-06-101-1/+1
|
* i965: Add support for GL_ALPHA framebuffer objects.Eric Anholt2010-06-101-0/+32
|
* gallium: fix TFP on galliumDave Airlie2010-05-311-0/+1
| | | | | | | | This fixes an uninitialised value use in the dri2 st when doing TFP. It uses the driContextPriv which isn't initialised at alloc time. Signed-off-by: Dave Airlie <[email protected]>
* intel: Drop viewport hack when we canKristian Høgsberg2010-05-112-0/+3
|
* swrast: Correct include for mtypes.hJakob Bornecrantz2010-05-031-1/+1
|
* Update drisw state tracker to use new API aware context createXavier Chantry2010-05-022-2/+6
| | | | | | | | | Even though swrast defines its own __DriverAPIRec it still shares the driCreateNewContext() implementation from dri_util.c. So the CreateContext prototypes have to match in the two __DriverAPIRecs. Reviewed-by: Jakob Bornecrantz <[email protected]> Signed-off-by: Xavier Chantry <[email protected]>
* Merge branch 'gles2-2'Kristian Høgsberg2010-05-022-5/+60
|\ | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_util.h
| * dri: Add DRI entrypoints to create a context for a given APIKristian Høgsberg2010-04-282-5/+61
| |
* | dri_util: Assume error checking is done properly in glXMakeCurrentJakob Bornecrantz2010-04-271-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In short what the code did before: __DRIscreen *psp = NULL; if (pcp) psp = pcp->psb; assert(psp); if (psp->stuff) other_stuff(); return psb->even_more(pcp); Remove all that stupid checking which still segfaults/asserts later on and just do what we do in driUnbindContext. Also limited testing show libGL never call driUnbindContext or driBindContext with cPriv == NULL.
* | dri: Remove unnecessary header.Vinson Lee2010-04-241-1/+0
| |
* | DRI2/GLX: check for vblank_mode in DRI2 GLX codeJesse Barnes2010-04-221-0/+11
| | | | | | | | | | Re-add support for the vblank_mode environment and configuration variable. Useful for benchmarking and app control.
* | DRI2: add config query extensionJesse Barnes2010-04-222-0/+50
|/ | | | | Add a new DRI2 configuration query extension. Allows for DRI2 client code to query for common DRI2 configuration options.
* Merge branch '7.8'Jesse Barnes2010-04-191-1/+1
|\
| * mesa: Use __OpenBSD__ to check for OpenBSD.Matthieu Herrb2010-04-191-1/+1
| | | | | | | | Signed-off-by: Brian Paul <[email protected]>
* | dri: Drop another unused __DRIscreen fieldKristian Høgsberg2010-03-301-5/+0
| |
* | dri: Drop the unused dummyContextKristian Høgsberg2010-03-302-36/+0
| |
* | dri: Drop an unused __DRIcontext fieldKristian Høgsberg2010-03-301-5/+0
| |
* | drisw: fix use after free (bug 27370)George Sapountzis2010-03-301-2/+0
| |
* | dri/common: add comment about DRISW wrt DRI1 / DRI2George Sapountzis2010-03-261-36/+47
| |
* | drisw_util: add fields for gallium swrast_driGeorge Sapountzis2010-03-252-0/+16
| |
* | dri: fix dri_test.c for non-TLS buildLuca Barbieri2010-03-231-2/+7
| | | | | | | | | | _glapi_Context and _glapi_Dispatch have different constness between TLS and non-TLS builds.
* | dri: add _glthread_GetID to dri_test.c dummy glapiLuca Barbieri2010-03-231-0/+6
| |
* | dri: make unresolved symbol test link work even without a libGL.soLuca Barbieri2010-03-231-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | dri: test whether the built drivers have unresolved symbolsLuca Barbieri2010-03-231-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]> and Michel Daenzer <[email protected]> for helping with this. Signed-off-by: Luca Barbieri <[email protected]> Acked-by: Brian Paul <[email protected]>
* | rename dri_sw to drisw_util for consistencyGeorge Sapountzis2010-03-212-2/+2
| |
* | dri/common: mv __driUtilMessage to utils.cGeorge Sapountzis2010-03-155-31/+28
| | | | | | | | allows to link with xmlconfig without dri_util, and has nothing drm-specific.
* | dri/swrast: drop mtypes.h from dri_swGeorge Sapountzis2010-03-151-1/+1
| |
* | dri/swrast: port to dri_sw (drawable)George Sapountzis2010-03-151-4/+1
| |
* | dri/swrast: port to dri_sw (context)George Sapountzis2010-03-152-2/+2
| |
* | dri: add dri_sw.c helperGeorge Sapountzis2010-03-152-0/+382
|/ | | | | This is dri_util.c stripped from the drm-specific bits and will be used for both classic and gallium swrast_dri.so
* Grammar and spelling fixesJeff Smith2010-03-121-1/+1
| | | | | Signed-off-by: Jeff Smith <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* DRI: Put back missing break-statementIan Romanick2010-03-041-0/+1
| | | | | | | | The break in the __DRI_ATTRIB_RENDER_TYPE case was accidentally removed in commit 5cf2c5851bcd29c2d53bb04ab692b4b156f5a74d. This puts it back. Signed-off-by: Ian Romanick <[email protected]>
* DRI: Remove support for color-index visualsIan Romanick2010-03-031-10/+5
| | | | Signed-off-by: Ian Romanick <[email protected]>
* dri: Remove dead code.Vinson Lee2010-02-272-36/+10
|
* dri: Add assert to check for null pointer dereference.Vinson Lee2010-02-271-0/+1
|
* dri: Assert pointer is not null before dereferencing.Vinson Lee2010-02-271-0/+1
|
* remove hack for miniglx from dri/utils.cGeorge Sapountzis2010-02-261-3/+2
|
* dri: remove old assertion (see bug 26734)Brian Paul2010-02-241-8/+0
| | | | (cherry picked from commit 293f4d51b473783d5c5ab773a1c438e0a2fe46f2)