Commit Graph

2262 Commits

Author SHA1 Message Date
Zhenyu Wang fcd280b730 Bug #19239: Add a quirk for broken ACPI lid state
For broken hardware/bios with incorrect ACPI LID state,
there's machine that can not be fixed in ACPI way, customed
DSDT that reprogram _LID method to read EC state. Although
this is ACPI issue, this quirk can be used to work around that.
2008-12-29 10:05:17 +08:00
Dave Airlie 6b9f421b79 modeset: transformPresent is a new API member 2008-12-29 11:51:58 +10:00
Dave Airlie a320541e51 modeset: fix xf86CrtcRotate API change across server versions 2008-12-29 11:34:51 +10:00
Ma Ling e38fd84fcc SDVO: reset pixel repeat in avi frame
For #19115, the root cause  is  avi_if.u.avi.PR in
i830_sdvo_set_avi_infoframe() belongs to element for
interlaced mode based on CEA_861B, but currently we
don't support interlaced mode. So it should be set as 0.
2008-12-22 10:35:52 +08:00
Zou Nan hai d8e89b26ef [965-xvmc] remove the vblank wait code, drm not support mutlple client
to wait on vblank now.
2008-12-19 09:34:14 +08:00
Eric Anholt aae4008096 uxa: Do a hack to use the aperture mapping instead of bo_map in sw fallbacks.
Because of how fallbacky the uxa rendering core is, and our inability (without
wfb in userland or page faulting in the kernel) to tell the kernel just where
we're going to fall back, the clflush overhead can become outrageous, for
example with emacs and xcompmgr.  Instead of using drm_intel_bo_map, pin the
buffer and do the fallback to the aperture mapping.  This gets us the bad old
performance that fb is designed for, instead of bad new performance.
2008-12-18 09:04:27 -08:00
Peter Alfredsen 74bc420940 xvmc: fix up needed libs 2008-12-19 08:12:07 +08:00
Zou Nan hai 555eea5411 wait vblank before render to fix tearing 2008-12-17 13:55:07 +08:00
Robert Noland ed267072db Fix drmOpen for non-linux 965 XvMC
drmOpen by name only works on linux after falling back to groping around
in /proc.  This doesn't work on other OS.

Signed-off-by: Robert Noland <rnoland@2hip.net>
2008-12-17 09:27:30 +08:00
Eric Anholt ecdd706873 uxa: Correctly prepare/finishaccess of stipple in ValidateGC (and only it)
This avoids prepare/finish_access_gc overhead when we're not changing things
(since GCTile is already handled) and get us the RW flag for the prepare on
of the stipple pixmap so thing will be synced correctly.
2008-12-16 10:21:59 -08:00
Kristian Høgsberg e6479f96e5 Quiet some KMS warnings. 2008-12-15 15:56:29 -05:00
Zhenyu Wang 30fb0ef53e Revert " [965 xvmc] update dual prime g4b files"
This reverts commit ea2b6b405e.

Duplicate with Keith's commit. No idea what's diff target
of this one.
2008-12-16 00:39:45 +08:00
Zou Nan hai ea2b6b405e [965 xvmc] update dual prime g4b files 2008-12-15 09:19:43 +08:00
Pierre Willenbrock d917583c19 closedir only after finishing use of any results from readdir 2008-12-15 09:08:30 +08:00
Keith Packard 865735d840 Dump out fence registers by default, add fence end registers as well
In debugging the frame buffer resize code, I needed to see what the server
was doing to the fence registers, so I added this debug code. Seems useful
enough to include it.

