summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common/utils.c
AgeCommit message (Collapse)Author
2005-07-24All elements of pre-DRI_NEW_INTERFACE_ONLY are removed. This allowsIan Romanick
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.
2005-06-30Replace add_newer_entrypoints (src/mesa/main/context.c) withIan Romanick
device-specific code. A new Python script (src/mesa/glapi/extension_helper.py) generates a list of all entry-points for all known extensions. Each driver the selects only the extensions that it needs and enables the via either driInitExtensions or driInitSingleExtension. This code has been compile-tested on a drivers, but has only been run-tested on mga and i915 (on i830 hardware). These changes were discussed at length on the mesa3d-dev mailing list. http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2
2005-03-22Calculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer inKeith Whitwell
driFillInModes().
2005-01-26new version check to allow to test for a range of ddx major versions, ↵Roland Scheidegger
instead of just one major version
2004-12-14uint*t -> u_int*t changesAlan Hourihane
2004-10-13Initial support for PowerPC specific code in Mesa and DRI drivers. DRIIan Romanick
drivers built on PowerPC systems should now show things like "PowerPC" or "PowerPC/Altivec" in the GL_RENDERER string. The VMX moniker is used for Altivec/Velocity Engine/VMX SIMD additions. I chose this not because I work for IBM but because it's a LOT shorter to type. :)
2004-10-13Refactor the code in driGetRendererString a bit to make it easier toIan Romanick
add support for features of non-x86 CPU types.
2004-07-04Patch removes _SOLO definition needed for mesa-solo. mesa-soloJon Smirl
uses the NEW_INTERFACE now so _SOLO isn't necessary anymore. Tested with the hardware that I own.
2004-06-15Fix a couple typeos in the tables for driFillInModes.Ian Romanick
2004-06-03Add a new function, driFillInModes, that is to be used by drivers toIan Romanick
create the set of support __GLcontextModes. This should replace the current driver-specific fill_in_modes functions.
2004-06-02driCheckDriDdxDrmVersion uses a function that is not available toIan Romanick
drivers when DRI_NEW_INTERFACE_ONLY is defined. #ifndef it away in that situation. Add a new function, driCheckDriDdxDrmVersion2, that is passed in the version information that is already supplied to __driCreateNewScreen. Part of the reason that information is supplied to __driCreateNewScreen is so that the driver doesn't have to make those calls to get it! Modify all drivers that support the new interface to use the new function instead of the old. As soon as all drivers support the new interface, driCheckDriDdxDrmVersion can be removed.
2004-04-26bring over build fixes from stable branchAlan Hourihane
2004-03-15extend SOLO code so the DDX version isn't checkedDave Airlie
2003-12-11add driClipRectToFramebuffer helper functionKeith Whitwell
2003-12-04build fixAlan Hourihane
2003-08-06Shared dri driver resourcesKeith Whitwell