summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2007-03-16Fix compile failure due to needed types being in inttypes.h on Linux.Eric Anholt
2007-03-15Fix crashes and other failures when a cursor allocation fails.Eric Anholt
Now, we allocate one single block of memory for cursors, and either succeed or fail once, rather than trying to support partial fallback modes that generally resulted in pain due to being untested. In particular, this fixes cursors on FreeBSD, which only allowed one large physically-contiguous allocation.
2007-03-15Don't reload the cursors if we haven't set up the screen yet.Eric Anholt
This avoids a crash during preinit if we set a mode for load detecting.
2007-03-15Fix sparse warnings about using 0 for NULL.Eric Anholt
2007-03-15Use new driver-independent CRTC-based cursor layer.Keith Packard
This eliminates all of the cursor rotation code and other cursor management infrastructure, leaving a fairly simple hardware layer in its place.
2007-03-14Make sure the legacy texture area is there when needed.Michel Dänzer
This currently only matters when the DRM memory manager is not available and Option "Legacy3D" "off" is specified, but that hasn't always been the case and might change again in the future.
2007-03-13Refine the i855 LVDS clock code. In particular, p2 is always 14.Eric Anholt
This gets correct clocks detected on most harware. The SSC is always assumed to be 66Mhz, which may not be true, but we'll fix that when we find example hardware.
2007-03-13Get SDVO DPMS working on the Mac Mini by writing SDVOB and SDVOC together.Eric Anholt
Also, add code for setting the encoder power state like the BIOS does, but this doesn't appear to work. We do much more than the BIOS does in powering things down, so perhaps that's interfering somehow.
2007-03-13Use a POSTING_READ(reg) macro instead of using the (void)INREG(reg) pattern.Eric Anholt
2007-03-13Add PCI write posting protection to i2c putbits.Eric Anholt
2007-03-13Add write posting protection for the SDVO DPMS-on path.Eric Anholt
2007-03-13Replace #if 0ed LVDS register setting with updated comment.Eric Anholt
2007-03-13Add write posting protections to relevant register writes in the mode-set path.Eric Anholt
2007-03-13Fix uninitialized string use in SDVO non-TMDS case.Eric Anholt
2007-03-12Make the 965 use Y-major tiling for the depth buffer, as required by the spec.Eric Anholt
An example of the failure can be seen with the reflect demo when set to depth buffer mode. Reported by: Haihao Xiang <haihao.xiang@intel.com>
2007-03-12Fix build against released libdrm.Michel Dänzer
2007-03-12Defer flipping pages back to normal until the end of the DRI block handler.Michel Dänzer
Doing it earlier can result in the wrong page being visible, giving the appearance of a frozen X server.
2007-03-12Disable page flipping if the DRM is older than 1.9.Michel Dänzer
Older versions don't support the functionality we need.
2007-03-12Fix attempt to flip pages back to normal when the last 3D window disappears.Michel Dänzer
When this succeeds, 2D rendering does not have to be synchronized to back buffers until the next 3D window appears.
2007-03-12Remove unused have3DWindows from pI830.Michel Dänzer
2007-03-11fixup missing assert includesDave Airlie
2007-03-11fixup brace alignment for older X.orgDave Airlie
2007-03-11add XMODES flags to the i2c driversDave Airlie
2007-03-09Don't crash when the SAREA pointer is NULL.Michel Dänzer
2007-03-09Revert change accidentally included in previous commit.Michel Dänzer
2007-03-09Update SAREA pipe sizes in i830_crtc_dpms instead of i830PipeSetBase.Michel Dänzer
This allows setting the size to 0 when a pipe gets disabled.
2007-03-09Merge remote branch 'origin/master' into i830-pageflipMichel Dänzer
2007-03-09Merge remote branch 'origin/master' into i830-pageflipMichel Dänzer
Conflicts: src/i830_dri.c
2007-03-07Bug #10157: Fix cursor corruption on server regen.Eric Anholt
2007-03-07Add some additional checks when XAA is enabled.Alan Hourihane
2007-03-06Remove usage of 'shadow' module. Use xf86CrtcScreenInit.Keith Packard
With the new mode setting code, rotation is handled outside of the driver, so the old usage of the 'shadow' module is no longer needed. Code to initialize the crtc structures has been moved out of the driver and into the modes code.
2007-03-06Bug #9898: Fix a crash with NoAccel set.Eric Anholt
2007-03-06Remove leftover code that was disabling tiling after we set it up.Eric Anholt
2007-03-06Make the depth buffer X tiled instead of Y, and fix a Y tiling nit on 945.Eric Anholt
The previous code claimed to set the depth buffer up as Y tiled, but due to lack of implementation in SetFence, it ended up being X tiled. Actually setting the Y tiling flag in the new version broke the depth buffer, so just switch the depth buffer to X tiling, which appears to work fine.
2007-03-06Continue to allocate the legacy texture pool by default.Eric Anholt
This is a partial revert of 7358642e64ab6d13bc1dc1a44703ee66d715ff61 If we don't allocate it now, when the DRM version is too low there won't be any memory allocated and DRI will fail. Instead, waste the memory in the i915tex case for now, and leave fixing it right (check DRM version up front and decide which memory manager to set up) to later.
2007-03-06Fix build failure.Michel Dänzer
Not sure how I missed this before... Thanks to Todd Merrill for reporting.
2007-03-06Fix reduced DRI memory manager size.Michel Dänzer
pI830->mmSize is in kB.
2007-03-06Fix some conditionals related to triple buffering.Michel Dänzer
Guard code that dereferences pI830->third_buffer with tests for that instead of pI830->TripleBuffer. It could happen that we want to enable triple buffering but (temporarily) can't because the third buffer couldn't be allocated.
2007-03-06Unify allocation of back buffers.Michel Dänzer
2007-03-06Merge remote branch 'origin/master' into i830-pageflipMichel Dänzer
Conflicts: src/i830_display.c src/i830_driver.c
2007-03-05Move EnterVT mode setting code to xf86SetDesiredModes.Keith Packard
Make the application of crtc desiredModes generic code instead of per-driver by creating xf86SetDesiredModes from the code that was in EnterVT and calling it. Also, move the frame buffer clear until just before mode setting to make sure things are mapped correctly.
2007-03-06Merge branch 'master' of ↵Wang Zhenyu
git://proxy.ims.intel.com:9419/git/xorg/driver/xf86-video-intel
2007-03-06EXA: try to always alloc exa i965 state buffer in stolen memWang Zhenyu
I think this is a safe way to work around any possible chip error.
2007-03-05Merge branch 'modesetting'Keith Packard
2007-03-05Move single mode setting code to X server.Keith Packard
Code to drive the global configuration from a single mode setting operation (from RandR 1.1, XFree86-VidModeExtension or XFree86-DGA) has been included in the X server now, so remove it from this driver.
2007-03-05Fix 965GM SDVO by not setting fields in SDVO[BC] which have new meanings.Eric Anholt
2007-03-05Merge remote branch 'origin/master' into i830-pageflipMichel Dänzer
Conflicts: src/i830.h src/i830_dri.c src/i830_dri.h src/i830_driver.c src/i830_memory.c src/i830_xaa.c
2007-03-05Fix DRM memory manager initialization.Michel Dänzer
It takes the offset and size in pages, not bytes.
2007-03-05Merge branch 'modesetting' into crestlineEric Anholt
2007-03-05Fix handling of new vs. old texture pools.Michel Dänzer
Only one of them can be active.