Commit Graph

2225 Commits

Author SHA1 Message Date
Eric Anholt caecd6031e Remove the extra memory allocation for 965 video state now that it's all in BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 48c113ade2 Emit proper relocations to pixmaps in BOs in i965 video. 2008-12-04 17:48:45 -08:00
Eric Anholt ae2cd8b75e Move i965 video surface state and binding table to BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 1b3c3c9d79 Move i965 video vertex data to BOs.
This eliminates extra syncing when clipping is involved.
2008-12-04 17:48:45 -08:00
Eric Anholt 8482597259 Move remaining i965 video programs to BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 40671132cb Move i965 video wm and sampler state to BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 48803eb746 Stop allocating unused scratch space for i965 video. 2008-12-04 17:48:45 -08:00
Eric Anholt f3fe46b557 Move i965 video vs/sf state to BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 4b9d3eac57 Move i965 video cc state to BOs. 2008-12-04 17:48:45 -08:00
Eric Anholt 176e92d89f Move I965DisplayVideoTextured unit state setup to separate functions. 2008-12-04 17:48:44 -08:00
Eric Anholt 61929f4c64 Move I965DisplayVideoTextured surface/sampler setup to separate functions. 2008-12-04 17:48:44 -08:00
Eric Anholt 73d03cb93c Move debug code for I965DisplayVideoTextured to separate functions. 2008-12-04 17:48:44 -08:00
Zhenyu Wang df01d8f079 Change master version to 2.6.99.1 2008-12-04 16:12:05 +08:00
Julien Cristau b156b3165e Don't unconditionally define DRI2
xorg-server.h will define it if the server has dri2 support.
2008-12-03 22:04:16 -08:00
Zhenyu Wang 8d7cbab267 Fix maxium backlight level restored issue
The origin check for bring back max value for '0'
backlight level is ok for legacy or combo control method
as '0' mostly doesn't act in ideal lowest level. But it
breaks in using kernel control method which should provide
a reasonable backlight range.

This is tested fine on T61 with thinkpad_acpi module.
2008-12-04 18:43:03 +08:00
Zhenyu Wang 32e7d47925 Disable XvMC on DRI2 for now 2008-12-04 09:24:31 +08:00
Dave Airlie 293f6232c6 uxa: don't call composite routines with no buffer.
We can get a case with gnome-terminal + links, where we get two arrays
of glyphs all with 0 width and 0 heights in them. If this happens
we manage to get to this case without any buffer setup and segfault.

(cherry picked from commit 717c7492a0f6ba3fb3eabda33515881eef314155)
2008-12-03 16:55:31 -08:00
Eric Anholt 457a680afd Enable tiling for DRI2 back/depth buffers.
This results in allocation overhead for small (8x8-128x128 or so) pixmaps with
DRI2, but we're interested in looking at tiling them in general in the near
future, anyway.
2008-12-03 13:30:10 -08:00
Eric Anholt b662ecccb5 Re-enable composite accel on 965 with UXA.
This was blocked on getting 965 render aware of BO pixmaps, which is happily
now the case.
2008-12-03 10:52:34 -08:00
Paulo Cesar Pereira de Andrade d426f799f5 Include <X11/Xfuncproto.h> prior to including "edid.h" from the sdk. 2008-12-03 14:59:21 -02:00
Robert Lowery 07f5a82231 TV: add support to set TV margins in xorg.conf 2008-12-03 09:48:23 +08:00
Eric Anholt 00ae7a571b UXA: Add support for tiled front/back/depth by cutting over to the GTT map. 2008-12-02 13:08:23 -08:00
Eric Anholt 34d54db945 Remove DRI_MM defines which are always true now. 2008-12-02 13:01:56 -08:00
Keith Packard f7540df184 Merge commit 'origin/dri2' 2008-12-01 19:06:09 -08:00
Paulo Cesar Pereira de Andrade 5f347020a5 Export libIntelXvMC and libI80XvMC symbols.
This is a side effect of adding the visibility flags to XORG_CFLAGS.
2008-11-29 02:35:59 -02:00
Zou Nan hai ec7fd3d1b4 Merge branch '965-xvmc'
Conflicts:

	src/common.h
	src/i830_hwmc.c
	src/i830_video.c
2008-11-27 10:48:09 +08:00
Wu Fengguang d978cd4b45 refresh batch_bo reference after intel_batch_flush()
The call into intel_batch_flush() will invalidate the pI830->batch_bo
stored in bo_table[0]. Fix it by re-read the refreshed value.

Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
2008-11-24 15:10:39 -08:00
Kristian Høgsberg ee87f7becc Merge commit 'origin/master' into dri2
Conflicts:
	src/i830_dri.c
	src/i830_driver.c
	src/i830_memory.c
