summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-01-20Remove the pageflipping infrastructure.Owain G. Ainsworth
It was broken on current kernels, and deprecated anyway.
2009-01-20Remove triple-buffering supportOwain G. Ainsworth
It never worked with any upstream linux kernel, and is quite heavily deprecated. A new solution based around DRI2 will probably be forthcoming. Pageflipping itself is next.
2009-01-20Support sysfs backlight control for Sony laptops in xf86-video-intelKshitij Kulshreshtha
The sony_laptop kernel module (since v2.6.23) supports backlight control via the sysfs interface: /sys/class/backlight/sony This patch will enable xf86-video-intel to use this backlight control method for Sony VAIO Laptops with Intel integrated video.
2009-01-17Protect i915 textured video against batchbuffer wrapping.Eric Anholt
2009-01-17Fix i915 batch_start_atomic counting.Eric Anholt
2009-01-17intel: fix DRI2 should be DRI_DRI2Dave Airlie
2009-01-16Re-emit i915 composite setup when the batchbuffer wraps.Eric Anholt
This also introduces tests to make sure that we asked for enough reserved space and that we don't allow wrapping at the wrong time. This fixes a hang during text rendering with DRI2 and a GL client running, but could potentially affect text rendering with GEM in general with an exceptional batchbuffer setup.
2009-01-15Fix invarient state emits for DRI2 (do it per batch, since there's no lock).Eric Anholt
2009-01-14Fix ioctl type.Owain G. Ainsworth
I915_EMIT_IRQ is a read/write ioctl, not a write only. Found by OpenBSd's kernel code which checks these things a long more strongly than Linux.
2009-01-14use ifdef __linux__ where needed.Owain G. Ainsworth
since modesetting is compiled by default now, ifdef __linux__ the linux only includes and ioctls.
2009-01-14Disable VGA plane reliablyMa Ling
This fixes #17235, VGA random hang on recent G45/43 board. From spec, SR01 bit 5 should be set before VGA plane disable through control register, otherwise we might get random crash and lockups.
2009-01-13Assign rotation memory dri_bo to rotation pixmap.Keith Packard
As the rotation memory and rotation pixmap are allocated separately (to make rotation at startup work), the allocate dri_bo needs to be set in the pixmap for acceleration to work. This restores the performance in rotated modes. Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-13bios_reader: make mode timing output friendlierJesse Barnes
Print out the calculated mode line values (as i830_bios.c uses) and check for validity against known problems.
2009-01-13set continuous-frequency flag in get modes functionMa Ling
http://bugs.freedesktop.org/show_bug.cgi?id=19247 Because latest xorg will check whether the display is continuous frequency through one flag in monitor info structure, if not it doesn't touch default modes. When laptop failed to fetch edid, We don't set the flag. In i830_lvds.c, so currently we can not get default modes except only one mode line from bios. In order to achieve default modes from xserver successfully,I set the flag and other EDID features.
2009-01-13Fix LVDS EDID to match all possible default modesKeith Packard
If the EDID data from the LVDS doesn't indicate support for a wide range of continuous frequencies, it will not match any of the default modes although our LVDS scaler logic ignores refresh rates when programming LVDS modes. Fix this by smashing the compute EDID data to open up the sync rates. Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-07Prevent redefinitions of CARD8 and friends. Fixes build.Ian Romanick
2009-01-06Fix pin leakage with EXA GTT-mapping shortcut, and crash with UXA on KMS.Eric Anholt
2009-01-06Disable DRI2 buffer tiling on non-965, as those need fence regs for 2D blits.Eric Anholt
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-06FatalError on batchbuffer map failureKeith Packard
Yes, it would be nice to do something other than crash here. 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-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-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>