summaryrefslogtreecommitdiff
path: root/src/common.h
AgeCommit message (Collapse)Author
2012-07-14Drop some unused includesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-24Allow runtime switching of AccelMethod between uxa/sna and even glamorChris Wilson
Section "Device" Option "AccelMethod" "uxa/glamor/sna" EndSection The appropriate backend must also be enabled at compile time for the runtime option to be available (i.e. --enable-uxa (default) --enable-sna --enable-glamor) Demanded-by: Adam Jackson <ajax@redhat.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50290 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-02-21uxa: Remove DPRINTF stubsChris Wilson
It wasn't being used for anything non-trivial and was throwing compiler warnings, so remove it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16sna: Reduce and clarify dependenciesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-02sna: Quieten a fewer compiler sign compare warningsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-10-13Move EDID_COMPLETE_RAWDATA define to intel.h to avoid redifinition warningChris Wilson
The compiler was simply warning that we defined the name prior to including the original definition, so reorder. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-10-12Make driver compile for 1.6 Xserver series again. Part deux.Stefan Dirsch
Signed-off-by: Matthias Hopf <mhopf@suse.de> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-10-04shadow+dri2: Allow dri2 to be independently enabled with shadowChris Wilson
To enable DRI we create GEM buffers for the client to render into with hardware acceleration. In order to maintain coherency between any 2D render operations with the independent 3D clients (this includes the reading of 2D rasterisation by the direct rendering client, e.g. compiz using texture_from_pixmap) we need to replace the shadow pixmap with the GTT mapping. Therefore 2D rendering to a DRI buffer will be to uncached memory and thus penalised -- but the direct rendering clients will have full hardware acceleration. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-08-22Replace ROUND_* macros with ALIGN.Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-06-25i810: Move into a legacy directory.Chris Wilson
The driver is still built but is no longer under active development so move it and supporting files to a new directory. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-06-17i830: GetImage acceleration.Chris Wilson
The presumption is that we wish to keep the target hot, so copy to a new bo and move that to the CPU in preference to causing ping-pong of the original. Also the gpu is much faster at detiling. Before (PineView): 400000 trep @ 0.1128 msec ( 8860.0/sec): GetImage 10x10 square 18000 trep @ 1.3839 msec ( 723.0/sec): GetImage 100x100 square 800 trep @ 30.0987 msec ( 33.2/sec): GetImage 500x500 square After: (PineView) 180000 trep @ 0.1478 msec ( 6770.0/sec): GetImage 10x10 square 60000 trep @ 0.4545 msec ( 2200.0/sec): GetImage 100x100 square 4000 trep @ 8.0739 msec ( 124.0/sec): GetImage 500x500 square Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-05-26Remove remaining REG_DUMPER build stuff.Eric Anholt
2010-02-23Add new mobile Sandybridge PCI IDs.Eric Anholt
2010-02-23Add initial defines and probing for SandybridgeEric Anholt
2010-01-08uxa-glyphs: Enable TILING_X on glyph caches.Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-12-10Revert "uxa-glyphs: Enable TILING_X on glyph caches."Chris Wilson
This reverts commit 3f11bbec420080151406c203af292e55177e77d1. For unknown reasons, enabling tiling for the glyph cache is causing glyph corruption both across suspend and resume and VT switching, on a wide range of chipsets (reports include both i8xx and gm45) This strongly suggests that we are handling tiling, or updates to tiled buffers, incorrectly across i915_gem_idle(). However, until we can find the root cause, we want to fix this regression before the next stable release, so simply revert this patch. :( Fixes: [Bug 25406] fonts garbled after resuming from suspend since 6729b508 http://bugs.freedesktop.org/show_bug.cgi?id=25406 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-11-30uxa-glyphs: Enable TILING_X on glyph caches.Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-11-05Kill some more #defines only needed for User-ModesettingDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Eric Anholt <eric@anholt.net>
2009-10-08Rename the xf86 screen private from pScrn to scrn.Eric Anholt
2009-10-08Rename the screen private from I830Ptr pI830 to intel_screen_private *intel.Eric Anholt
This is the beginning of the campaign to remove some of the absurd use of Hungarian in the driver. Not that I don't like Hungarian, but I don't need to know that pI830 is a pPointer.
2009-10-06Remove UMS support.Eric Anholt
At this point, the only remaining feature regressions should be the lack of overlay support (about to land), and the need to update the XVMC code to work in the presence of KMS. Acked-by: Keith Packard <keithp@keithp.com> (in principle) Acked-by: Carl Worth <cworth@cworth.org> (in principle)
2009-09-08Add B43 chipset supportZhenyu Wang
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-10Add new chipsets PCI idsZhenyu Wang
Desktop and mobile version of new chipsets are added. Also do memory config like Intel 4 series chipset. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-05-28Remove useless loader symbol lists.Adam Jackson
2009-04-28Remove a handful of pointless commentsKristian Høgsberg
CVS keywords, comments about how the source was once reformatted, and the ad-hoc changelog comment in in i830_driver.c
2009-04-27unifdef LIBPCIACCESS and XSERVER_LIBPCIACCESS.Eric Anholt
Depending on new server means these are always present.
2009-04-24Fix UXA to build with Sun compilers (use __func__ instead of __FUNCTION__)Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-21Use a static inline to replace if (0) to an unused stub function.Eric Anholt
2009-02-26Intel video driver patchShaohua Li
This is the intel video driver patch for a new chip, which is G33-like and has some clocking setting related register changes. This patch adds the pci id and DPLx/FPx register changes. The gtt tool should just work to me, as the chip hasn't any changes against G33 on this side. Signed-off-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Eric Anholt <eric@anholt.net>
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-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.
2008-11-27Merge branch '965-xvmc'Zou Nan hai
Conflicts: src/common.h src/i830_hwmc.c src/i830_video.c
2008-11-06Make IS_GM45 into IS_G4X defineZhenyu Wang
Those are identical that using one define is much clear. And it can also apply fixes for GM45 too, which is missing with origin define.
2008-10-01Eliminate INT10 call to get BIOS contentsKeith Packard
libpciaccess (and the old X server PCI code as well) provides a function to get the ROM contents. Code to use that was already present in the driver and used if the INT10 function failed. Skip the INT10 and just use libpciaccess as that eliminates several module loads and scary use of vm86. Signed-off-by: Keith Packard <keithp@keithp.com>
2008-09-28 [965-xvmc] 965q indirect media data workaroundZou Nan hai
2008-09-11Add support for G41 chipsetZhenyu Wang
G41 is another 4 series chipset like G45/43.
2008-08-08Initial port of kernel modesetting from old intel-kernelmode branchJesse Barnes
Thanks airlied!
2008-07-31Don't program dsparb on new Intel chipZhenyu Wang
On new chip, DSPARB is controlled by hardware only.
2008-07-03Fix official name for GM45 chipsetZhenyu Wang
2008-06-28xvmc: Don't copy on xvmc surface in PutImageZhenyu Wang
As xvmc rendering result has already been in fb, we shouldn't do extra copy on it. Although special care is required for i915 xvmc surface pitch alignment, which must be at least 1KB aligned. So video display function should take it into acount instead of always setting Y pitch to be double of U/V pitch.
2008-06-19Automatically detect the presence of HDMI.Eric Anholt
Now, SDVO is only probed if the SDVO detected bit is set. If the SDVO probe fails, but the detect bit is set, assume that it's an HDMI output.
2008-06-17Add support for Intel 4 series chipsets.Zhenyu Wang
2008-03-12Separate i810 and i830 ring macros out into separate files.Eric Anholt
I want to hack on i830 for changing it into a compat path for batchbuffer without having to worry about the i810 stuff getting broken.
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.
2008-03-07Enable hardware overlay on 965Jesse Barnes
Based on Maxim Levitsky's patch for the same. Many thanks to Maxim for discovering that this features still works in recent hardware!
2008-01-30Wrap up chipsets which needs graphics address for status pageZhenyu Wang
Also add support on new chipset.
2008-01-22Add missing i830M and 845G pci ids infoZhenyu Wang
2008-01-09Add new integrated graphics chipset idsZhenyu Wang
2008-01-07Change origin i965G_1 to chipset market name G35.Zhenyu Wang