2008-11-17 12:26:38 -05:00
Jesse Barnes 30c29627c8 Make sure DRM library paths are included
We need @DRM_LIBS@ in order to find drm_intel if installed in a
non-standard path.
2008-11-13 12:35:02 -08:00
Ma Ling 42ec6938bd enable Intel G35 SDVO HDMI audio output
Set the SDVO_AUDIO_ENABLE bit to enable SDVO HDMI audio output of the
Intel G35 chipset.

Signed-off-by: Ma Ling <ling.ma@intel.com>
Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
2008-11-13 09:51:17 +08:00
Wu Fengguang 42b3903c3f enable Intel G45 integrated HDMI audio output
Enable audio output for the integrated HDMI of Intel G45 chipset
by introducing the SDVO_AUDIO_ENABLE bit.

Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
2008-11-13 09:51:17 +08:00
Wu Fengguang 293f4a8b6d introduce i830_hdmi_priv.has_hdmi_sink
HDMI is compatible with DVI, and we've seen many boards that
use HDMI port for DVI output.

So Zhenyu proposed this flag: i830_hdmi_priv.has_hdmi_sink
to indicate the presence of HDMI capable monitors.

Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
2008-11-13 09:50:37 +08:00
Jesse Barnes 6679235592 Default to FULL_ASPECT panel fitting
Now that 8xx is fixed, we should be able to preserve aspect ratio by
default.

Fixes fdo bz #18033.
2008-11-11 12:55:06 -08:00
Zhenyu Wang 65cd0fbb01 TV: fix contrast and saturation for 915/945G
915/945G uses exponent-mantissa format instead of
fixed-point format on 965G.
2008-11-11 09:36:50 +08:00
Zhenyu Wang a5b1e62337 quirk LVDS on Asus Eee box
Reported by Yang Sheng <sheng.yang@intel.com>
2008-11-07 16:06:26 +08:00
Keith Packard 9942cfa6dc Use long crt hotplug activation time on GM45.
The GM45 b-spec requires the use of the longer hotplug activation period,
but does not require looping twice over the detection logic. With this
patch, CRT detection appears solid on my GM45.

Signed-off-by: Keith Packard <keithp@keithp.com>
2008-11-06 15:04:27 -08:00
Zhenyu Wang 226efa7c74 TV: subcarrier fix for NTSC and PAL
Using subcarrier DDA values from spec give more close result to
standard frequency.
2008-11-06 10:47:49 +08:00
Zhenyu Wang 3651341292 TV: fix timing parameters for PAL, 480p, 1080i 2008-11-06 10:47:32 +08:00
Zhenyu Wang b404afb755 TV: save serveral TV_CTL register fields in mode set
Driver should keep those fields according with spec.
2008-11-06 10:47:18 +08:00
Zhenyu Wang 2ae91f0ffd TV: fix default contrast and saturation modifier
Color knobs was set with higher modifier which caused strong color
on TV screen. Setting fixed point modifier to default 1.0 makes picture
on TV look nicer.
2008-11-06 10:46:36 +08:00
Zhenyu Wang c4cab00ef7 TV: white space cleanup 2008-11-06 10:46:11 +08:00
Zhenyu Wang b130f94f26 SDVO: fix more command definition errors 2008-11-06 10:14:00 +08:00
Zhenyu Wang 3ab979da5c SDVO: add command for set monitor power state
SDVO encoder power state must be higher than monitor's state.
This only adds command and doesn't enable monitor power state
setting yet.
2008-11-06 10:11:38 +08:00
Zhenyu Wang f558a4972d SDVO: add GetScaledHDTVResolutionSupport command 2008-11-06 09:58:15 +08:00
Zhenyu Wang cd8cbff5d7 SDVO: fix sdvo tv format and sdtv resolution request/reply definition 2008-11-06 09:57:08 +08:00
Zhenyu Wang 61672b8c45 SDVO: add HDMI audio encrypt change bit for GetInterruptEventSource command 2008-11-06 09:56:37 +08:00
Zhenyu Wang 45fb04474d SDVO: fix wrong order of sdvo version's major/minor 2008-11-06 09:55:47 +08:00
Zhenyu Wang 5cbf1e7271 Make IS_GM45 into IS_G4X define
Those are identical that using one define is much clear.
And it can also apply fixes for GM45 too, which is missing with
origin define.
2008-11-06 09:46:54 +08:00
Eric Anholt 78b6cff3b6 i965: Support render acceleration with pixmaps in BOs.
This required reordering the relocation emits for surface/binding table
so that we didn't add new relocations to things that had already been
relocated at (the check_aperture requirement).
2008-11-05 17:22:02 -08:00
Eric Anholt 801f0eac4f Make I830FALLBACK debugging a runtime instead of compile-time option. 2008-11-05 17:22:00 -08:00