aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_regions.c
Commit message (Collapse)AuthorAgeFilesLines
* intel: Use dri_bo_get_tiling to get tiling mode of buffers we get from names.Eric Anholt2008-10-271-26/+17
| | | | | | Previously, we were trying to pass a name to the GEM GET_TILING_IOCTL, which needs a handle, and failing. None of our buffers were tiled yet, but they will be at some point with DRI2 and UXA.
* intel: Fix a number of memory leaks on context destroy.Eric Anholt2008-09-261-0/+10
|
* intel: Add a width field to regions, and use it for making miptrees in TFP.Eric Anholt2008-09-121-6/+10
| | | | | Otherwise, we would use the pitch as width of the texture, and compiz would render the pitch padding on the right hand side.
* intel: track bufmgr move to libdrm_intel and bufmgr_fake irq emit/wait change.Eric Anholt2008-09-101-1/+0
|
* DRI2: Drop sarea, implement swap buffers in the X server.Kristian Høgsberg2008-08-291-2/+5
|
* Revert "Revert "Merge branch 'drm-gem'""Dave Airlie2008-08-241-51/+111
| | | | This reverts commit 7c81124d7c4a4d1da9f48cbf7e82ab1a3a970a7a.
* Revert "Merge branch 'drm-gem'"Dave Airlie2008-08-241-111/+51
| | | | | | | | This reverts commit 53675e5c05c0598b7ea206d5c27dbcae786a2c03. Conflicts: src/mesa/drivers/dri/i965/brw_wm_surface_state.c
* intel: remove unneeded mem type and argsDave Airlie2008-08-141-10/+5
|
* drm-gem: Use new GEM ioctls for tiling state, and support new swizzle modes.Eric Anholt2008-07-111-29/+100
|
* intel: Fix locking when doing intel_region_cow().Eric Anholt2008-06-261-2/+2
| | | | | This was broken in the merge of 965 blit support. It tried to lock only when things were already locked.
* intel: Replace sprinkled intel_batchbuffer_flush with MI_FLUSH or nothing.Eric Anholt2008-06-261-4/+0
| | | | | | | | | Most of these were to ensure that caches got synchronized between 2d (or meta) rendering and later use of the target as a source, such as for texture miptree setup. Those are replaced with intel_batchbuffer_emit_mi_flush(), which just drops an MI_FLUSH. Most of the remainder were to ensure that REFERENCES_CLIPRECTS batchbuffers got flushed before the lock was dropped. Those are now replaced by automatically flushing those when dropping the lock.
* [intel] Convert drivers to using libdrm bufmgr code.Eric Anholt2008-06-031-20/+13
|
* [intel] Fix build for GEM. TTM is now disabled, and fencing is gone.Eric Anholt2008-05-021-3/+3
| | | | | | | Fencing was used in two places: ensuring that we didn't get too many frames ahead of ourselves, and glFinish. glFinish will be satisfied by waiting on buffers like we would do for CPU access on them. The "don't get too far ahead" is now the responsibility of the execution manager (kernel).
* Hook up i915 driver to new DRI2 infrastructure.Kristian Høgsberg2008-02-141-9/+39
|
* [965] Bug 14314: assertion failure with with !AIGLX and depth=24 visual.Eric Anholt2008-02-051-1/+4
|
* Replace usage of DRM_BO_FLAG_MEM_TT in intel_regions.c with local/cached.Eric Anholt2008-02-041-2/+8
| | | | | | In addition to potentially binding when it was about to be mapped anyway, failure to use CACHED_MAPPED means eating a full wbinvd on validate. Thanks to airlied for catching this.
* [intel] use _mesa_copy_rect for upload compressed texture,Zou Nan hai2008-02-011-1/+1
| | | | this fix bad texture issue in some games(UT and quake).
* [intel] Clean up references to screen buffer metrics.Kristian Høgsberg2008-01-221-3/+3
| | | | | | The screen wide info such as pitch and cpp are obsoleted by the FBO changes, so clean up the last few references to those, except for setting up the legacy screen regions.
* [intel] Merge intel_buffer_objects to shared.Eric Anholt2007-12-151-3/+8
| | | | | 965 gains fixed TTM typing of the buffer object buffers and unused PBO functions, and 915 gains buffer size == 0 fixes from 965.
* [965] Use shared intel_regions.c.Eric Anholt2007-12-151-0/+2
| | | | | This adds (so far) unused PBO functions, and holding the lock while writing to regions (which may be shared static screen regions).
* [intel] Remove useless intel_region_idle.Eric Anholt2007-12-141-17/+0
| | | | | The idling it was trying to ensure was covered by the intel_miptree_image_map()->intel_region_map() that immediately followed it.
* [intel] Move bufmgr back to context instead of screen, fixing glthreads.Eric Anholt2007-12-121-110/+110
| | | | | | | | Putting the bufmgr in the screen is not thread-safe since the emit_reloc changes. It also led to a significant performance hit from pthread usage for the attempted thread-safety (up to 12% of a cpu spent on refcounting protection in single-threaded 965). The motivation had been to allow multi-context bufmgr sharing in classic mode, but it wasn't worth the cost.
* [intel] Add 965 support to shared intel_blit.cEric Anholt2007-11-161-31/+24
| | | | | This requires that regions grow a marker of whether they are tiled or not, because fence (surface) registers are ignored by the 965 2D engine.
* [i915] Pass static region names in so debugging says more than "static region".Eric Anholt2007-11-161-6/+8
|
* [intel] Move over files that will be shared with 965-fbo work.Eric Anholt2007-11-091-0/+483