Commit Graph

2249 Commits

Author SHA1 Message Date
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
Julien Cristau b156b3165e Don't unconditionally define DRI2
xorg-server.h will define it if the server has dri2 support.
2008-12-03 22:04:16 -08:00
Zhenyu Wang 8d7cbab267 Fix maxium backlight level restored issue
The origin check for bring back max value for '0'
backlight level is ok for legacy or combo control method
as '0' mostly doesn't act in ideal lowest level. But it
breaks in using kernel control method which should provide
a reasonable backlight range.

This is tested fine on T61 with thinkpad_acpi module.
2008-12-04 18:43:03 +08:00
Zhenyu Wang 32e7d47925 Disable XvMC on DRI2 for now 2008-12-04 09:24:31 +08:00
Dave Airlie 293f6232c6 uxa: don't call composite routines with no buffer.
We can get a case with gnome-terminal + links, where we get two arrays
of glyphs all with 0 width and 0 heights in them. If this happens
we manage to get to this case without any buffer setup and segfault.

(cherry picked from commit 717c7492a0f6ba3fb3eabda33515881eef314155)
2008-12-03 16:55:31 -08:00
Eric Anholt 457a680afd Enable tiling for DRI2 back/depth buffers.
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-12-03 13:30:10 -08:00
Eric Anholt b662ecccb5 Re-enable composite accel on 965 with UXA.
This was blocked on getting 965 render aware of BO pixmaps, which is happily
now the case.
2008-12-03 10:52:34 -08:00
Paulo Cesar Pereira de Andrade d426f799f5 Include <X11/Xfuncproto.h> prior to including "edid.h" from the sdk. 2008-12-03 14:59:21 -02:00
Robert Lowery 07f5a82231 TV: add support to set TV margins in xorg.conf 2008-12-03 09:48:23 +08:00
Eric Anholt 00ae7a571b UXA: Add support for tiled front/back/depth by cutting over to the GTT map. 2008-12-02 13:08:23 -08:00
Eric Anholt 34d54db945 Remove DRI_MM defines which are always true now. 2008-12-02 13:01:56 -08:00
Keith Packard f7540df184 Merge commit 'origin/dri2' 2008-12-01 19:06:09 -08:00
Paulo Cesar Pereira de Andrade 5f347020a5 Export libIntelXvMC and libI80XvMC symbols.
This is a side effect of adding the visibility flags to XORG_CFLAGS.
2008-11-29 02:35:59 -02:00
Zou Nan hai ec7fd3d1b4 Merge branch '965-xvmc'
Conflicts:

	src/common.h
	src/i830_hwmc.c
	src/i830_video.c
2008-11-27 10:48:09 +08:00