Commit Graph

1751 Commits

Author SHA1 Message Date
Eric Anholt d50264fc7c Add a "total" field to intel_idle output (set when any unit is busy). 2008-03-28 15:15:54 -07:00
Jesse Barnes 1450acd046 Use combo backlight control rather than pure legacy
If the legacy bit is set, use both the BLC_PWM_CTL and LBB regs to control the
backlight, rather than just LBB.  Looks like more platforms want that than what
the current code does.  Note that kernel provided interfaces will always be
used if available, so this shouldn't affect users with /sys/class/backlight
interfaces at all.

Fixes #14721.
2008-03-28 13:23:02 -07:00
Matthias Hopf 49f409fef5 Include missing stdlib.h for free() 2008-03-28 14:18:26 +01:00
Matthias Hopf 3414313ac9 Fix obviously wrong verification of DRI_SUPPORTS_CLIP_NOTIFY. 2008-03-28 14:18:26 +01:00
Matthias Hopf c40f195f2d Fix obviously stray '(' in non-I830_USE_EXA case. 2008-03-28 14:18:26 +01:00
Zhenyu Wang 7bba2c1331 Disable DRI earlier if fb width > 2048 2008-03-28 11:41:24 +08:00
Zhenyu Wang b1f358ba97 Disable overlay on new mobile chipset
It's gone, really.
2008-03-28 11:29:40 +08:00
Jesse Barnes 588371ba15 Merge branch 'master' into pfit 2008-03-26 14:53:15 -07:00
Paulo Cesar Pereira de Andrade c13efdd3d6 More compile warning fixes.
o Check for RANDR_GET_CRTC_INTERFACE before defining functions that
  are used only if it is defined.
o Declare a variable before code, and rename it from ret to xvmc_status
  to better describe it.
o if 0 some static functions not used.
o Don't declare some unused variables.
o Declare as static some functions that are used only in the file defining it.
o Add a default/fallback return True to the Bool function
  src/xvmc/intel_batchbuffer.c:intelInitBatchBuffer().
o Ansify src/xvmc/xf86dri.c.
o Add missing prototype to src/xvmc/xf86dri.h and follow pattern of other
  headers by adding "extern" before function prototype.
2008-03-26 10:11:36 +08:00
Eric Anholt 8cdbd55f80 Fix 965+ rendering issues with DRI disabled.
The new chips no longer automatically flush the rendering cache, so if we
don't flush the RC at blockhandler, the last rendering done may not
appear on the screen.  This was particularly noticable with a bare Xorg with
some missing root weave, and terminals where the last character wouldn't
appear until the cursor blinked.  A flush in the DRI blockhandler path had
hidden this issue for most people.
2008-03-25 10:09:54 -07:00
Eric Anholt c02ab432dd Revert "Use mprotect on unbound AGP memory to attempt to catch use while unbound."
While I still like the idea, the mprotect calls themselves are failing on
Linux and causing more trouble than they're worth.

This reverts commit a1612b7728.

Conflicts:

	src/i830_driver.c
	src/i830_memory.c
2008-03-24 13:48:20 -07:00
Eric Anholt 552a1b824d Disable a bunch of clock gating disables on IGD_GM, which doesn't need them.
Besides our driver having fallen through to the GM965 path for
RENCLK_GATE_D1, the BIOS was turning some of these on.  It may be relevant
for previous platforms as well to zero out the fields that should be zero
in the other registers.
2008-03-24 13:32:38 -07:00
Julien Cristau c1a2bc357f Don't try to build XvMC if DRI is disabled
Instead of failing the build, don't even try unless --enable-xvmc was used.
2008-03-24 13:29:24 +08:00
Maxim Levitsky 5fcc002f77 Fix crash triggered by dpms low power mode with hardware overlay running
When overlay switch crtc, it ignores current crtc dpms mode which
might lead to hang.
2008-03-24 13:24:12 +08:00
Keith Packard 6459805964 Transformed coord computed using floats. Don't move bilinear composite dst.
The homogeneous coordinate computation in the core server cannot be used for
many legal matrices as it overflows. Just use floats in the driver; faster
and avoids troubles.

When compositing with bilinear filter, don't push the dst coordinates around
as that makes the output blurry when pixels are aligned.
2008-03-21 03:12:36 -07:00
Zhenyu Wang bf725b92cf xvmc: fix distcheck
Add i915 headers in Makefile.am
2008-03-21 11:50:27 +08:00
Joerg Sonnenberger e8da1a5418 Fix DRI config for NetBSD
Reported by Joerg. This does a little more clearn up.
2008-03-21 11:41:49 +08:00
Zhenyu Wang 224c36cc14 Merge branch 'xvmc' 2008-03-20 10:31:57 +08:00
Jesse Barnes 52d6ced652 Fixup backlight control and panel fitting property names
They should be listed as lower case, since that's what you'd pass to xrandr.
2008-03-19 11:59:15 -07:00
Keith Packard 4b9b7b007d Handle projective transforms on 9xx for Composite.
Projective transforms require un-normalized texture coordinates and the use
of the texldp instruction. The coordinates are passed as x/y/z/w (the z is
unused, but there isn't a vertext format for just x/y/w).
2008-03-18 14:19:12 -07:00
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
Zhenyu Wang 03ccffd5b9 Merge branch 'master' into xvmc 2008-03-18 16:54:15 +08:00
Zhenyu Wang ac76363406 Disable XvMC if DRI is not enabled.
Default XvMC to disabled.
2008-03-18 16:52:29 +08: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 ffb5a115cc Merge branch 'master' into pfit 2008-03-17 15:19:05 -07: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 05cf07071e Initial panel fitting changes
Basic support for panel fitting.
2008-03-13 18:12:00 -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 f425181695 Merge branch 'master' into xvmc 2008-03-13 23:58:56 +08:00
Zhenyu Wang f4cfc98ab0 nuke unneed error_base and event_base 2008-03-13 23:56:48 +08:00
Zhenyu Wang f269c69b4e remove unused init/fini hooks for xvmc driver 2008-03-13 23:41:22 +08: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
Zhenyu Wang cd73c6a5a7 Pass default visual in dri context create 2008-03-12 20:37:41 +08:00
Zhenyu Wang 21580add63 disable memory alloc debug 2008-03-12 20:37:33 +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