Commit Graph

2286 Commits

Author SHA1 Message Date
Ian Romanick 91c49067ab Prevent redefinitions of CARD8 and friends. Fixes build. 2009-01-07 21:45:54 -08:00
Eric Anholt 934008a2cb Always enable KMS if server's new enough, and remove option.
The API should be stable at this point, and we don't want to allow mistakes.
2009-01-06 11:20:08 -08:00
Eric Anholt 342120be09 Fix pin leakage with EXA GTT-mapping shortcut, and crash with UXA on KMS. 2009-01-06 11:20:08 -08:00
Eric Anholt 9a5082d292 Disable DRI2 buffer tiling on non-965, as those need fence regs for 2D blits.
This fixes glReadPixels failure on single-channel 915GM, as the software code
for readpixels was actually the only code in the driver doing tiling against
these buffers (everything else says "rely on fence registers", since the 2D
blits don't have a "don't rely on fence registers" option).
2009-01-06 11:20:07 -08:00
Keith Packard 7736b65be4 FatalError on batchbuffer map failure
Yes, it would be nice to do something other than crash here.

Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-06 09:31:39 -08:00
Keith Packard 632f816c72 uxa: handle uxa_prepare_access failure
uxa_prepare_access may fail to map the pixmap into user space. Recover from
this without crashing.

Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-06 09:31:39 -08:00
Keith Packard 90b28a5655 Handle drm_bo_map failure in 965 video and composite paths.
These two paths allocate a number of objects directly.

Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-06 09:31:39 -08:00
Keith Packard 8237faf8f3 Resize framebuffer on screen size change (requires UXA and DRI2)
Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-06 09:31:39 -08:00
Keith Packard 21bd4e8974 Make i830_allocate_memory take tiling parameters.
This eliminates the separate i830_allocate_memory_tiled function which means
that all memory objects will have tiling parameters set correctly.

Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-06 09:31:38 -08:00
Zhenyu Wang 1f61e97904 UXA: Fallback to dri_bo_map() if pin failed
This fixes VT switch issue with UXA after Eric's
aae4008096 on 2D side.
2008-12-31 22:56:57 +08:00
Eric Anholt 830bf91672 Don't touch the pipestat regs for detecting FIFO underrun. The kernel owns them.
Since we don't perform any synchronization with the kernel on these regs, we
could race with the kernel to write stale values and end up not having vblank
interrupts enabled when somebody was waiting on one.
2008-12-30 16:02:42 -08:00
Eric Anholt d96f774d1b warning fix. 2008-12-29 13:57:24 -08:00
Henry unbongo 59b0fbb9be Add support for SDVO LVDS. 2008-12-29 13:57:03 -08:00
Eric Anholt 750d8e1058 Fix compile failure after 45f45c7346 2008-12-29 12:44:26 -08:00
Eric Anholt 45f45c7346 Remove logical context setup.
This should be a noop.  If it wasn't a noop, it means that on pre-g33 chipsets
we were spamming some data into a page of system memory because we used a
virtual instead of a physical address.  It was also supposed to not work when
we submit it from a batchbuffer, as we have been doing for some time now.
This code has existed since about the beginning of the driver's existence,
with no justification.
2008-12-29 11:31:26 -08:00
Eric Anholt 3544bbe22d Add PCI write posting to LeaveVT path when we're about to wait on write results. 2008-12-29 11:31:26 -08:00
Eric Anholt 7b67914b23 Add SDVO LVDS register definitions. 2008-12-29 11:29:32 -08:00
Eric Anholt 8464fc285d Rely on libdrm 2.4.3 and stop checking for xf86drmMode.h. 2008-12-29 09:51:45 -08:00
Eric Anholt c1dde7ac06 Remove old mergedfb includes and defines, which bother spatch. 2008-12-29 09:50:37 -08:00
Zhenyu Wang 75799d2834 Bug #18004: Add Aopen 915GM LVDS quirk 2008-12-30 00:55:30 +08:00
Zhenyu Wang cfaaf6af77 Don't count vertex buffer in second aperture size check
With batch flush notify vertex buffer will be unreferenced,
so don't count it in later aperture check. Also adding
uninitialized vertex buffer check in batch flush notify.
2008-12-29 21:17:44 +08:00
Dave Airlie b710a688a7 intel/kms: disable overlay when it needs physical address
We can't do phy address allocations, need kernel support for this.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2008-12-29 12:51:48 +10:00
Dave Airlie 649374b88b intel: don't call enter/leave VT for KMS enabled systems
Signed-off-by: Dave Airlie <airlied@linux.ie>
2008-12-29 12:51:48 +10:00
Dave Airlie 408f713935 exa: fix map gtt call to use current API 2008-12-29 12:51:48 +10:00
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