Signed-off-by: Keith Packard <keithp@keithp.com>
2008-12-12 11:20:54 -08:00
Zou Nan hai f3e59e59b5 Update binary versions of the dual-prime kernels
Signed-off-by: Keith Packard <keithp@keithp.com>
2008-12-12 11:20:54 -08:00
Zhenyu Wang 80d588e9c4 Don't warn on ring enabled in GEM 2008-12-12 18:27:29 +08:00
Zhenyu Wang 60c4ee9ece Fix directRenderingType check
Don't miss classic texture memory allocation in DRI.
2008-12-12 18:00:09 +08:00
Zou Nan hai edf7651554 [965-xvmc] fix dual prime kernel, flush issue on G4x 2008-12-11 15:41:59 +08:00
Zhenyu Wang 80e2d90139 Let lid status be unknown if no acpi lid object found 2008-12-11 13:46:32 +08:00
Bryce Harrington 83377b543d Pipe-A quirk for HP 2730p (bug #18852) 2008-12-11 09:38:27 +08:00
Bryce Harrington 6c4e134a1a PipeA quirk for Quanta/W251U (launchpad bug #244242) 2008-12-11 09:36:43 +08:00
Zhenyu Wang 1e974ff6b8 Try to always probe SDVOC on 965G/965GM
Detect bit of SDVOC is reserved on 965G/965GM, instead of ignore SDVOC
this trys to always probe it on these chipsets.
2008-12-11 08:58:30 +08:00
Zhenyu Wang f5f67e1b54 bug #17395: Quirk CRT for Sony VGC-LT71DB 2008-12-11 08:58:14 +08:00
Keith Packard d8b764fbd2 Add RandR 1.3 panning support by supporting the crtc set_origin function
RandR 1.3 panning support can use the regular mode setting interface, but
that's really slow. Providing set_origin makes it nice and snappy.

Signed-off-by: Keith Packard <keithp@keithp.com>
2008-12-09 21:51:14 -08:00
Zhenyu Wang 4d7a95959d Try to add LVDS detect support
This one trys to use lid status for LVDS detect,
which works when internal panel is not used as primary
display alone, or there's no internal panel at all.
ACPI button driver's lid state interface is preferred,
and SWF state is also checked if ACPI method failed.
2008-12-09 19:48:11 +08:00
Zhenyu Wang 0fe61b0b7e Remove Cappuccino SlimPRO SP625F 855GM LVDS quirk
It breaks bug #18462 on IBM 855GM with same subdevice ids.
2008-12-09 19:19:58 +08:00
Carl Worth bea98cdfd9 Set vertex_buffer_bo to NULL after unreference.
Which is just being tidy. We initially were looking at this code
path due to a report of a crash on server shutdown which started
after this unreference call was added. Setting this to NULL
apparently didn't avoid the crash, but it's a good thing to do
regardless.
2008-12-08 12:50:39 -08:00
Carl Worth ce7efc2e36 Don't smash fixed_mode if skip_panel_detect is set.
Without this change, setting LVDSFixedMode to false is not effective
as i830_bios_init calls i830_parse_panel_data which in turns sets
a fixed_mode. To fix this we still call parse_panel_data to set
the various lvds_options but we return before setting fixed_mode.
2008-12-08 12:50:39 -08:00
Carl Worth e8b95efbf5 i965: Add batch_flush_notify hook to create new vertex-buffer bo
This avoids mapping a buffer object which is being referenced
by a batch that has already been flushed, (which is a terribly
expensive operation).

On my machine this brings the performance of x11perf -aa10text
from 85k back to 150k, (where it was before a recent kernel
upgrade). Also, before this patch, when I used my X server
actively performance would drop as low as 15k---hopefully that
bug is gone with this change.
2008-12-08 12:50:39 -08:00
Zhenyu Wang 768f317cf0 Fix DRI2 compiling warning 2008-12-08 10:33:13 +08:00
Zhenyu Wang 95596f5150 Fix TV compiling warning 2008-12-08 10:30:12 +08:00
Kristian Høgsberg c47b6d1def Make sure DRI/DRI2 can initialize properly with KMS. 2008-12-06 21:20:52 -05:00
Kristian Høgsberg 70af658d4e Simplify crtc preinit a bit. 2008-12-06 19:19:21 -05:00
Kristian Høgsberg 3ad9c9a82d Fix KMS compilation. 2008-12-06 19:17:39 -05:00
Eric Anholt 2e3c098c5e uxa: Reject solid/copy to under-8bpp destinations.
EXA wouldn't create pixmaps for under-8bpp, but UXA does.  Fixes
mis-rendering in xfwm, evolution message compose, firefox link
drag'n'drop, and I'm sure more.  Big thanks to Pierre Willenbrock for
debugging the issue!

Bug #18050
2008-12-05 12:27:35 -08:00
Eric Anholt 261c20a479 uxa: Add in EnableDisableFBAccess handling like examodule.c did.
This fixes assertion failures when rendering text while VT switched.
2008-12-05 12:13:26 -08:00
Eric Anholt caecd6031e Remove the extra memory allocation for 965 video state now that it's all in BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 48c113ade2 Emit proper relocations to pixmaps in BOs in i965 video. 2008-12-04 17:48:45 -08:00
Eric Anholt ae2cd8b75e Move i965 video surface state and binding table to BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 1b3c3c9d79 Move i965 video vertex data to BOs.
This eliminates extra syncing when clipping is involved.
2008-12-04 17:48:45 -08:00
Eric Anholt 8482597259 Move remaining i965 video programs to BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 40671132cb Move i965 video wm and sampler state to BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 48803eb746 Stop allocating unused scratch space for i965 video. 2008-12-04 17:48:45 -08:00
Eric Anholt f3fe46b557 Move i965 video vs/sf state to BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 4b9d3eac57 Move i965 video cc state to BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 176e92d89f Move I965DisplayVideoTextured unit state setup to separate functions. 2008-12-04 17:48:44 -08:00
Eric Anholt 61929f4c64 Move I965DisplayVideoTextured surface/sampler setup to separate functions. 2008-12-04 17:48:44 -08:00
Eric Anholt 73d03cb93c Move debug code for I965DisplayVideoTextured to separate functions. 2008-12-04 17:48:44 -08:00
Zhenyu Wang df01d8f079 Change master version to 2.6.99.1 2008-12-04 16:12:05 +08:00