From: "Alexey Shvetsov" <alexxy@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/x11:opencl commit in: dev-libs/libclc/, dev-libs/libclc/files/
Date: Thu, 11 Apr 2013 03:52:07 +0000 (UTC) [thread overview]
Message-ID: <1365652234.45f5621aa0371b8d25dd4baf1529034a13320b52.alexxy@gentoo> (raw)
commit: 45f5621aa0371b8d25dd4baf1529034a13320b52
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 11 03:50:34 2013 +0000
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Thu Apr 11 03:50:34 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=45f5621a
Add patch to make bfgminer work
Package-Manager: portage-2.2.0_alpha171
---
.../r600-fix-get_group_id-and-get_local_size.patch | 64 ++++++++++++++++++++
dev-libs/libclc/libclc-9999.ebuild | 4 +
2 files changed, 68 insertions(+), 0 deletions(-)
diff --git a/dev-libs/libclc/files/r600-fix-get_group_id-and-get_local_size.patch b/dev-libs/libclc/files/r600-fix-get_group_id-and-get_local_size.patch
new file mode 100644
index 0000000..79742cd
--- /dev/null
+++ b/dev-libs/libclc/files/r600-fix-get_group_id-and-get_local_size.patch
@@ -0,0 +1,64 @@
+From f66311f8f1fa4590c7e94da9b50ace728aaed1ae Mon Sep 17 00:00:00 2001
+From: Tom Stellard <thomas.stellard@amd.com>
+Date: Wed, 10 Apr 2013 19:18:12 +0000
+Subject: r600: Fix implementations of get_group_id.ll and get_local_size.ll
+
+---
+diff --git a/r600/lib/workitem/get_group_id.ll b/r600/lib/workitem/get_group_id.ll
+index 5131648..0dc86e5 100644
+--- a/r600/lib/workitem/get_group_id.ll
++++ b/r600/lib/workitem/get_group_id.ll
+@@ -1,17 +1,17 @@
+-declare i32 @llvm.r600.read.local.size.x() nounwind readnone
+-declare i32 @llvm.r600.read.local.size.y() nounwind readnone
+-declare i32 @llvm.r600.read.local.size.z() nounwind readnone
++declare i32 @llvm.r600.read.tgid.x() nounwind readnone
++declare i32 @llvm.r600.read.tgid.y() nounwind readnone
++declare i32 @llvm.r600.read.tgid.z() nounwind readnone
+
+ define i32 @get_group_id(i32 %dim) nounwind readnone alwaysinline {
+ switch i32 %dim, label %default [i32 0, label %x_dim i32 1, label %y_dim i32 2, label %z_dim]
+ x_dim:
+- %x = call i32 @llvm.r600.read.local.size.x() nounwind readnone
++ %x = call i32 @llvm.r600.read.tgid.x() nounwind readnone
+ ret i32 %x
+ y_dim:
+- %y = call i32 @llvm.r600.read.local.size.y() nounwind readnone
++ %y = call i32 @llvm.r600.read.tgid.y() nounwind readnone
+ ret i32 %y
+ z_dim:
+- %z = call i32 @llvm.r600.read.local.size.z() nounwind readnone
++ %z = call i32 @llvm.r600.read.tgid.z() nounwind readnone
+ ret i32 %z
+ default:
+ ret i32 0
+diff --git a/r600/lib/workitem/get_local_size.ll b/r600/lib/workitem/get_local_size.ll
+index 6a71f75..0a98de6 100644
+--- a/r600/lib/workitem/get_local_size.ll
++++ b/r600/lib/workitem/get_local_size.ll
+@@ -1,17 +1,17 @@
+-declare i32 @llvm.r600.read.tgid.x() nounwind readnone
+-declare i32 @llvm.r600.read.tgid.y() nounwind readnone
+-declare i32 @llvm.r600.read.tgid.z() nounwind readnone
++declare i32 @llvm.r600.read.local.size.x() nounwind readnone
++declare i32 @llvm.r600.read.local.size.y() nounwind readnone
++declare i32 @llvm.r600.read.local.size.z() nounwind readnone
+
+ define i32 @get_local_size(i32 %dim) nounwind readnone alwaysinline {
+ switch i32 %dim, label %default [i32 0, label %x_dim i32 1, label %y_dim i32 2, label %z_dim]
+ x_dim:
+- %x = call i32 @llvm.r600.read.tgid.x() nounwind readnone
++ %x = call i32 @llvm.r600.read.local.size.x() nounwind readnone
+ ret i32 %x
+ y_dim:
+- %y = call i32 @llvm.r600.read.tgid.y() nounwind readnone
++ %y = call i32 @llvm.r600.read.local.size.y() nounwind readnone
+ ret i32 %y
+ z_dim:
+- %z = call i32 @llvm.r600.read.tgid.z() nounwind readnone
++ %z = call i32 @llvm.r600.read.local.size.z() nounwind readnone
+ ret i32 %z
+ default:
+ ret i32 0
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/dev-libs/libclc/libclc-9999.ebuild b/dev-libs/libclc/libclc-9999.ebuild
index 0901372..09c3148 100644
--- a/dev-libs/libclc/libclc-9999.ebuild
+++ b/dev-libs/libclc/libclc-9999.ebuild
@@ -32,6 +32,10 @@ RDEPEND="
>=sys-devel/llvm-3.2"
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}/r600-fix-get_group_id-and-get_local_size.patch"
+)
+
src_configure() {
./configure.py \
--with-llvm-config="${EPREFIX}/usr/bin/llvm-config" \
next reply other threads:[~2013-04-11 3:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-11 3:52 Alexey Shvetsov [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-05-03 20:34 [gentoo-commits] proj/x11:opencl commit in: dev-libs/libclc/, dev-libs/libclc/files/ Alexey Shvetsov
2013-04-06 11:30 Alexey Shvetsov
2013-03-05 5:42 Alexey Shvetsov
2012-06-03 11:47 Alexey Shvetsov
2012-06-03 10:53 Alexey Shvetsov
2012-06-02 23:32 Alexey Shvetsov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1365652234.45f5621aa0371b8d25dd4baf1529034a13320b52.alexxy@gentoo \
--to=alexxy@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox