aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'dri2'Kristian Høgsberg2007-10-123-459/+185
|\ | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i915/intel_screen.c
| * Add a version field to __DRIextension.Kristian Høgsberg2007-10-111-5/+6
| |
| * Move new texOffset extension to the new extension mechanism.Kristian Høgsberg2007-10-111-3/+0
| |
| * Convert a left-over private void * to __DRIcontext *.Kristian Høgsberg2007-10-111-3/+3
| |
| * Add a DRI_ReadDrawable marker extension to signal read drawable capability.Kristian Høgsberg2007-10-112-0/+9
| |
| * Move media stream counter entry points to new extension.Kristian Høgsberg2007-10-112-40/+6
| |
| * Move GLX_MESA_swap_frame_usage DRI entry points to the new mechanism.Kristian Høgsberg2007-10-112-7/+12
| |
| * Move swap_interval to new extension mechanism.Kristian Høgsberg2007-10-103-9/+36
| |
| * Move the copySubBuffer extension over to the new mechanism.Kristian Høgsberg2007-10-102-7/+18
| |
| * Implement new screen extension API.Kristian Høgsberg2007-10-101-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Stop passing in unused fbconfigs to createNewScreen.Kristian Høgsberg2007-10-102-16/+0
| |
| * Pull createNewScreen entry point into dri_util.c.Kristian Høgsberg2007-10-102-36/+35
| | | | | | | | | | | | | | | | This pulls the top level createNewScreen entry point out of the drivers and rewrites __driUtilCreateNewScreen in dri_util.c to be the new entry point. The change moves more logic into the common/ layer and changes the createNewScreen entry point to only be defined in one place.
| * Replace open-coded major, minor, and patch version fields with __DRIversionRec.Kristian Høgsberg2007-10-102-30/+6
| |
| * Convert all DRI entrypoints to take pointers to __DRI* types.Kristian Høgsberg2007-10-101-37/+37
| | | | | | | | | | | | | | | | | | | | 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.
| * Drop createContext and destroyContext from DRIinterfaceMethods.Kristian Høgsberg2007-10-102-16/+3
| | | | | | | | | | | | | | | | | | | | 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.
| * Drop createDrawable and destroyDrawable fron DRIinterfaceMethods.Kristian Høgsberg2007-10-102-14/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Drop __DRInativeDisplay and pass in __DRIscreen pointers instead.Kristian Høgsberg2007-10-102-114/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Remove XIDs from DRI interface (see #5714).Kristian Høgsberg2007-10-052-187/+16
| |
* | dri: remove ttm common code since superioctl is device specificDave Airlie2007-10-121-598/+0
| |
* | i915: fixup up bufmgr to pass num buffers to kernelDave Airlie2007-10-093-52/+14
| | | | | | | | remove unneeded entry points
* | i915: add superioctl support to the ttm codepaths.Dave Airlie2007-10-043-5/+5
| | | | | | | | | | gears now runs for about 10-15 seconds with some artifacts before falling over.
* | i915: add superioctl initial support inside bufmgr ttmDave Airlie2007-10-033-5/+5
| |
* | i915/drmbuf: attempt to push relocations into buffer managerDave Airlie2007-10-034-2/+289
|/ | | | | This moves the relocations into the buffer manager in prepration for a superioctl move.
* drm: update bufmgr code to reflect changes in drm interfaceDave Airlie2007-09-251-2/+2
|
* Fix buffer/fence reference counting due to Destroy vs Unreference difference.Eric Anholt2007-09-211-7/+39
| | | | | While here, remove the unnecessary fence type saving for the wait ioctl, as a 0 argument for type means "use your other saved copy".
* Add disabled-by-default tracing of TTM bufmgr operations.Eric Anholt2007-09-201-0/+34
|
* Fix flipped sign to strerror.Eric Anholt2007-09-201-2/+2
|
* Merge branch 'master' into i915-unificationEric Anholt2007-09-203-6/+18
|\ | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_drmpool.c src/mesa/drivers/dri/i915tex/i915_vtbl.c src/mesa/drivers/dri/i915tex/intel_batchbuffer.c src/mesa/drivers/dri/i915tex/intel_context.c
| * fix spantmp2 READ_RGBA inline asm (#11931)Dan Torop2007-08-121-1/+1
| |
| * fix mem leak (bug 11793)Brian2007-08-011-0/+1
| |
| * Clear pointers to freed cliprects.Michel Dänzer2007-07-101-0/+2
| | | | | | | | Not doing this could lead to double frees under rare circumstances.
| * Add a few missing GL 2.0 entrypoints, regenerate related files.Brian2007-06-281-5/+15
| | | | | | | | | | | | | | | | | | Specifically: glVertexAttrib4bv glVertexAttrib4iv glVertexAttrib4ubv glVertexAttrib4uiv glVertexAttrib4usv
* | Add some error reporting and a couple of assertions to TTM bufmgr.Eric Anholt2007-09-181-0/+8
| |
* | Convert TTM code to require the server provide buffers for front/back/depth.Eric Anholt2007-08-162-28/+20
| | | | | | | | | | | | This removes the use of fake buffers from the driver, such that it could probably be removed from the interface. It also should assist in proper synchronization of access.
* | Fix bad printf on TTM fence_wait failure.Eric Anholt2007-08-161-1/+1
| |
* | Don't forget to update buffer offset after validation.Eric Anholt2007-08-161-0/+2
| |
* | Don't try to use kernel BO flags in dri_bufmgr_fake internals.Eric Anholt2007-08-021-9/+10
| |
* | bufmgr_fake: eliminate the referenced list, which is now just on_hardware.Eric Anholt2007-07-311-41/+8
| |
* | Add notes about bufmgr initialization failures.Eric Anholt2007-07-251-0/+1
| |
* | bufmgr_ttm: hook up destroy function, track buffer names.Eric Anholt2007-07-061-1/+5
| |
* | bufmgr_fake: Keep the bufmgr lock held while freeing a block.Eric Anholt2007-07-051-1/+1
| |
* | Merge branch 'i915-unification' of ↵Eric Anholt2007-07-052-6/+48
|\ \ | | | | | | | | | git+ssh://people.freedesktop.org/~anholt/mesa into i915-unification
| * | Improve fake bufmgr debugging, and don't try to migrate static buffers.Eric Anholt2007-06-211-5/+34
| | |
| * | Fix TTM static allocation flags.Eric Anholt2007-06-181-1/+1
| | |
| * | Test for TTM presence initially rather than test for lack of classic aperture.Eric Anholt2007-06-181-0/+13
| | |
* | | Add buffer manager destroy function.Eric Anholt2007-05-314-2/+29
|/ /
* | Replace the flags/hint arguments to bo_alloc{,_static} with a location mask.Eric Anholt2007-05-244-30/+55
| | | | | | | | | | | | | | | | | | | | | | | | Now, allocations only take locations, rather than a variety of unused flags. The only interesting flag before was the no_move/no_evict pair for scanout and similar buffers, which the DRI drivers don't use. That will be readded when we get to using this code for display buffer allocation, by adding a pin/unpin call (dynamic pinning/unpinning may be useful for VT switching and root window resizing). This commit changes one instance of DRM_BO_FLAG_MEM_LOCAL with DRM_BO_FLAG_MEM_TT, which appeared to have been unintentional.
* | Merge branch 'master' into i915-unificationEric Anholt2007-05-242-0/+9
|\| | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i915tex/i830_texstate.c src/mesa/drivers/dri/i915tex/i915_texstate.c
| * Add interfaces for overriding texture images with driver specific 'offsets'.Michel Dänzer2007-05-222-0/+9
| | | | | | | | | | To be used by AIGLX for GLX_EXT_texture_from_pixmap without several additional data copies.
* | Merge branch 'master' into i915-unificationEric Anholt2007-05-182-1/+14
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_bufmgr.c src/mesa/drivers/dri/common/dri_drmpool.c src/mesa/drivers/dri/i915tex/intel_batchpool.c src/mesa/drivers/dri/i915tex/intel_buffer_objects.c src/mesa/drivers/dri/i915tex/intel_regions.c src/mesa/drivers/dri/i915tex/intel_screen.c src/mesa/drivers/dri/i915tex/intel_screen.h