Commit Graph

1530 Commits

Author SHA1 Message Date
Keith Packard f699389818 Add i830_transform_is_affine and i830_get_transformed_coordinates_3d.
These are needed to deal with projective transforms in the composite
operation.
2008-03-18 14:11:49 -07:00
Keith Packard a55974b435 Add defines for 9xx S3 word in 3D_STATE_LOAD_STATE_IMMEDIATE
These aren't used at this point, but what the heck.
2008-03-18 14:10:25 -07:00
Keith Packard 4f5500abe2 8xx/9xx can handle textures to 2kx2k. 965 can do 8kx8k 2008-03-18 14:10:25 -07:00
Julien Cristau b1b173d03b Add i8[13]0_ring.h to _SOURCES to fix distcheck
Thanks to Bruno <bonbons67@internet.lu>.
2008-03-18 12:10:30 +01:00
Paulo Cesar Pereira de Andrade d72e18c109 Compile warning fixes.
Move some declarations and don't declare an extra variable with the
same name, to fix warnings about mixed declarations and code.
2008-03-18 09:24:58 +08:00
Zhenyu Wang 81df48d8d1 bug 15060: Dell Latitude X300 needs pipe A quirk 2008-03-18 09:24:58 +08:00
Jesse Barnes 24e6eb2ae6 Add support for new ->get_crtc output callbacks
Using the new interface allows the server to avoid some flicker at startup.
2008-03-17 14:18:57 -07:00
Eric Anholt 69fbc17441 Change OUT_RING and similar calls to OUT_BATCH for batchbuffer merge 2008-03-14 10:18:11 -07:00
Eric Anholt 65f92cfb7a Remove h0h0 UploadToScreen implementation that used pattern blits.
It never worked and was never that hot of an idea.  Most of the motivation is
gone with glyph pixmaps anyway.
2008-03-14 10:18:10 -07:00
Jesse Barnes 402fbd3622 Remove fbc enable/disable messages
Tired of them filling up my logs.
2008-03-13 16:13:26 -07:00
Eric Anholt c20d78a7bc Add workarounds for 830/845's lack of a8/x8r8g8b8/x8b8g8r8 support.
When we have unset channels (color for a8, or alpha for x8*), force them
to the appropriate value in the texture combiner rather than relying on getting
the desired results from teture mapping.  Performance is the same on 865, so
multiple paths aren't necessary and we can use the less friendly texture
formats everywhere.
2008-03-13 15:25:13 -07:00
Zhenyu Wang 1c0e495856 Always bind memory after agp aperture allocation
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-13 10:15:55 +08:00
Eric Anholt 2e2372912e Eliminate local variables defined in i830 BEGIN_LP_RING().
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-12 16:12:28 -07:00
Eric Anholt abf11a274e Separate i810 and i830 ring macros out into separate files.
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-12 16:12:28 -07:00
Jesse Barnes e04908853d Add sysfs backlight support for Fujitsu laptops
Tested by Dan Williams.
2008-03-12 15:44:58 -07:00
Jesse Barnes 907399660b Add stdint.h to DVO drivers
Fixes the build for me (just following the git development guide on a
new machine).
2008-03-12 12:33:36 -07:00
Jesse Barnes 8563effc96 Add stdint.h to i830_bios.h
Needed for new uint* usage.
2008-03-12 11:14:17 -07:00
Jesse Barnes c82d8e51c6 Add pipe A force quirk for Thinkpad R31
Fixes #15036.
2008-03-12 11:13:50 -07:00
Hong Liu a8f4108bea Fix rotation mem with kernel memory manager in VT switch
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-12 21:55:56 +08:00
Eric Anholt 5f27247187 Nuke more CARD* types from i810 driver. Untested. 2008-03-11 12:14:51 -07:00
Eric Anholt 9a62d3b598 Remove i830+ driver's use of CARD*/INT* types for great justice.
Several uses are actually left, which are determined by the X Server
interfaces we're implementing.
2008-03-11 12:07:52 -07:00
Eric Anholt 15f17aa682 Cleanse DVO drivers of CARD* types. 2008-03-11 11:27:10 -07:00
Eric Anholt 642ba62788 Add support for brightness control to i915 textured video output. 2008-03-11 11:16:17 -07:00
Jesse Barnes ecdb5963ef Add pipe A force enable quirk for Toshiba Portege R205-S209
Fixes #14944.
2008-03-11 11:08:25 -07:00
Kristian Høgsberg 4ea67e9b85 Crack down on warnings.
Fix printf formatting warnings, wrap a couple of long lines, nuke
unused variables, add missing #include <unistd.h>.
2008-03-11 13:54:59 -04:00
Kristian Høgsberg 9fd13e6773 Silence warnings about possible uninitialize use of dst_format.
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-11 13:48:07 -04:00
Jesse Barnes 02c0ffb1d8 Add pipe A force enable quirk for Dell Latitude D500
Fixes #14888.
2008-03-10 11:51:37 -07:00
Dave Airlie a1cd37f94c quirk: add DVO ivch quirk 2008-03-10 14:45:11 +10:00
Eric Anholt bf6d59ee98 Avoid setting reserved bits in SDVOx on everything 965-class.
This will likely fix SDVO outputs on G35 hardware.
2008-03-07 14:34:50 -08:00
Jesse Barnes 5915c75422 Enable hardware overlay on 965
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-07 13:18:09 -08:00
Jesse Barnes be08b61540 Implement new get_property feature for backlight control
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-06 13:58:07 -08:00
Zhenyu Wang 502e41f6df remove extra dri checking
And directRenderingDisabled already has config check result.
2008-03-06 19:32:29 +08:00
Zhenyu Wang ea58d66cf7 No ring, no sync 2008-03-06 19:31:33 +08:00
Jesse Barnes c823fb00a2 Pull chipset detection out of PreInit into its own function 2008-03-06 19:29:22 +08:00
Jesse Barnes 6b16cee078 Account for FBC LL cache in memory reservation
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-06 19:27:42 +08:00
Jesse Barnes 6f04d02471 Move MTRR fixup to its own routine 2008-03-06 19:27:07 +08:00
Jesse Barnes 750beb9232 Refactor memory allocation into a separate function
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-06 19:24:47 +08:00
Zhenyu Wang d466b25d09 Really print adjusted_mode for mode debug 2008-03-05 13:39:08 +08:00
Hong Liu d767eabe53 Fix DPLL programming in CRTC mode set
The following patch fixes the display problem on internal development machines.
The code in commit 3c22ed633b (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-04 13:28:50 -08:00
Jesse Barnes 4936e09702 Change FBC idle mode back to default
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-03-04 08:59:23 -08:00
Zhenyu Wang 02a3b80ee8 Bug 14591: comment out MI_DISPLAY_POWER_DOWN as for 965GM only 2008-02-29 13:36:59 +08:00
Peng Li ea7c7d088e HP Compaq 6730s has no TV output 2008-02-27 11:56:55 +08:00
Mark Kettenis fdc25cb0ca Bug #14649: Fix build if pciaccess headers are not with other xorg headers.
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-26 17:26:50 -08:00
Eric Anholt e55d86f654 Fix SDVO I2C access on Mac Mini in EFI mode.
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-26 13:25:20 -08:00
Zhenyu Wang 66cdccb021 Fix overlay rotation
Track current covered crtc rotation in port's private,
and fix overlay rotation transform to be against crtc mode
coordinate.
2008-02-25 14:29:09 +08:00
Jesse Barnes 975d7833bc Add quirk for DVO channel selection
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-22 11:41:25 -08:00
Jesse Barnes 33802b6ee3 Add pipe A force enable quirk for ThinkPad X40
ThinkPad X40s need this quirk or they'll crash frequently.

Fixes #14521.
2008-02-21 08:43:34 -08:00
Jesse Barnes 444984a578 Remove side effects from VGA debug code
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-21 08:37:42 -08:00
Jesse Barnes 28049540d8 Fix DSP*CNTR restoration
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-20 13:08:27 -08:00
Zhenyu Wang 293120bfc4 Don't leak memory if no DMI info is provided by kernel 2008-02-19 21:13:45 +08:00