diff options
author | Remi Cardona <remi@gentoo.org> | 2008-05-22 12:19:29 +0000 |
---|---|---|
committer | Remi Cardona <remi@gentoo.org> | 2008-05-22 12:19:29 +0000 |
commit | 5890b42ef185cf9f2be2e8bfce2717e18658e7ca (patch) | |
tree | a116cd75cd5d25141078c1c880ec4b4191bf230a /x11-drivers/xf86-video-i810 | |
parent | version bump (diff) | |
download | historical-5890b42ef185cf9f2be2e8bfce2717e18658e7ca.tar.gz historical-5890b42ef185cf9f2be2e8bfce2717e18658e7ca.tar.bz2 historical-5890b42ef185cf9f2be2e8bfce2717e18658e7ca.zip |
x11-drivers/xf86-video-i810: Add a few patches from the xf86-video-intel-2.3-branch, containing a fix for bug #222981
Package-Manager: portage-2.1.5.2
Diffstat (limited to 'x11-drivers/xf86-video-i810')
8 files changed, 281 insertions, 2 deletions
diff --git a/x11-drivers/xf86-video-i810/ChangeLog b/x11-drivers/xf86-video-i810/ChangeLog index 35ea04325701..34e36986041b 100644 --- a/x11-drivers/xf86-video-i810/ChangeLog +++ b/x11-drivers/xf86-video-i810/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for x11-drivers/xf86-video-i810 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-i810/ChangeLog,v 1.91 2008/05/20 08:29:46 remi Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-i810/ChangeLog,v 1.92 2008/05/22 12:19:29 remi Exp $ + +*xf86-video-i810-2.3.1-r1 (22 May 2008) + + 22 May 2008; Rémi Cardona <remi@gentoo.org> + +files/2.3.1/0001-Skip-copying-on-FOURCC_XVMC-surfaces.patch, + +files/2.3.1/0002-Only-use-FOURCC_XVMC-when-INTEL_XVMC-is-defined.patch, + +files/2.3.1/0003-Panel-fitting-fix-letterbox-modes.patch, + +files/2.3.1/0004-Add-glproto-to-DRI-dependencies.patch, + +files/2.3.1/0005-Revert-Add-FIFO-watermark-regs-to-register-dumper.patch, + +xf86-video-i810-2.3.1-r1.ebuild: + Add a few patches from the xf86-video-intel-2.3-branch, containing a fix + for bug #222981 20 May 2008; Rémi Cardona <remi@gentoo.org> xf86-video-i810-1.6.5.ebuild, xf86-video-i810-2.2.1.ebuild: diff --git a/x11-drivers/xf86-video-i810/Manifest b/x11-drivers/xf86-video-i810/Manifest index 75ec529bd466..e2474eaa7338 100644 --- a/x11-drivers/xf86-video-i810/Manifest +++ b/x11-drivers/xf86-video-i810/Manifest @@ -1,5 +1,10 @@ AUX 0001-fixup-pciaccess-version-detect.patch 824 RMD160 6e148f2fe467ba6e9d48e046f067ba405d10b0d1 SHA1 e80e2c8a24a4b54b35d6da5a28d4b70c0b20d8f1 SHA256 05d4ba845535c3bd6a28500251b9e6425af49e671a548d718cac81f57242823e AUX 1.6.5-fix_no_dri.patch 1236 RMD160 5ab3bf1c3951c2fe7064fa13ffb573754ef594b1 SHA1 60f13aad5aa5f2a199ebc4b38ff468df9728ce5d SHA256 5b560f31a70b1998749e6cbcbfb6d7a94d3f9caf9ca4dad147662bc6eeb344da +AUX 2.3.1/0001-Skip-copying-on-FOURCC_XVMC-surfaces.patch 2102 RMD160 4b6e84b093157985bafb71f067a46730a610b6c2 SHA1 622dd20bfea2489a19daa4e40b2ee00fa3ba196b SHA256 c2327cea9c60f95f37acab23ab790014e96ca96862da639867bd6c254899735d +AUX 2.3.1/0002-Only-use-FOURCC_XVMC-when-INTEL_XVMC-is-defined.patch 1396 RMD160 870f69bf59d29e012e5ceb24b9ba72cb88da4285 SHA1 ae675a29ce99d7e77353d99f1fa101d7ca2605e7 SHA256 d806111bfb0bcc4fc5101465f6878d3e6f582db15932151414ae06bc5e14f14f +AUX 2.3.1/0003-Panel-fitting-fix-letterbox-modes.patch 1025 RMD160 34877241390e2294ed869bc3d6e1a82dfa5c6060 SHA1 7b1c3138ce751678268d5a07537002ce7ba5905a SHA256 1d70715f9028ccca115951300da1b87b0ef1f1137b43bf982452b1611a1766b5 +AUX 2.3.1/0004-Add-glproto-to-DRI-dependencies.patch 828 RMD160 fc0b5016ebd6e4aae9be01f892b184da9be2dd16 SHA1 3786cfc6dc0317ab2347d8e607d2cc80e2c2423e SHA256 e51b729e028ad2b2d5f4c82b3cb5152564814dca7918bffbf63a58605ab1bad9 +AUX 2.3.1/0005-Revert-Add-FIFO-watermark-regs-to-register-dumper.patch 1296 RMD160 5e9f45e1cde726cc1aabffbb57f6fc9541c87eb1 SHA1 1e82fb2bc452e614d8c5ca6e00e464c76bed8dfd SHA256 1946a330109abbcdbccd1836158ebb1061c356ca057f275853a75472943347b1 AUX i810.xinf 1442 RMD160 38dff5ef3b6548c9fdea8f6df2b607eee8f670f2 SHA1 cf0b700f6fa0734ea56ff9a167098649d8e3767e SHA256 c690ba8705e21394dcb927f4a5499c7dbdba492042d7d54eb3c21daf5d326347 AUX xf86-video-i810-2.1.1-fix_build_without_dri.patch 1207 RMD160 8f562c70bb6f0612981bacf28bd0bc005d358cf3 SHA1 226de2c0d345099c3eb4eb48fddd37c384b5557c SHA256 48d2864503d3bc756fcb766cd61a7e0f4b71bfa0fbe78b3a22bf46cf6249ee61 DIST xf86-video-i810-1.6.5.tar.bz2 439503 RMD160 1a55fdfe89f855dd7bf1e16619c89da42383eef6 SHA1 7d9cf4fa18ec6dd7eefcb1589675c7bcffa384d0 SHA256 30d0cd555d8b8b5bb53d93eaae1ad2aecb5c94a760e2346d60b6e194c254e40f @@ -15,6 +20,7 @@ EBUILD xf86-video-i810-2.1.1.ebuild 1248 RMD160 c527823789e4446ab2fe5202e9f88a78 EBUILD xf86-video-i810-2.2.0.90.ebuild 1184 RMD160 9afd30f21c9112b2a70c8d6318465839de7ea4b9 SHA1 f7afbc5a7bfca23defa9e36e633563c5e24ddd93 SHA256 d763f3f3795fd8999daa9c3386e9c2f6408006eb3c2cfc3242aa31c8686bbab2 EBUILD xf86-video-i810-2.2.1.ebuild 1246 RMD160 784e0fb29f68161a01f9f330caad8fb241196b66 SHA1 d8c938d8b33e97e79a36ad9481553ba54405eee8 SHA256 287b7127f3635d35b05dc6ec57fe9c3667b9d8dac586f0df782292c57de7bd4d EBUILD xf86-video-i810-2.3.0.ebuild 1180 RMD160 2ff676518a6a0e45dfc274d68cb4b07e698c7068 SHA1 28d249dcc67e0a96f7a7daaacd1ac72922ea3419 SHA256 217385101dc388352f35d420cc591e38f519bb442975ad03bc2a03bcfdc3e05b +EBUILD xf86-video-i810-2.3.1-r1.ebuild 1550 RMD160 98137c7a143d73d11fdb8906b86170620f1e0d72 SHA1 3ded76ae92fe51bc0d26a553a9c3547ea13e498b SHA256 72a41415c4976d0001610f11a1a211782599f50f129d6497130227674e20aabf EBUILD xf86-video-i810-2.3.1.ebuild 1180 RMD160 6d5bf90f2aebeadafb4db430c4b5b3077a7513a2 SHA1 4e6348787ea102a738e485b377d82be4f85928ef SHA256 b006375303a8dcfe4f4a0c51ab030f846668d61e85dfe9f8cf20eca8486a402b -MISC ChangeLog 16797 RMD160 ae4117799044724ed5ae60087856d722d6372b31 SHA1 ac81fd4e2fb0859c05df6bc6f106167d9f4175dd SHA256 04c1883b4a96df53ee55534c64587b38e9eede42abf8e23e1f170bb06ad7562a +MISC ChangeLog 17351 RMD160 15de1ee38dcb97659c997030e50e171bef3cb0e2 SHA1 175dab7c99b2b568ecb77d6117ba09c9db58eea2 SHA256 a67cb575d38906834bb2cb354a683b198027c0a12e4a7568c36cf2fc9ba2945f MISC metadata.xml 248 RMD160 1bc22252fb59ed171fe013e765baa171151843cf SHA1 1df26c31e85768bb440888be23ba6fdcb421843d SHA256 a52fe0f6937ba347182a10ae3c710ee5524086af9b011567f5629ba165bf7dcd diff --git a/x11-drivers/xf86-video-i810/files/2.3.1/0001-Skip-copying-on-FOURCC_XVMC-surfaces.patch b/x11-drivers/xf86-video-i810/files/2.3.1/0001-Skip-copying-on-FOURCC_XVMC-surfaces.patch new file mode 100644 index 000000000000..3e1af7fd6af3 --- /dev/null +++ b/x11-drivers/xf86-video-i810/files/2.3.1/0001-Skip-copying-on-FOURCC_XVMC-surfaces.patch @@ -0,0 +1,74 @@ +From 2aada39e1a2517c07c9ae87722341b6150f75b7d Mon Sep 17 00:00:00 2001 +From: Keith Packard <keithp@keithp.com> +Date: Sat, 12 Apr 2008 16:39:00 -0700 +Subject: [PATCH] Skip copying on FOURCC_XVMC surfaces + (cherry picked from commit 6366e4de540c4713cbc8402c89516464bbdc35b9) + + +diff --git a/src/i830_video.c b/src/i830_video.c +index 67fe291..5d6c209 100644 +--- a/src/i830_video.c ++++ b/src/i830_video.c +@@ -2119,6 +2119,7 @@ i830_display_video(ScrnInfoPtr pScrn, xf86CrtcPtr crtc, + switch (id) { + case FOURCC_YV12: + case FOURCC_I420: ++ case FOURCC_XVMC: + OVERLAY_DEBUG("YUV420\n"); + #if 0 + /* set UV vertical phase to -0.25 */ +@@ -2133,7 +2134,6 @@ i830_display_video(ScrnInfoPtr pScrn, xf86CrtcPtr crtc, + break; + case FOURCC_UYVY: + case FOURCC_YUY2: +- default: + OVERLAY_DEBUG("YUV422\n"); + overlay->OSTRIDE = dstPitch; + OCMD &= ~SOURCE_FORMAT; +@@ -2376,6 +2376,7 @@ I830PutImage(ScrnInfoPtr pScrn, + switch (destId) { + case FOURCC_YV12: + case FOURCC_I420: ++ case FOURCC_XVMC: + if (pPriv->rotation & (RR_Rotate_90 | RR_Rotate_270)) { + dstPitch = ((height / 2) + pitchAlignMask) & ~pitchAlignMask; + size = dstPitch * width * 3; +@@ -2386,7 +2387,7 @@ I830PutImage(ScrnInfoPtr pScrn, + break; + case FOURCC_UYVY: + case FOURCC_YUY2: +- default: ++ + if (pPriv->rotation & (RR_Rotate_90 | RR_Rotate_270)) { + dstPitch = ((height << 1) + pitchAlignMask) & ~pitchAlignMask; + size = dstPitch * width; +@@ -2395,6 +2396,10 @@ I830PutImage(ScrnInfoPtr pScrn, + size = dstPitch * height; + } + break; ++ default: ++ dstPitch = 0; ++ size = 0; ++ break; + } + #if 0 + ErrorF("srcPitch: %d, dstPitch: %d, size: %d\n", srcPitch, dstPitch, size); +@@ -2480,11 +2485,14 @@ I830PutImage(ScrnInfoPtr pScrn, + break; + case FOURCC_UYVY: + case FOURCC_YUY2: +- default: + nlines = ((y2 + 0xffff) >> 16) - top; + I830CopyPackedData(pScrn, pPriv, buf, srcPitch, dstPitch, top, left, + nlines, npixels); + break; ++ case FOURCC_XVMC: ++ break; ++ default: ++ break; + } + + if (pDraw->type == DRAWABLE_WINDOW) { +-- +1.5.5.1 + diff --git a/x11-drivers/xf86-video-i810/files/2.3.1/0002-Only-use-FOURCC_XVMC-when-INTEL_XVMC-is-defined.patch b/x11-drivers/xf86-video-i810/files/2.3.1/0002-Only-use-FOURCC_XVMC-when-INTEL_XVMC-is-defined.patch new file mode 100644 index 000000000000..569fcfcae576 --- /dev/null +++ b/x11-drivers/xf86-video-i810/files/2.3.1/0002-Only-use-FOURCC_XVMC-when-INTEL_XVMC-is-defined.patch @@ -0,0 +1,47 @@ +From 9bb3ac06ed3d1a3456217d478d556b0abf05b585 Mon Sep 17 00:00:00 2001 +From: Keith Packard <keithp@keithp.com> +Date: Sun, 13 Apr 2008 21:37:49 -0700 +Subject: [PATCH] Only use FOURCC_XVMC when INTEL_XVMC is defined + +The XVMC code uses a magic FOURCC code to signal frame updates, but that +code is only defined when the XVMC code is used. +(cherry picked from commit 18ef4158e5574bfc6621b268821532f13e261d13) + +diff --git a/src/i830_video.c b/src/i830_video.c +index 5d6c209..91e0e00 100644 +--- a/src/i830_video.c ++++ b/src/i830_video.c +@@ -2119,7 +2119,9 @@ i830_display_video(ScrnInfoPtr pScrn, xf86CrtcPtr crtc, + switch (id) { + case FOURCC_YV12: + case FOURCC_I420: ++#ifdef INTEL_XVMC + case FOURCC_XVMC: ++#endif + OVERLAY_DEBUG("YUV420\n"); + #if 0 + /* set UV vertical phase to -0.25 */ +@@ -2376,7 +2378,9 @@ I830PutImage(ScrnInfoPtr pScrn, + switch (destId) { + case FOURCC_YV12: + case FOURCC_I420: ++#ifdef INTEL_XVMC + case FOURCC_XVMC: ++#endif + if (pPriv->rotation & (RR_Rotate_90 | RR_Rotate_270)) { + dstPitch = ((height / 2) + pitchAlignMask) & ~pitchAlignMask; + size = dstPitch * width * 3; +@@ -2489,8 +2493,10 @@ I830PutImage(ScrnInfoPtr pScrn, + I830CopyPackedData(pScrn, pPriv, buf, srcPitch, dstPitch, top, left, + nlines, npixels); + break; ++#ifdef INTEL_XVMC + case FOURCC_XVMC: + break; ++#endif + default: + break; + } +-- +1.5.5.1 + diff --git a/x11-drivers/xf86-video-i810/files/2.3.1/0003-Panel-fitting-fix-letterbox-modes.patch b/x11-drivers/xf86-video-i810/files/2.3.1/0003-Panel-fitting-fix-letterbox-modes.patch new file mode 100644 index 000000000000..5dc936b88e8e --- /dev/null +++ b/x11-drivers/xf86-video-i810/files/2.3.1/0003-Panel-fitting-fix-letterbox-modes.patch @@ -0,0 +1,27 @@ +From f419f56ec8715e980aeb673bf4afd7649580d53c Mon Sep 17 00:00:00 2001 +From: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org> +Date: Mon, 12 May 2008 10:58:24 -0700 +Subject: [PATCH] Panel fitting: fix letterbox modes + +In full_aspect mode, we try to preserve the aspect ratio by adding +either top & bottom or left & right borders. In the letterbox case (top +& bottom borders) we were miscalculating the top border which led to +programming a bad mode. Fix the calculation and bug #15559. +(cherry picked from commit 5103e5a39a4869a714b8a59da8bf51ecc8c65e4f) + +diff --git a/src/i830_lvds.c b/src/i830_lvds.c +index 48402df..899c6cb 100644 +--- a/src/i830_lvds.c ++++ b/src/i830_lvds.c +@@ -671,7 +671,7 @@ i830_lvds_mode_fixup(xf86OutputPtr output, DisplayModePtr mode, + + /* Letterbox will have top/bottom borders */ + top_border = (dev_priv->panel_fixed_mode->VDisplay - +- mode->VDisplay) / 2; ++ scaled_height) / 2; + bottom_border = top_border; + if (mode->VDisplay & 1) + bottom_border++; +-- +1.5.5.1 + diff --git a/x11-drivers/xf86-video-i810/files/2.3.1/0004-Add-glproto-to-DRI-dependencies.patch b/x11-drivers/xf86-video-i810/files/2.3.1/0004-Add-glproto-to-DRI-dependencies.patch new file mode 100644 index 000000000000..3fc53fc04cad --- /dev/null +++ b/x11-drivers/xf86-video-i810/files/2.3.1/0004-Add-glproto-to-DRI-dependencies.patch @@ -0,0 +1,23 @@ +From 730259ed6446f73d9aa0318688b0795641bea076 Mon Sep 17 00:00:00 2001 +From: =?utf-8?q?R=C3=A9mi=20Cardona?= <remi@gentoo.org> +Date: Wed, 14 May 2008 14:52:37 +0800 +Subject: [PATCH] Add glproto to DRI dependencies + (cherry picked from commit e9532f3abf1e0b62b2569d4aae60a5a63add571f) + + +diff --git a/configure.ac b/configure.ac +index f8a3824..94562dd 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -197,7 +197,7 @@ fi + + AM_CONDITIONAL(DRI, test x$DRI = xyes) + if test "$DRI" = yes; then +- PKG_CHECK_MODULES(DRI, [libdrm xf86driproto]) ++ PKG_CHECK_MODULES(DRI, [libdrm xf86driproto glproto]) + AC_DEFINE(XF86DRI,1,[Enable DRI driver support]) + AC_DEFINE(XF86DRI_DEVEL,1,[Enable developmental DRI driver support]) + PKG_CHECK_MODULES(DRI_MM, [libdrm >= 2.3.1],[DRI_MM=yes], [DRI_MM=no]) +-- +1.5.5.1 + diff --git a/x11-drivers/xf86-video-i810/files/2.3.1/0005-Revert-Add-FIFO-watermark-regs-to-register-dumper.patch b/x11-drivers/xf86-video-i810/files/2.3.1/0005-Revert-Add-FIFO-watermark-regs-to-register-dumper.patch new file mode 100644 index 000000000000..b5f0ce02dea8 --- /dev/null +++ b/x11-drivers/xf86-video-i810/files/2.3.1/0005-Revert-Add-FIFO-watermark-regs-to-register-dumper.patch @@ -0,0 +1,41 @@ +From 288ef6585150f2a58d4c1723efae1a5a7a41772a Mon Sep 17 00:00:00 2001 +From: Zhenyu Wang <zhenyu.z.wang@intel.com> +Date: Tue, 20 May 2008 08:54:01 +0800 +Subject: [PATCH] Revert "Add FIFO watermark regs to register dumper" + +This reverts commit 0c00a638ef57aa9d6a3047176b0bfad733f781f0. + +Those FIFO watermark regs are 945-ish, and cause problem +on G35. +(cherry picked from commit 740a73dad1d9a9b0ebf1cc7d6f2a056abad57aaf) + +diff --git a/src/i810_reg.h b/src/i810_reg.h +index cc4620a..834b948 100644 +--- a/src/i810_reg.h ++++ b/src/i810_reg.h +@@ -497,7 +497,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + #define FWATER_BLC 0x20d8 + #define FWATER_BLC2 0x20dc +-#define FWATER_BLC_SELF 0x20e0 + #define MM_BURST_LENGTH 0x00700000 + #define MM_FIFO_WATERMARK 0x0001F000 + #define LM_BURST_LENGTH 0x00000700 +diff --git a/src/i830_debug.c b/src/i830_debug.c +index 0eba57f..15b02ce 100644 +--- a/src/i830_debug.c ++++ b/src/i830_debug.c +@@ -546,10 +546,6 @@ static struct i830SnapshotRec { + DEFINEREG(FBC_FENCE_OFF), + DEFINEREG(FBC_MOD_NUM), + +- DEFINEREG(FWATER_BLC), +- DEFINEREG(FWATER_BLC2), +- DEFINEREG(FWATER_BLC_SELF), +- + DEFINEREG2(FPA0, i830_debug_fp), + DEFINEREG2(FPA1, i830_debug_fp), + DEFINEREG2(DPLL_A, i830_debug_dpll), +-- +1.5.5.1 + diff --git a/x11-drivers/xf86-video-i810/xf86-video-i810-2.3.1-r1.ebuild b/x11-drivers/xf86-video-i810/xf86-video-i810-2.3.1-r1.ebuild new file mode 100644 index 000000000000..b0ebfcb0a908 --- /dev/null +++ b/x11-drivers/xf86-video-i810/xf86-video-i810-2.3.1-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-i810/xf86-video-i810-2.3.1-r1.ebuild,v 1.1 2008/05/22 12:19:29 remi Exp $ + +# Must be before x-modular eclass is inherited +# Enable snapshot to get the man page in the right place +# This should be fixed with a XDP patch later +SNAPSHOT="yes" +XDPVER=-1 + +inherit x-modular + +# This really needs a pkgmove... +SRC_URI="http://xorg.freedesktop.org/archive/individual/driver/xf86-video-intel-${PV}.tar.bz2" + +S="${WORKDIR}/xf86-video-intel-${PV}" + +DESCRIPTION="X.Org driver for Intel cards" + +KEYWORDS="~amd64 ~arm ~ia64 ~sh ~x86 ~x86-fbsd" +IUSE="dri" + +RDEPEND=">=x11-base/xorg-server-1.2 + x11-libs/libXvMC" +DEPEND="${RDEPEND} + x11-proto/fontsproto + x11-proto/randrproto + x11-proto/renderproto + x11-proto/xextproto + x11-proto/xineramaproto + x11-proto/xproto + dri? ( x11-proto/xf86driproto + x11-proto/glproto + >=x11-libs/libdrm-2.2 + x11-libs/libX11 )" + +CONFIGURE_OPTIONS="$(use_enable dri)" +PATCHES=( +"${FILESDIR}/2.3.1/0001-Skip-copying-on-FOURCC_XVMC-surfaces.patch" +"${FILESDIR}/2.3.1/0002-Only-use-FOURCC_XVMC-when-INTEL_XVMC-is-defined.patch" +"${FILESDIR}/2.3.1/0003-Panel-fitting-fix-letterbox-modes.patch" +"${FILESDIR}/2.3.1/0004-Add-glproto-to-DRI-dependencies.patch" +"${FILESDIR}/2.3.1/0005-Revert-Add-FIFO-watermark-regs-to-register-dumper.patch") + +pkg_setup() { + if use dri && ! built_with_use x11-base/xorg-server dri; then + die "Build x11-base/xorg-server with USE=dri." + fi +} |