aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common
Commit message (Collapse)AuthorAgeFilesLines
* Fix build on systems where "python" is python 3.Kenneth Graunke2010-10-271-1/+1
| | | | | | | | | | | First, it changes autoconf to use a "python2" binary when available, rather than plain "python" (which is ambiguous). Secondly, it changes the Makefiles to use $(PYTHON) $(PYTHON_FLAGS) rather than calling python directly. Signed-off-by: Xavier Chantry <[email protected]> Signed-off-by: Matthew William Cox <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-1312-50/+50
|
* Drop GLframebuffer typedef and just use struct gl_framebufferKristian Høgsberg2010-10-132-2/+2
|
* Rename GLvisual and __GLcontextModes to struct gl_configKristian Høgsberg2010-10-135-14/+14
|
* gl: Remove unused GLcontextModes fieldsKristian Høgsberg2010-10-132-5/+1
|
* Get rid of GL/internal/glcore.hKristian Høgsberg2010-10-132-2/+0
| | | | | | | __GLcontextModes is always only used as an implementation internal struct at this point and we shouldn't install glcore.h anymore. Anything that needs __GLcontextModes should just include the struct in its headers files directly.
* dri/common: remove duplicated includeNicolas Kaiser2010-09-301-4/+0
| | | | | | Remove duplicated include. Signed-off-by: Brian Paul <[email protected]>
* dri: Add GET_PROGRAM_NAME definition for Mac OS X.Vinson Lee2010-09-281-0/+3
|
* mesa: Force GL_ARB_copy_buffer to always be enabledIan Romanick2010-09-271-0/+2
| | | | As per discussions at XDS.
* dri: Pass the __DRIscreen and the __DRIscreen private back to image lookupKristian Høgsberg2010-09-222-0/+2
| | | | | We will typically have a current context when we need to lookup the image, but the lookup implementation don't need it so drop it.
* Fix typos in comments and debug output strings.Timo Wiren2010-09-202-5/+5
| | | | Bug #30208.
* 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
| |