Commit Graph

1990 Commits

Author SHA1 Message Date
Keith Packard 12df8f40d2 Use dri_bo for all object allocations, including pixmaps under uxa 2008-08-05 15:40:14 -07:00
Keith Packard 4cc20b7f6e Don't call sync on prepare_access -- just let the driver deal with it.
Let the driver do whatever sync is necessary from the prepare_access hook
rather than forcing a full sync.
2008-08-05 15:29:50 -07:00
Keith Packard b0b0998b5d Make EXA functions work for UXA as well
EXA and UXA have the same acceleration interface, but UXA doesn't provide
pixmap stride information as it doesn't manage pixmaps. Move all of that
into the driver structure so that the acceleration functions needn't
reference the EXA structure.
2008-08-05 15:29:50 -07:00
Keith Packard 59774e9aca Add UXA - the unified memory acceleration architecture.
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-05 15:29:50 -07:00
Jesse Barnes c2f0df4dc9 Merge branch 'drm-gem' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel into drm-gem 2008-08-05 13:03:46 -07:00
Jesse Barnes 4f1f308542 Merge branch 'master' into drm-gem
Conflicts:

	src/i830_driver.c
2008-08-05 13:02:47 -07:00
Jesse Barnes 2aaa207db2 Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
Conflicts:

	src/i830_display.c
2008-07-31 13:10:19 -07:00
Jesse Barnes 2049ba211e Update DSPARB while planes are still off
This avoids the flickering people reported in the 2.4.0 release.
2008-07-31 13:07:20 -07:00
Carl Worth 750bd0bde0 Call DRM_I915_GEM_THROTTLE from I830BlockHandler
This prevents the CPU from ridiculously outrunning the GPU.
2008-07-31 11:14:25 -07:00
Carl Worth a893f176dd Add call to intel_bufmgr_gem_enable_reuse
This instructs GEM to reuse buffer objects and improves the
performance of my favorite 'x11perf -aa10text' from about
169k to about 188k glyphs/sec.
2008-07-31 11:14:25 -07:00
Carl Worth b3c1a14867 Eliminate unnecessary flush from i965_composite
This improves 'x11perf -aa10text' performance from ~144k to ~169k
2008-07-31 11:14:25 -07:00
Carl Worth 1abf4d3a7a Switch to using a buffer object for the vertex buffer 2008-07-31 11:14:25 -07:00
Carl Worth e5fab0b768 Add OUT_RELOC macro and backing intel_batch_emit_reloc function 2008-07-31 11:14:25 -07:00
Zhenyu Wang 76eb8e6f1f Fix SDVO reg definition
Remove wrong set tv resolution command, adding HDMI regs in dump.
2008-07-31 16:59:43 +08:00
Zhenyu Wang 77ed3d7600 Don't program dsparb on new Intel chip
On new chip, DSPARB is controlled by hardware only.
2008-07-31 13:13:45 +08:00
Eric Anholt e9e6b47385 intel-gem: Use new getparam to detect kernel GEM support. 2008-07-30 14:15:57 -07:00
Tomas Carnecky 42fb06f3f1 Reorder visuals reported by the intel driver
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-30 11:29:13 -07:00
Julien Cristau 1e90c82161 Link with -lm for sin/cos 2008-07-27 12:07:21 +02:00
Eric Anholt d77d42e543 intel-gem: Give a better error message if the kernel rejects the tiling mode. 2008-07-26 16:10:05 -07:00
Zhenyu Wang 6ac352f146 shut up gcc warning 2008-07-23 15:10:07 +08:00
Zhenyu Wang 075cf7fce5 Fix distcheck for clean doltcompile 2008-07-23 15:07:48 +08:00
Zhenyu Wang 29d982c6bf Fix HDMI output number
Output 33 is confusing.
2008-07-23 11:16:14 +08:00
Zhenyu Wang fd060ce89d Bug #16801: fix X crash when NoAccel on 965 2008-07-22 15:29:34 +08:00
Zhenyu Wang 577c4d1a0c only check pipe underrun if vtSema is true. 2008-07-22 15:14:14 +08:00
Zhenyu Wang 04bbed2248 SSC is LVDS only
Fix regression on my 855GM for VGA output.
2008-07-22 15:08:57 +08:00
Zhenyu Wang 7defa4f1f0 Check underrun on enabled pipe 2008-07-22 10:51:01 +08:00
Zhenyu Wang b7765b0837 Thinkpad R60e TV quirk via DMI info 2008-07-22 09:51:54 +08:00
Eric Anholt 286ff63f83 Don't set up the HWS page in GEM mode now that the kernel manages it. 2008-07-21 14:14:22 -07:00
Jesse Barnes ed0fbd016b Add no LVDS quirk for Transtec Senyo 610 mini PC
Fixes FDO #16757.
2008-07-21 11:48:38 -07:00
Eric Anholt 62a037b058 Fix distcheck. 2008-07-18 15:04:24 -07:00
Eric Anholt 3cbfc6c76b Fix uninitialized-use warning in i830_debug.c ring dumping. 2008-07-18 14:58:27 -07:00
Eric Anholt 1b1c497576 Get prototype for i830_bios_get_tv(). 2008-07-18 14:58:22 -07:00
Eric Anholt 978abf84e8 Bump version number past the 2.4 stable branch. 2008-07-18 14:58:17 -07:00
Carl Worth f4ab1f6ad4 Add intel_statuspage to .gitignore 2008-07-18 14:31:45 -07:00
Keith Packard c0dce28892 Merge commit 'origin/master' into drm-gem 2008-07-18 10:49:50 -07:00
Jesse Barnes b8ca1c747a Choose a split for DSPARB based on the configured modes for both planes.
Previously, we were attempting to give both planes equal space in the FIFO
to be fair.  However, larger modes require more fifo space, so split it based
on the relative HDisplay of the modes.  This should resolve some fifo underrun
issues with differently-sized displays, or single large ones.

