summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-01-06uxa: handle uxa_prepare_access failureKeith Packard
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-06Handle drm_bo_map failure in 965 video and composite paths.Keith Packard
These two paths allocate a number of objects directly. Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-06Resize framebuffer on screen size change (requires UXA and DRI2)Keith Packard
Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-06Make i830_allocate_memory take tiling parameters.Keith Packard
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>
2008-12-31UXA: Fallback to dri_bo_map() if pin failedZhenyu Wang
This fixes VT switch issue with UXA after Eric's aae4008096399a0e84abc7c016b35092caf9db25 on 2D side.
2008-12-30Don't touch the pipestat regs for detecting FIFO underrun. The kernel owns them.Eric Anholt
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-29warning fix.Eric Anholt
2008-12-29Add support for SDVO LVDS.Henry unbongo
2008-12-29Fix compile failure after 45f45c73469f1bd46a1b6fb206f2e9e5e4fd66b3Eric Anholt
2008-12-29Remove logical context setup.Eric Anholt
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-29Add PCI write posting to LeaveVT path when we're about to wait on write results.Eric Anholt
2008-12-29Add SDVO LVDS register definitions.Eric Anholt
2008-12-29Rely on libdrm 2.4.3 and stop checking for xf86drmMode.h.Eric Anholt
2008-12-29Remove old mergedfb includes and defines, which bother spatch.Eric Anholt
2008-12-30Bug #18004: Add Aopen 915GM LVDS quirkZhenyu Wang
2008-12-29Don't count vertex buffer in second aperture size checkZhenyu Wang
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-29intel/kms: disable overlay when it needs physical addressDave Airlie
We can't do phy address allocations, need kernel support for this. Signed-off-by: Dave Airlie <airlied@redhat.com>
2008-12-29intel: don't call enter/leave VT for KMS enabled systemsDave Airlie
Signed-off-by: Dave Airlie <airlied@linux.ie>
2008-12-29exa: fix map gtt call to use current APIDave Airlie
2008-12-29Bug #19239: Add a quirk for broken ACPI lid stateZhenyu Wang
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-29modeset: transformPresent is a new API memberDave Airlie
2008-12-29modeset: fix xf86CrtcRotate API change across server versionsDave Airlie
2008-12-22SDVO: reset pixel repeat in avi frameMa Ling
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-19 [965-xvmc] remove the vblank wait code, drm not support mutlple clientZou Nan hai
to wait on vblank now.
2008-12-18uxa: Do a hack to use the aperture mapping instead of bo_map in sw fallbacks.Eric Anholt
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-19xvmc: fix up needed libsPeter Alfredsen
2008-12-17 wait vblank before render to fix tearingZou Nan hai
2008-12-17Fix drmOpen for non-linux 965 XvMCRobert Noland
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-16uxa: Correctly prepare/finishaccess of stipple in ValidateGC (and only it)Eric Anholt
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-15Quiet some KMS warnings.Kristian Høgsberg
2008-12-16Revert " [965 xvmc] update dual prime g4b files"Zhenyu Wang
This reverts commit ea2b6b405e4c8b1bfb4bc568d0453a39a9194a8f. Duplicate with Keith's commit. No idea what's diff target of this one.
2008-12-15 [965 xvmc] update dual prime g4b filesZou Nan hai
2008-12-15closedir only after finishing use of any results from readdirPierre Willenbrock
2008-12-12Dump out fence registers by default, add fence end registers as wellKeith Packard
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-12Update binary versions of the dual-prime kernelsZou Nan hai
Signed-off-by: Keith Packard <keithp@keithp.com>
2008-12-12Don't warn on ring enabled in GEMZhenyu Wang
2008-12-12Fix directRenderingType checkZhenyu Wang
Don't miss classic texture memory allocation in DRI.
2008-12-11 [965-xvmc] fix dual prime kernel, flush issue on G4xZou Nan hai
2008-12-11Let lid status be unknown if no acpi lid object foundZhenyu Wang
2008-12-11Pipe-A quirk for HP 2730p (bug #18852)Bryce Harrington
2008-12-11PipeA quirk for Quanta/W251U (launchpad bug #244242)Bryce Harrington
2008-12-11Try to always probe SDVOC on 965G/965GMZhenyu Wang
Detect bit of SDVOC is reserved on 965G/965GM, instead of ignore SDVOC this trys to always probe it on these chipsets.
2008-12-11bug #17395: Quirk CRT for Sony VGC-LT71DBZhenyu Wang
2008-12-09Add RandR 1.3 panning support by supporting the crtc set_origin functionKeith Packard
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-09Try to add LVDS detect supportZhenyu Wang
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-09Remove Cappuccino SlimPRO SP625F 855GM LVDS quirkZhenyu Wang
It breaks bug #18462 on IBM 855GM with same subdevice ids.
2008-12-08Set vertex_buffer_bo to NULL after unreference.Carl Worth
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-08Don't smash fixed_mode if skip_panel_detect is set.Carl Worth
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-08i965: Add batch_flush_notify hook to create new vertex-buffer boCarl Worth
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-08Fix DRI2 compiling warningZhenyu Wang