summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2008-03-13Always bind memory after agp aperture allocationZhenyu Wang
This fixed the crash appearing for Xv buffer memory, which appears allocation and free happening in stolen memory. We should always try to bind for stolen memory for correct protect setup, otherwise we might get fault that stolen memory protect reverted to non-r/w after previous free and unbind. Credit goes to Lukas Hejtmanek to identify the real problem of Xv crash!
2008-03-12Eliminate local variables defined in i830 BEGIN_LP_RING().Eric Anholt
This lets us get better sanity asserts, and avoid mysterious braces when you do two BEGIN_LP_RING()s in a single function. Potential minor performance loss isn't too exciting, as ring access is about to become a compat path anyway. This change also removes the requirement for ring emits to be aligned to dwords.
2008-03-12Separate i810 and i830 ring macros out into separate files.Eric Anholt
I want to hack on i830 for changing it into a compat path for batchbuffer without having to worry about the i810 stuff getting broken.
2008-03-12Add sysfs backlight support for Fujitsu laptopsJesse Barnes
Tested by Dan Williams.
2008-03-12Add stdint.h to DVO driversJesse Barnes
Fixes the build for me (just following the git development guide on a new machine).
2008-03-12Add stdint.h to i830_bios.hJesse Barnes
Needed for new uint* usage.
2008-03-12Add pipe A force quirk for Thinkpad R31Jesse Barnes
Fixes #15036.
2008-03-12Fix rotation mem with kernel memory manager in VT switchHong Liu
Unbind and bind a DRM BO may change the buffer offset, thus crtc may reference a wrong rotated memory after a VT switch cycle. Destroying it here will cause its reallocation when entering VT.
2008-03-12Pass default visual in dri context createZhenyu Wang
2008-03-12disable memory alloc debugZhenyu Wang
2008-03-11Nuke more CARD* types from i810 driver. Untested.Eric Anholt
2008-03-11Remove i830+ driver's use of CARD*/INT* types for great justice.Eric Anholt
Several uses are actually left, which are determined by the X Server interfaces we're implementing.
2008-03-11Cleanse DVO drivers of CARD* types.Eric Anholt
2008-03-11Add support for brightness control to i915 textured video output.Eric Anholt
2008-03-11Add pipe A force enable quirk for Toshiba Portege R205-S209Jesse Barnes
Fixes #14944.
2008-03-11Crack down on warnings.Kristian Høgsberg
Fix printf formatting warnings, wrap a couple of long lines, nuke unused variables, add missing #include <unistd.h>.
2008-03-11Silence warnings about possible uninitialize use of dst_format.Kristian Høgsberg
Whoa, gcc got a lot smarter about warnings. If iXXX_get_dest_format() doesn't support the picture format passed in it won't initialize the uint32_t pointed to by dst_format and return FALSE. What gcc now can detect is if dst_format is used without checking the return value, it might be used uninitialized. This patch makes sure we always check the return value before using dst_format.
2008-03-11Merge branch 'master' into xvmcZhenyu Wang
Conflicts: man/intel.man src/i830_driver.c
2008-03-10Add pipe A force enable quirk for Dell Latitude D500Jesse Barnes
Fixes #14888.
2008-03-10quirk: add DVO ivch quirkDave Airlie
2008-03-07Avoid setting reserved bits in SDVOx on everything 965-class.Eric Anholt
This will likely fix SDVO outputs on G35 hardware.
2008-03-07Enable hardware overlay on 965Jesse Barnes
Based on Maxim Levitsky's patch for the same. Many thanks to Maxim for discovering that this features still works in recent hardware!
2008-03-06Implement new get_property feature for backlight controlJesse Barnes
This should keep the backlight value reported by xrandr --prop & xbacklight consistent with changes by other software in the system (like the hotkey driver or kernel backlight driver).
2008-03-06remove extra dri checkingZhenyu Wang
And directRenderingDisabled already has config check result.
2008-03-06No ring, no syncZhenyu Wang
2008-03-06Pull chipset detection out of PreInit into its own functionJesse Barnes
2008-03-06Account for FBC LL cache in memory reservationJesse Barnes
When we reserve memory (memory that won't be managed by the kernel) make sure to reserve space for the FBC LL cache as well.
2008-03-06Move MTRR fixup to its own routineJesse Barnes
2008-03-06Refactor memory allocation into a separate functionJesse Barnes
This simplifies the memory allocation code and fixes a number of bugs. Prior to this change, some flags may have been set after memory allocation occurred, meaning they had no effect. It should also make the allocation logic clearer.
2008-03-05Really print adjusted_mode for mode debugZhenyu Wang
2008-03-04Fix DPLL programming in CRTC mode setHong Liu
The following patch fixes the display problem on internal development machines. The code in commit 3c22ed633be2ac96eea7bc533839e956f1f31b84 (Jesse's force pipe A enable patch) broke DPLL programming. Moving the DPLL set back up in the function solves the problem. Fix for internal bug #309.
2008-03-04Change FBC idle mode back to defaultJesse Barnes
Use the "immediate idle" mode for FBC. Rather than waiting for the current compression pass to finish before signalling to the CPU that it's idle, this mode should stop any current compression pass and tell the CPU that the GPU is idle right away. Seems to fix #13326.
2008-02-29Bug 14591: comment out MI_DISPLAY_POWER_DOWN as for 965GM onlyZhenyu Wang
2008-02-27HP Compaq 6730s has no TV outputPeng Li
2008-02-26Bug #14649: Fix build if pciaccess headers are not with other xorg headers.Mark Kettenis
We failed to include the pciaccess header flags in our build. Even if the server was to include those flags for us, it would leave us broken for the tools-only case, and it's easier to just put the flags everywhere so we avoid future copy'n'paste mistakes.
2008-02-26Fix SDVO I2C access on Mac Mini in EFI mode.Eric Anholt
The GMBUS was being left in SDVO pin access mode, which blocked our bit-banging access to those pins. Thanks to Peter Jones for quick debugging turnaround in getting this fixed.
2008-02-25Fix overlay rotationZhenyu Wang
Track current covered crtc rotation in port's private, and fix overlay rotation transform to be against crtc mode coordinate.
2008-02-22Add quirk for DVO channel selectionJesse Barnes
Some machines want DVOA, some DVOB. We can use this quirk to differentiate them until we come up with a better solution. Patch from Hong Liu. Fixes #13722.
2008-02-21Add pipe A force enable quirk for ThinkPad X40Jesse Barnes
ThinkPad X40s need this quirk or they'll crash frequently. Fixes #14521.
2008-02-21Remove side effects from VGA debug codeJesse Barnes
The VGA register dumping code was leaving ARX in data mode rather than index mode, which could cause problems for later software accessing AR* registers. Fix it to make sure it's in index mode when we're done. Fixes #14434.
2008-02-20Fix DSP*CNTR restorationJesse Barnes
When checking which pipe a given plane was associated with, we weren't properly masking the pipe selection bits. Fixes #14481 and should allow the driver to work with vesafb again.
2008-02-19Don't leak memory if no DMI info is provided by kernelZhenyu Wang
2008-02-19Fix last 8XX clock's p2 value commitZhenyu Wang
My fault to change Hong's origin patch reversely.
2008-02-18Fix Lenovo X60 TV quirkZhenyu Wang
Z61 has same subsys ids with X60, but does have one S-video TV out. Use DMI info instead to quirk TV on X60, X60s.
2008-02-18Add DMI info for i830 quirksZhenyu Wang
Linux kernel has CONFIG_DMIID to export dmi info through sysfs.
2008-02-16Decode DSPCLK_GATE, dump PIPE*STAT, MI_MODE, MI_DISPLAY_POWER_DOWN, ↵Keith Packard
MI_ARB_STATE, MI_RDRET_STATE, ECOSKPD
2008-02-15Bug #14440: fix stolen mem size mask on i830MZhenyu Wang
For i830M stolen mem size mask should always be 0x70. Use 0xF0 for later chipsets should be ok, so behavior is identical to kernel agp.
2008-02-08Add a little program to output the stepping information for several chipsets.Eric Anholt
2008-02-07Add CACHE_MODE_0 register to dump outputJesse Barnes
2008-02-06Only disable FBC if registers are availableJesse Barnes
The call to disable FBC should only occur if the FBC feature is actually present or we may end up hanging on a read from a non-existent register.