Bug #16169.
2008-07-18 08:30:26 -07:00
Jesse Barnes b37a2a8ca8 Don't disable pipe A on 855 chips
It needs to stay enabled or we may see hangs when trying to re-enable it (say
at VT switch time).

Fixes FDO bug #15168.
2008-07-17 12:30:57 -07:00
Carl Worth a6ad50402c Merge branch 'master' into drm-gem
Conflicts:

	configure.ac
	src/reg_dumper/Makefile.am
2008-07-17 00:38:54 -07:00
Zhenyu Wang c4565a9811 Only initialize integrated TV encoder for mobile chips 2008-07-16 10:45:28 +08:00
Zhenyu Wang bca316863b xvmc: use vector based structure
This is more clear to read MV components.
2008-07-16 09:43:31 +08:00
Zhenyu Wang 0c67219d0e move FBC register dump out of display registers
This makes it easier to read.
2008-07-16 09:43:30 +08:00
lipeng a76ae7cab3 Fix GPIO pin usage for DDC on second HDMI port. 2008-07-15 10:27:02 -07:00
Eric Anholt 5054a86b1b Fix DSPARB setting on 845/865, which have only the AEND field and 96 entries. 2008-07-14 13:44:01 -07:00
Julien Cristau 8ac00ca979 Link the driver with -lpciaccess and -ldrm if needed
This makes sure the driver ends up with a DT_NEEDED reference to
the libraries it's using.
2008-07-14 17:08:54 +02:00
Julien Cristau d61182511b Fix gen4asm rule to work with a build dir 2008-07-14 17:08:54 +02:00
Carl Worth 757c00927a Use up to 256 separate vertex buffers
This allows us to only call i830WaitSync once every 128 calls to composite
rather than on every call. However, we do need to also call MI_FLUSH to
avoid the vertex cache getting in our way, (since our "separate" buffers
are all allocated as one contiguous chunk).
2008-07-12 08:15:08 -07:00
Carl Worth 0c548cd040 Allow for multiple vertex buffers (though only use one for now)
Using more than one (in the future) will allow for doing less frequent calls
to i830WaitSync.
2008-07-12 00:44:30 -07:00
Carl Worth cc2249333c Move VERTEX_BUFFERS setup from prepare_composite to composite
This is in preparation for having larger (or multiple) vertex buffers
in the future.
2008-07-12 00:44:30 -07:00
Eric Anholt e9916b9d49 Set tiling state for buffers allocated using GEM. 2008-07-11 18:59:27 -07:00
Jesse Barnes 3c0f2bcc99 Add VBIOS based TV connector detection
Now that the VBIOS code supports it, we can use the general features block to
detect whether a TV connector is present on a given platform.

Reviewed by Nanhai Zou.
2008-07-10 12:57:25 -07:00