summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2007-03-05Move single mode setting code to X server.modesettingKeith 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-04Support new CRTC/Output prepare/commit hooks.Keith Packard
New hooks replace explicit invocation of DPMS functions to manage mode setting sequencing.
2007-03-04Fix a crash with XAA and DRI disabled after the allocation rework.Eric Anholt
2007-03-04Add a little BIOS dumper program.Eric Anholt
This isn't actually tested yet as libpciaccess doesn't do rom access on non-linux yet.
2007-03-04Shadow pixmaps use fixed offset of 0.Keith Packard
Shadow pixmap contents are copied from the main frame buffer and contain only the bits displayed by the crtc, not the whole frame buffer. The crtc origin is always interpreted by the shadow copying code, the frame buffer itself doesn't move.
2007-03-03Merge branch 'modesetting-origin' into modesettingKeith Packard
2007-03-03Update for Aaron's xserver changes.Keith Packard
Add xf86CrtcConfigFuncs to xf86CrtcConfigInit Add canGrow option to xf86InitialConfiguration
2007-03-02Add a WIP UploadToScreen implementation. This almost displays right.Eric Anholt
2007-03-02Move EXA offscreen memory back after framebuffer to avoid fallbacks.Eric Anholt
Without this, the EXA code decides that the framebuffer is not in video memory because it's not located between the start of video memory and the end of EXA allocator memory. We should either have EXA let the driver decide if a pointer is in video memory, or add a new field for "end of video memory" (not just end of EXA offscreen allocation), but this fixes things for now.
2007-03-02Fix a crash when an ARGB cursor allocation had failed.Eric Anholt
2007-03-01Actually add the files for reg_dumper.Eric Anholt
2007-02-28Add a non-installed command line tool using libpciaccess to dump registers.Eric Anholt
This reuses the i830_debug.c code, so we can run that from the console or from the BIOS-based X server to debug some remaining issues.
2007-02-28Many fixes to mode_get, mode_set, clock limits, and register dumps on i855.Eric Anholt
This should fix a number of issues with i855s, particularly with integrated LVDS panels.
2007-02-27Revert "EXA: enlarge 965 exa state buffer size"Wang Zhenyu
This reverts commit 1ac83f51ee46d65237eae1b5c767e106ac9e29bc. oops, current exa state + kernel program size + scratch space is actually ~36KB.
2007-02-27EXA: enlarge 965 exa state buffer sizeWang Zhenyu
Origin size seems break all render, be sure to assign enough mem. 80k works fine for me.
2007-02-27Fix typo when assign overlay reg mem pointerWang Zhenyu
2007-02-26Consolidate shared structure allocation to the start of ScreenInit.Eric Anholt
Previously, the structures would get allocated unnecessarily once, and wouldn't get reallocated in time at server regen.
2007-02-26Fix XV issues on 965 after the allocation reworkEric Anholt
2007-02-26Move the initial EnterVT to after we've set up acceleration.Eric Anholt
This fixes a crash with initial rotation and EXA due to EXA not being initialized in time for the shadow pixmap setup.
2007-02-26Bug #9604: Align the sizes of allocations to page increments as well.Eric Anholt
Without this, the 965 DRI driver fell over when pitch * height wasn't page-size aligned. Since the allocator only allocates at page-aligned offsets anyway this shouldn't hurt us at all.
2007-02-26Fix physical memory allocations, including description in log.Eric Anholt
2007-02-26Fix some texture memory allocation issues.Eric Anholt
2007-02-26Fix a crash in startup monitor detect.Eric Anholt
2007-02-23Always allocate logical_context, since we use it in emitting invariants.Eric Anholt
2007-02-23Improve logging of memory allocation passes, and clean the code up a bit.Eric Anholt
2007-02-23Move memory allocation to ScreenInit rather than PreInit.Eric Anholt
This lets us do memory allocation just once rather than having several passes (as long as things succeed), avoids trouble with zaphod mode, and will let us do better automatic sizing of allocations soon.
2007-02-23Fix fence allocations on 965.Eric Anholt
2007-02-23Rework the video memory allocation.Eric Anholt
The previous allocator worked in multiple passes, with (at least) one of setting up allocations, another to attempt to adjust those for tiling, and then a pass to set up the offsets and fix them in memory. The new allocator is simpler, allocating memory immediately if possible, setting up tiling up front, and choosing offsets immediately. AGP memory is only allocated to back actual memory used, saving some memory that would have been allocated for padding previous. It will also allow dynamic freeing and reallocation of memory, which will be useful for framebuffer resizing.
2007-02-22Reformat to 4-space indents, no trailing whitespace, and 80 columns.Eric Anholt
I'm in the process of rewriting this file, and wanted to separate my whitespace changes.
2007-02-22Remove copied X server headers from driver.Keith Packard
These two headers were copied during mode setting development; as that code is now inside the server, these files are no longer needed here.
2007-02-22Disable unused functions after configuring the remaining resources.Keith Packard
This eliminates an unsightly flash of the hardware cursor during X server startup.
2007-02-20Pre-965 hardware had fixed pipe 1 for panel fitter.Keith Packard
The pipe mode setting code needs to disable the panel fitter when using the pipe for things other than LVDS output. The driver was checking for panel fitter conflicts using bits that the 965 chipset defines for selecting which pipe the panel fitter is connected to. However, on pre-965 hardware, the panel fitter works only with pipe 1 and those bits returned 0. The result was that when pipe 1 was using the panel fitter, configuring pipe 0 would disable the panel fitter. The fix provided uses a model-specific test for the panel fitter pipe.
2007-02-17Make distcheck fixes. Distribute all sources needed even for older servers.Keith Packard
Always allow (but do not require) link to server sources so that needed files can be included in the generated tar files. Add remaining .g4a files and assembly output to distributed file lists.
2007-02-16Check for presence of xf86Modes.h file.Keith Packard
xf86Modes.h file signals the availability of the new modes API in the server; use that instead of counting on X server version numbers. Also, finish eliminating use of local copies of those header files.
2007-02-16Remove common code that has moved to xserver/hw/xfree86/modesKeith Packard
2007-02-16Change rotation pixmap creation API to permit start-time rotation.Keith Packard
Start time rotation requires that the pixmap be created after the server has initialized the screens. Delay the pixmap creation until the first block handler invocation.
2007-02-15Enable mode setting function renames from shared code.Keith Packard
2007-02-15Use server sources for crtc/output generic code.Keith Packard
As sources for these have been merged to the server, use them from the server source code instead of keeping copies in this driver.
2007-02-15Print the correct meaning of bit 30 of pipeconf for 965 in debug output.Eric Anholt
2007-02-15Detect core clock frequencies, to avoid double-wide mode when possible.Eric Anholt
Additionally, don't attempt to set double-wide on the 965, where there is no such thing any more (not that we'd ever see modes high enough to trigger it).
2007-02-15EXA: fix i965 default color (0,0,0,1.0) -> (0,0,0,0)Wang Zhenyu
(0,0,0,1.0) is actually black...
2007-02-15EXA: mask componentAlpha supportWang Zhenyu
we're getting load of multiple sf/wm programs for i965, might need to be cleanup in future.
2007-02-14Global namespace cleanups, filename fixes.Keith Packard
Ensure all xf86 symbols created here are protected with XF86NAME. Remove accidentally exported symbols from namespace. Make all to-be-DI files prefixed with i830_xf86.
2007-02-14Create driver-independent DGA hooks, remove i830 DGA code.Keith Packard
As RandR needs to poke at DGA code, and we want the RandR code to be driver-independent, it seemed easier to just make the DGA code driver-independent as well.
2007-02-14WIP DGA generic support.root
2007-02-13Switch the RECTLIST vertex order to (x2, y2), (x1, y2), (x1, y1).Eric Anholt
This is the documented correct ordering, and while the previous ordering (reversed) worked on some hardware, it failed on others. Reported by: Wang Zhenyu <zhenyu.z.wang@intel.com>
2007-02-13Bug #9941: ViewSonic VX2025wm sync polarity quirk to fix mode distortion.Eric Anholt
2007-02-13Fix double free in the case of LVDS disabled through quirks.Eric Anholt
2007-02-13Merge branch 'modesetting-origin' into modesettingEric Anholt
2007-02-13Attempt to detect panel fixed mode from EDID or current programmed mode.Eric Anholt
These two sources are placed in higher priority to the BIOS data when available, since the BIOS data has proven unreliable. The BIOS data is still read, and warnings printed if it doesn't match what we probe. The BIOS data remains useful for the situation where we want to turn on LVDS but there is no EDID available and no current mode programmed (i.e. booting with VGA or TV connected).