From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Sh78b-0005TD-K1 for garchives@archives.gentoo.org; Tue, 19 Jun 2012 22:43:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 47EFDE0683; Tue, 19 Jun 2012 22:42:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1C5D4E0683 for ; Tue, 19 Jun 2012 22:42:52 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7FB411B4015 for ; Tue, 19 Jun 2012 22:42:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 409D1E5432 for ; Tue, 19 Jun 2012 22:42:50 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: <1340145756.3994c6caadfb28b1e50cf174ad279450f8fd1e31.alexxy@gentoo> Subject: [gentoo-commits] proj/x11:opencl commit in: media-libs/mesa/, media-libs/mesa/files/ X-VCS-Repository: proj/x11 X-VCS-Files: media-libs/mesa/files/0004-r600g-fix-reading-vtx.patch media-libs/mesa/mesa-9999.ebuild X-VCS-Directories: media-libs/mesa/ media-libs/mesa/files/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: 3994c6caadfb28b1e50cf174ad279450f8fd1e31 X-VCS-Branch: opencl Date: Tue, 19 Jun 2012 22:42:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c3f465af-3935-456c-9fd7-7f91df5d8dd3 X-Archives-Hash: 6e5651c0a54f7dcf71fbb4209a199862 commit: 3994c6caadfb28b1e50cf174ad279450f8fd1e31 Author: Alexey Shvetsov gentoo org> AuthorDate: Tue Jun 19 22:42:36 2012 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Tue Jun 19 22:42:36 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/x11.git;a=3Dc= ommit;h=3D3994c6ca [media-libs/mesa] Add patch to fix compute capability for 3.4+ kernels Signed-off-by: Alexey Shvetsov gentoo.org> --- .../mesa/files/0004-r600g-fix-reading-vtx.patch | 21 ++++++++++++++= ++++++ media-libs/mesa/mesa-9999.ebuild | 1 + 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/media-libs/mesa/files/0004-r600g-fix-reading-vtx.patch b/med= ia-libs/mesa/files/0004-r600g-fix-reading-vtx.patch new file mode 100644 index 0000000..723f239 --- /dev/null +++ b/media-libs/mesa/files/0004-r600g-fix-reading-vtx.patch @@ -0,0 +1,21 @@ +From 7c1c8b1384e11166e1d3d1eb15750f3f8dd3241c Mon Sep 17 00:00:00 2001 +From: Tom Stellard +Date: Wed, 06 Jun 2012 22:31:00 +0000 +Subject: r600g: Fix reading vtx instruction offset from bytestream + +--- +diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/driver= s/r600/r600_shader.c +index 8a80dba..7ec1a1a 100644 +--- a/src/gallium/drivers/r600/r600_shader.c ++++ b/src/gallium/drivers/r600/r600_shader.c +@@ -460,7 +460,7 @@ static int r600_vtx_from_byte_stream(struct r600_sha= der_ctx *ctx, + vtx.srf_mode_all =3D bytes[bytes_read++]; + /* offset is 2 bytes wide */ + vtx.offset =3D bytes[bytes_read++]; +- vtx.offset |=3D bytes[bytes_read++]; ++ vtx.offset |=3D (bytes[bytes_read++] << 8); + vtx.endian =3D bytes[bytes_read++]; +=20 + if (r600_bytecode_add_vtx(ctx->bc, &vtx)) { +-- +cgit v0.9.0.2-2-gbebe diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999= .ebuild index af5720e..0a19214 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -154,6 +154,7 @@ PATCHES=3D( "${FILESDIR}/0001-radeong-clover-add-clang-path-to-configure.patch" "${FILESDIR}/0002-radeong-opencl-rename-target-from-r600-to-r600-amd-n= .patch" "${FILESDIR}/0003-clover-fix-building-and-add-standart-locations-for-l= .patch" + "${FILESDIR}/0004-r600g-fix-reading-vtx.patch" ) =20 # It is slow without texrels, if someone wants slow