Commit Graph

1844 Commits

Author SHA1 Message Date
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
Eric Anholt e9e6b47385 intel-gem: Use new getparam to detect kernel GEM support. 2008-07-30 14:15:57 -07: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
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
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
Jesse Barnes e00d943560 Improve VBIOS feature detection, add SSC support
Improve the VBIOS feature detection and use it to find whether the platform
supports spread spectrum clocking.  Use the specified reference clock, but
disable SSC if multiple heads are active, since it can cause problems in cloned
configurations.

Reviewed by Nanhai Zou.
2008-07-10 12:55:12 -07:00
Jesse Barnes 7332132a79 Improve FBC size checking
In hindsight, this is obvious, since nowhere do we tell the FBC unit how much
memory it has available.  We need to make sure the compressed buffer is big
enough to handle the uncompresed buffer, both in terms of vertical size and
total framebuffer size, or the compressor could overwrite the memory
immediately following the compressed buffer.
2008-07-07 10:48:56 -07:00
Stefan Dirsch f2ec3fd8f2 Add pipea force enable quirk for another 855GM machine.
Fixes Novell Bug #406123, thanks Christoph.
2008-07-03 23:12:13 +02:00
Zhenyu Wang a34a4e3f64 Fix official name for GM45 chipset 2008-07-03 01:03:14 +08:00
Zhenyu Wang 6506ac7aa0 Give asus and eeepc backlight method higher priority
On #16418, Evgeniy Manachkin <sfstudio@mail.ru> reported that
last asus and eeepc backlight patch is wrong, as acpi_video0 method
will take priority and doesn't work.
2008-07-02 11:12:54 +08:00
Roland Test-tools Bär 0597d94001 i810: Remove an effectively unused variable (only used in an incorrect free())
Bug #15401.
2008-06-30 10:34:37 -07:00
Zhenyu Wang 37661d916e Fix SDVOC typo 2008-06-28 19:15:57 +08:00
Zhenyu Wang 7834a3b118 xvmc: fix motion_type dump for frame/field picture 2008-06-28 19:15:57 +08:00
Zhenyu Wang 989ec9e8a6 xvmc: Don't copy on xvmc surface in PutImage
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-28 19:15:57 +08:00
Zhenyu Wang 550082070a xvmc: enlarge batch buffer size 2008-06-28 19:15:57 +08:00
Zhenyu Wang d50cec6ef9 xvmc: only allocate memory requiring physical address on 915G
Later 945-ish chipset can use graphics address instead.
2008-06-28 19:15:57 +08:00
Zhenyu Wang d1c34d8c0e xvmc: init mc render load indirect command once 2008-06-28 19:15:57 +08:00
Zhenyu Wang 75e38fa834 xvmc: init dest and reference buffer once
Init them right after context create, and only update buffer address
info later.
2008-06-28 19:15:57 +08:00
Zhenyu Wang b4d8ca8b38 xvmc: init one-time mc context once
Don't setup one-time mc context everytime, as the content is always
unchanged. And several structs got packed layout inside to ease static
state initialization.
2008-06-28 19:15:57 +08:00
Zhenyu Wang 54f3f528e4 xvmc: environ debug option support
export INTEL_XVMC_DEBUG=1
2008-06-28 19:15:57 +08:00
Zhenyu Wang 7a70508178 xvmc: formalize surface type definition
We should also carefully select surface type id.
2008-06-28 19:15:57 +08:00
Jesse Barnes 0283d22f51 Add pipea force enable quirk for HP Pavilion ze4944ea
Fixes bug #16540, thanks Bryce.
2008-06-27 13:39:31 -07:00
Jesse Barnes 08903abe4d Add pipe a force enable quirk for Lenovo T60
Fixes bug #16494.
2008-06-27 13:37:10 -07:00
Hong Liu 05df8c0b31 Fix SDVO HDMI output.
While some cards had enough initialized at startup to work already, others
required that the driver actually initialize the required AVI info frame.
2008-06-25 14:03:45 -07:00
Jesse Barnes 59f39e0ea0 Remove ErrorF debugging from modeset ioctl
Oops.
2008-06-24 11:01:46 -07:00
Jesse Barnes 1056d79809 Fix back buffer damage handler for 965+ chips
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-24 10:46:21 -07:00
Jesse Barnes 65eee25d7d Add support for keeping vblank counters sane across mode setting
The DRM supports disabling of vblank interrupts when not in use, but in order
to function properly it must also be aware of mode setting, which will reset
the frame counter to 0.  Add code to call into the DRM before and after mode
setting, so that it can account for any lost vblank events.
2008-06-24 10:46:21 -07:00
Keith Packard 9d79294364 Flush pending batch in block handler
Make sure any pending rendering commands are delivered to the hardware
before the server goes to sleep.
2008-06-20 00:24:02 -07:00
Keith Packard 2f8a0aa8cd Remove some unreliable regs for i915 2008-06-20 00:24:02 -07:00
Eric Anholt 6b6be2b2a7 Fix a crash in i830_sdvo_init error paths by setting up dev_priv earlier. 2008-06-19 15:02:06 -07:00
Eric Anholt 65ad29d787 Automatically detect the presence of HDMI.
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-19 15:02:06 -07:00