summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-01-07Disable 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). (cherry picked from commit 9a5082d2920c1a212fe935b5a093013e8035c321)
2009-01-07FatalError 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> (cherry picked from commit 7736b65be4fb4d5c59d7aedb1e64da976bb10ae9)
2009-01-07uxa: 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> (cherry picked from commit 632f816c72cb4b48b690fd92d1cc1d5a9c9285c7)
2009-01-07Handle 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> (cherry picked from commit 90b28a56553d809374fa6d9b9529b7a8b583488c)
2009-01-07Add support for SDVO LVDS.Henry unbongo
(cherry picked from commit 59b0fbb9be880d489374b141f818948a2721a2ef)
2009-01-06Always enable KMS if server's new enough, and remove option.Eric Anholt
The API should be stable at this point, and we don't want to allow mistakes.
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-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. (cherry picked from commit 1f61e97904dfe5f8c08bb9f284cfdfe878f7e541)
2008-12-31Don'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. (cherry picked from commit 830bf916724afd21b7947f797c22a8c8aab7a0a4)
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-31Quiet some KMS warnings.Kristian Høgsberg
(cherry picked from commit e6479f96e5d8da39fcbb5376c4a66a1f924ec4e4)
2008-12-31uxa: 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. (cherry picked from commit aae4008096399a0e84abc7c016b35092caf9db25)
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-30Add PCI write posting to LeaveVT path when we're about to wait on write results.Eric Anholt
(cherry picked from commit 3544bbe22d8cf2640289e1e4febe755a47f26631)
2008-12-30Rely on libdrm 2.4.3 and stop checking for xf86drmMode.h.Eric Anholt
(cherry picked from commit 8464fc285d7b22fd45b7af616fd52aa15e16638a)
2008-12-30Remove old mergedfb includes and defines, which bother spatch.Eric Anholt
(cherry picked from commit c1dde7ac06ce6470c74198b2560ee67d28fb0aea)
2008-12-30Bug #18004: Add Aopen 915GM LVDS quirkZhenyu Wang
(cherry picked from commit 75799d2834be84b016391ec95b221df32380e3e7)
2008-12-30Don'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. (cherry picked from commit cfaaf6af777ad8e56da5a077bdc01f4f2d7bc4d6)
2008-12-30intel/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> (cherry picked from commit b710a688a7383df320f9d4e765b48331310a4d1d)
2008-12-30intel: don't call enter/leave VT for KMS enabled systemsDave Airlie
Signed-off-by: Dave Airlie <airlied@linux.ie> (cherry picked from commit 649374b88b330838133d78be1953ce8b18ddd2c6)
2008-12-30exa: fix map gtt call to use current APIDave Airlie
(cherry picked from commit 408f7139354a942f29334795b5480a0b6bb6142a)
2008-12-30modeset: transformPresent is a new API memberDave Airlie
(cherry picked from commit 6b9f421b792c701e909d81ae2b6e6a47fb069b0b)
2008-12-30modeset: fix xf86CrtcRotate API change across server versionsDave Airlie
(cherry picked from commit a320541e51818833a6a445707835fbf70e9babd4)
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-26SDVO: 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. (cherry picked from commit e38fd84fcccc18284b649a60b4cfd8e24eaf059d)
2008-12-26xvmc: fix up needed libsPeter Alfredsen
(cherry picked from commit 74bc420940de4ed02705211ddebbc4033c032242)
2008-12-26Fix 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> (cherry picked from commit ed267072db7c58ee16a458fd3dc24ce3a2d0061d)
2008-12-26uxa: 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. (cherry picked from commit ecdd706873c1f990f4a78fbaecf7380411edabcd)
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.