diff options
author | 2014-01-12 19:09:40 -0800 | |
---|---|---|
committer | 2014-01-12 19:09:40 -0800 | |
commit | 26ede097e2cc2a400125645d1d5d9a6dec91349b (patch) | |
tree | e4949457b0624db497169594d4135e6a391e6125 /x11-drivers | |
parent | silly manifest update (diff) | |
download | arm-26ede097e2cc2a400125645d1d5d9a6dec91349b.tar.gz arm-26ede097e2cc2a400125645d1d5d9a6dec91349b.tar.bz2 arm-26ede097e2cc2a400125645d1d5d9a6dec91349b.zip |
added DamageUnregister patch for opentegra
Diffstat (limited to 'x11-drivers')
3 files changed, 54 insertions, 1 deletions
diff --git a/x11-drivers/xf86-video-opentegra/Manifest b/x11-drivers/xf86-video-opentegra/Manifest index efb0c73..9446d46 100644 --- a/x11-drivers/xf86-video-opentegra/Manifest +++ b/x11-drivers/xf86-video-opentegra/Manifest @@ -1,2 +1,3 @@ +AUX xf86-video-opentegra-0.6.0-DamageUnregister-fix.patch 1791 SHA256 f010933614e43d2fcb2755aab88ca515bda68f94499dce2cebd3ed5a8e8e07fe SHA512 256243ee58845849995fcd7575ae6e4e296a3b7394834604bb51e217b2b11a901698ec002924e771d7c01b9a3e77d1ce0608e584b46840dd83cac28ca37ab19e WHIRLPOOL 9852d7f61f250eba4e60fc6781a6223106fcdc65590e7e7fc82738f8418b39bb6b50632aaf70422704f71df91f278de51d31ee418221409b9eb53d0622b1e081 DIST xf86-video-opentegra-0.6.0.tar.xz 249228 SHA256 6e10e6ba43d5640637afa3b95ebbf1ff6e1850ae1951f762e5e29e0042dcf92c SHA512 327f603f5b4488be4f59e96f64427d9e9685e91e5d4111e7d66aae6a282147efd5ce20fc3cfb23f61227d00ccd519172f609c4438fb4d945b0d2154f20ea30dc WHIRLPOOL e3b89f4ceccbe573b7bcaf660093727984322a4751dc6f4964f676f4191978fef447361484c021037512459db4369c054419454d7eec19a06fbe5fbdab3f1875 -EBUILD xf86-video-opentegra-0.6.0.ebuild 319 SHA256 d1dc37d831d746211e82a8912ceac1c1746a5155d055e83ec488a4cfbc446894 SHA512 a99895b6ec8174f819584fbb07ece1c75e436d1f821bf6d7de7a42b2f6a87e708127ca1d2e799b3c8df97d3486964d82dd5b11dc0a4490aa2db70d1a31be8342 WHIRLPOOL feb0584e3577f74cb5a8f50442d79ec8820991bd03b143b5cb440cb45f18a9dc6bbabeefd266afeccdd71f9282a4a237293c2bcb671533ecf9fdac92047fdb1b +EBUILD xf86-video-opentegra-0.6.0.ebuild 395 SHA256 cb3668f697ad59fd99c46eb96b60bb086a6c5a1b71194820f6cac2e7c3565c28 SHA512 43d5c3c487a67fdcfc73c8e48c1894033e55ded2340d455c01b4701d08f68581974fcbf16046884a5c7f348f3cfcf91872cdb565129327854e3545abe552a2a9 WHIRLPOOL c1b2250f453565f6cdd225642c0e7bba5326fe0bb6033b7d059b1df4170df46019f52054be9b0accf775ef5c552d7d7c036ad9677371ac9c89da8a9bea5c6950 diff --git a/x11-drivers/xf86-video-opentegra/files/xf86-video-opentegra-0.6.0-DamageUnregister-fix.patch b/x11-drivers/xf86-video-opentegra/files/xf86-video-opentegra-0.6.0-DamageUnregister-fix.patch new file mode 100644 index 0000000..6be4e85 --- /dev/null +++ b/x11-drivers/xf86-video-opentegra/files/xf86-video-opentegra-0.6.0-DamageUnregister-fix.patch @@ -0,0 +1,46 @@ +--- src/drmmode_display.c.orig 2014-01-12 13:05:59.480000000 -0800 ++++ src/drmmode_display.c 2014-01-12 13:15:06.560000000 -0800 +@@ -461,8 +461,13 @@ + } + + if (drmmode_crtc->slave_damage) { ++#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0) ++ DamageUnregister(drmmode_crtc->slave_damage); ++#else + DamageUnregister(&crtc->randr_crtc->scanout_pixmap->drawable, + drmmode_crtc->slave_damage); ++#endif ++ DamageDestroy(drmmode_crtc->slave_damage); + drmmode_crtc->slave_damage = NULL; + } + +--- src/driver.c.orig 2014-01-12 13:26:13.410000000 -0800 ++++ src/driver.c 2014-01-12 13:28:22.910000000 -0800 +@@ -128,8 +128,12 @@ + ret = dispatch_dirty_region(scrn, pixmap, tegra->damage, fb_id); + if (ret == -EINVAL || ret == -ENOSYS) { + tegra->dirty_enabled = FALSE; ++#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0) ++ DamageUnregister(tegra->damage); ++#else + DamageUnregister(&pScreen->GetScreenPixmap(pScreen)->drawable, + tegra->damage); ++#endif + DamageDestroy(tegra->damage); + tegra->damage = NULL; + xf86DrvMsg(scrn->scrnIndex, X_INFO, "Disabling kernel dirty updates, not required.\n"); +--- src/driver.c.orig 2014-01-12 13:55:18.210000000 -0800 ++++ src/driver.c 2014-01-12 13:57:40.270000000 -0800 +@@ -570,8 +570,12 @@ + TegraPtr tegra = TegraPTR(pScrn); + + if (tegra->damage) { ++#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0) ++ DamageUnregister(tegra->damage); ++#else + DamageUnregister(&pScreen->GetScreenPixmap(pScreen)->drawable, + tegra->damage); ++#endif + DamageDestroy(tegra->damage); + tegra->damage = NULL; + } diff --git a/x11-drivers/xf86-video-opentegra/xf86-video-opentegra-0.6.0.ebuild b/x11-drivers/xf86-video-opentegra/xf86-video-opentegra-0.6.0.ebuild index 008f967..4a84471 100644 --- a/x11-drivers/xf86-video-opentegra/xf86-video-opentegra-0.6.0.ebuild +++ b/x11-drivers/xf86-video-opentegra/xf86-video-opentegra-0.6.0.ebuild @@ -11,3 +11,9 @@ SRC_URI="http://people.freedesktop.org/~tagr/xf86-video-opentegra-0.6.0.tar.xz" KEYWORDS="-* ~arm" IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-DamageUnregister-fix.patch + + +} |