summaryrefslogtreecommitdiff
path: root/src/i830_dri.c
AgeCommit message (Collapse)Author
2009-03-09Flip the update_dri_buffers test around to only run when DRI1 is active.Eric Anholt
Fixes segfaults at startup with DRI2 and load detection, or with DRI disabled entirely.
2009-03-06DRI1: Update sarea (and other information) when CRTC configuration changes.Eric Anholt
Bug #14423. Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06intel: Nuke shared-entity support (zaphod mode).Eric Anholt
It's been broken for years now, and KMS offers a much better chance of getting this working sensibly without making a mess of the 2D driver.
2009-02-27Only allocate pixmaps aligned for tiling when requested by DRI2 GetBuffers.Eric Anholt
This saves massive quantities of memory on pre-965 since the DRI2 tiling enable caused the minimum size of any pixmap to be 1MB.
2009-02-24Remove a handful of unused variable warnings.Kristian Høgsberg
2009-02-23Use stat() and the dev_t to find the drm device filename.Kristian Høgsberg
Simpler and more robust. Works when we haven't set the device PCI ID, ie when not going through the legacy DRI module.
2009-02-02Un-revert the I915_SETPARAM_NUM_USED_FENCES commit reverted by accident.Kristian Høgsberg
Oops, my bad. Reverted 8d4bc36fae50b09a73ba2cfab920adb32141a358 since my kernel doesn't yet have the new param, committed the revert by accident.
2009-02-02Fix last-minute "cleanup" that broke the patch.Kristian Høgsberg
2009-01-27dri2: Use modesetting's master fd instead of opening our own non-master.Eric Anholt
This fixes failure to auth DRI2 clients under KMS.
2009-01-27Support tiled back/depth on 915-class hardware with DRI2.Jesse Barnes
Set alignments, tile settings and flags correctly in the 2D driver to support tiled rendering. UXA's create pixmap function currently assumes the worst about the alignment constraints; that should probably be fixed. Some of the 1M alignment fixes could probably be done more cleanly as well.
2009-01-20Remove the pageflipping infrastructure.Owain G. Ainsworth
It was broken on current kernels, and deprecated anyway.
2009-01-20Remove triple-buffering supportOwain G. Ainsworth
It never worked with any upstream linux kernel, and is quite heavily deprecated. A new solution based around DRI2 will probably be forthcoming. Pageflipping itself is next.
2009-01-06Disable DRI2 buffer tiling on non-965, as those need fence regs for 2D blits.Eric Anholt
This fixes glReadPixels failure on single-channel 915GM, as the software code for readpixels was actually the only code in the driver doing tiling against these buffers (everything else says "rely on fence registers", since the 2D blits don't have a "don't rely on fence registers" option).
2008-12-08Fix DRI2 compiling warningZhenyu Wang
2008-12-03Enable tiling for DRI2 back/depth buffers.Eric Anholt
This results in allocation overhead for small (8x8-128x128 or so) pixmaps with DRI2, but we're interested in looking at tiling them in general in the near future, anyway.
2008-11-17Merge commit 'origin/master' into dri2Kristian Høgsberg
Conflicts: src/i830_dri.c src/i830_driver.c src/i830_memory.c
2008-10-19Use pipes, not planes for sarea geometry dataKeith Packard
Vblank in the kernel is far simpler if it deals with pipes instead of planes, so we're changing both user and kernel side. This is the user mode side. This fixes both i830_crtc_dpms and i830PipeSetBase, the two functions which copy geometry from the crtc to the sarea. Signed-off-by: Keith Packard <keithp@keithp.com>
2008-10-19Remove accidental 'return;' left at the top of I830DRIInitBuffersKeith Packard
I was testing the behaviour of the XAA-based DRI buffer drawing code for tiled buffers and accidentally left I830DRIInitBuffers disabled. Signed-off-by: Keith Packard <keithp@keithp.com>
2008-10-17Handle differently tiled front/back/depth/third in DRI window managementKeith Packard
When moving or clearing the extra buffer contents associated with DRI windows, the XAA code needs to see which buffer is being manipulated in the Setup functions to program the tiling values correctly. Calling I830SelectBuffer and not then calling I830Setup... would result in mis-tiled rendering. Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Eric Anholt <eric@anholt.net>
2008-10-16Don't handle irq in GEM modeZhenyu Wang
2008-10-14Update to DRI2 changes.Kristian Høgsberg
Implement DRI2CopyRegion and provide drm device filename to DRI2 module.
2008-09-11Fix build failures that should have been in the previous merge commit.Eric Anholt
2008-09-10Merge branch 'master' into dri2Eric Anholt
Conflicts: src/i830_batchbuffer.c src/i830_display.c
2008-09-09Track the move of irq emit/wait to fake bufmgr.Eric Anholt
2008-09-09Track move of bufmgr functions to libdrm_intel.Eric Anholt
2008-09-04DRI2: Move pixmap pitch alignment for use with depth to pixmap create.Eric Anholt
The previous location for pitch fixup would have only worked when depth was used with the backbuffer, and no page flipping or other adventures occurred.
2008-09-04DRI2: Emit the MI_FLUSH before flushing batch in swapbuffers.Eric Anholt
Should fix issues with swapbuffers flushing to front buffer on 965.
2008-09-03Don't set up sarea or drm mappings in DRI2 mode.Eric Anholt
2008-08-29Add DRI2 support.Kristian Høgsberg
2008-08-08Make it actually build the kernel stuff if possibleJesse Barnes
Fixup the kernel stuff to have a slightly better chance of working. Still need to fixup the EXA pixmap functions.
2008-08-08Initial port of kernel modesetting from old intel-kernelmode branchJesse Barnes
Thanks airlied!
2008-08-05Use dri_bo for all object allocations, including pixmaps under uxaKeith Packard
2008-08-05Add UXA - the unified memory acceleration architecture.Keith Packard
This eliminates the cost of EXA migration management while providing full pixmap allocation control to the driver. The goal is to make something useful for UMA drivers.
2008-08-05Merge branch 'master' into drm-gemJesse Barnes
Conflicts: src/i830_driver.c
2008-07-30Reorder visuals reported by the intel driverTomas Carnecky
The root window visual can not be changed. Neither at runtime nor through the configuration file. The xserver simply selects the first one that matches the class (usually TrueColor). I need a root window visual with stencil buffer because my compiz plugin uses the it for some operations. This patch reorders the visuals that the 3D driver reports and puts the one with stencil (and depth) bits as first.
2008-07-17Merge branch 'master' into drm-gemCarl Worth
Conflicts: configure.ac src/reg_dumper/Makefile.am
2008-06-24Fix back buffer damage handler for 965+ chipsJesse Barnes
When page flipping is enabled, we need to make sure any changes to the front buffer are reflected in the back buffer(s) or corruption might occur at page flip time. So make the damage handler work on 965 by adding appropriate tiling flags and pitch adjustments.
2008-06-13[gem] remove one more unused bitDave Airlie
2008-06-12Require libdrm 2.4.0 always since we need the bufmgr code.Eric Anholt
This lets us remove a lot of conditional compile stuff in the DRI case, as if we're doing DRI and have 2.4.0, we can rely on GEM ioctls existing.
2008-06-10[gem] Don't set up the ring in GEM mode, as that'll be handled by the kernel.Eric Anholt
2008-06-10Avoid needless flush emits in the blockhandler.Eric Anholt
The EmitFlush in i830_dri.c was added as a pageflipping workaround, and was noted to not even be sufficient then. There's no reason for it to be there, so it's removed. After that, we just have to not emit an MI_FLUSH if we already had, and cursor movement no longer bashes memory manager.
2008-05-17Add check for GEM, use that to enable driver GEM supportKeith Packard
2008-05-12Track name changes in GEM ioctls.Keith Packard
allocate → create unreference → close name → flink
2008-05-12Record alignment requirements in mem structure for use by GEM.Keith Packard
GEM needs memory alignment requirements sent at pin time, which is a bit after the allocation itself. Store the required alignment in the memory object for later use by pin.
2008-05-05Use GEM for buffer naming now.Keith Packard
2008-05-02Add initial GEM hacks to bring the server up.Eric Anholt
2008-03-28Fix obviously wrong verification of DRI_SUPPORTS_CLIP_NOTIFY.Matthias Hopf
2008-03-18Compile warning fixes.Paulo Cesar Pereira de Andrade
Move some declarations and don't declare an extra variable with the same name, to fix warnings about mixed declarations and code.
2008-03-14Change OUT_RING and similar calls to OUT_BATCH for batchbuffer mergeEric Anholt
2008-03-11Remove i830+ driver's use of CARD*/INT* types for great justice.Eric Anholt
Several uses are actually left, which are determined by the X Server interfaces we're implementing.