LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-18-2013, 03:21 PM   #1
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
[REQUEST] Enable 3D acceleration for Radeon HD7000 and HD8000 cards


As it seems Mesa in Slackware -current is compiled without the radeonsi Gallium3D driver, so Radeon HD7000 and HD8000 videochips don't get 3D acceleration. To change this radeonsi has to be added to the
Code:
--with-gallium-drivers=
line in the Mesa Slackbuild.
Unfortunately I have no card from those series available, so I can't test this.
 
Old 07-18-2013, 05:49 PM   #2
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by TobiSGD View Post
As it seems Mesa in Slackware -current is compiled without the radeonsi Gallium3D driver, so Radeon HD7000 and HD8000 videochips don't get 3D acceleration. To change this radeonsi has to be added to the
Code:
--with-gallium-drivers=
line in the Mesa Slackbuild.
Unfortunately I have no card from those series available, so I can't test this.
For RadeonSI you need also R600 target support on LLVM-3.3 enabled with parameter
Code:
--enable-experimental-targets=R600
.
 
Old 07-18-2013, 05:59 PM   #3
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,500

Rep: Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453
Quote:
Originally Posted by Darth Vader View Post
For RadeonSI you need also R600 target support on LLVM-3.3 enabled with parameter
Code:
--enable-experimental-targets=R600
.
That's what the error message told me, too. But then it says that --enable-experimental-targets is an unrecognized option.
 
Old 07-18-2013, 06:32 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,500

Rep: Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453
Also tried --enable-r600-llvm-compiler, but it still spits out the error about needing the option that doesn't work, and the resulting package is missing the drivers for VMware.

Looks like a no-go for now.
 
Old 07-18-2013, 08:29 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148

Original Poster
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Wow, there is more into it than I thought. Thanks for your effort.

EDIT: FWIW, I just tested if that option is recognized when using the latest git of LLVM/Clang and it worked indeed, so I think that this is something to look into after the 14.1 release.

Last edited by TobiSGD; 07-18-2013 at 09:01 PM. Reason: Added info
 
Old 07-18-2013, 08:49 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Try these flags in the configuration and see if they help. I used some of these a while back on my custom libMesa build and they seemed to work:

Code:
--enable-r600-llvm-compiler \
--enable-egl1 \
--enable-egl2 \
--enable-openvg \
--enable-xorg \
--enable-xa \
--enable-opencl \
--with-gallium-drivers="nouveau,r300,r600,radeonsi,svga" \
--with-dri-drivers="i915,i965,intel,radeon,r200,swrast"
BTW: you may want to check -current against the new 9.1.5 sources of libmesa: ftp://ftp.freedesktop.org/pub/mesa/9...-9.1.5.tar.bz2

And OpenCL might pester for these also:

http://slackbuilds.org/repository/14...pencl-headers/

Last edited by ReaperX7; 07-18-2013 at 08:57 PM.
 
Old 07-18-2013, 11:54 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,500

Rep: Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453
Quote:
Originally Posted by ReaperX7 View Post
BTW: you may want to check -current against the new 9.1.5 sources of libmesa: ftp://ftp.freedesktop.org/pub/mesa/9...-9.1.5.tar.bz2
I'm grabbing that now. But if radeonsi requires features that are labeled experimental, it's not time for that yet.
 
Old 07-19-2013, 12:07 AM   #8
tuxbg
Member
 
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249

Rep: Reputation: Disabled
Also for OpenGL 3.0/3.1 Pat you need this
Code:
--enable-texture-float
 
Old 07-19-2013, 12:34 AM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by volkerdi View Post
I'm grabbing that now. But if radeonsi requires features that are labeled experimental, it's not time for that yet.
Might be good to have a package with it for /Testing just in case anyone wants to give it a go, or has a card that can be tested with those chipsets, rather than excluding it.

Also, is the latest libdrm 2.4.26 incorporated?

http://dri.freedesktop.org/libdrm/libdrm-2.4.46.tar.bz2
 
Old 07-19-2013, 08:19 AM   #10
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
I'd be happy to test packages to enable radeonsi with a HD7750 card.
 
Old 07-19-2013, 02:37 PM   #11
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Quote:
Originally Posted by volkerdi View Post
That's what the error message told me, too. But then it says that --enable-experimental-targets is an unrecognized option.
I had no problems rebuilding llvm-3.3 with --enable-experimental-targets=R600. And after applying a patch from LFS I rebuilt mesa-9.1.4 including radeonsi.

Details in this post.

To cut to the chase: so far, radeonsi gets loaded, but X crashes with a segfault
 
Old 07-19-2013, 03:36 PM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Maybe X needs to be rebuilt also...
 
Old 07-19-2013, 03:58 PM   #13
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by volkerdi View Post
That's what the error message told me, too. But then it says that --enable-experimental-targets is an unrecognized option.
LLVM-3.3 is (re)compiled here just fine, on the latest current, using the following ./configure arguments.

Code:
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib$LIBDIRSUFFIX \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --enable-optimized \
  --disable-assertions \
  --enable-pic \
  --with-clang-resource-dir="../lib${LIBDIRSUFFIX}/clang/${VERSION}" \
  --enable-experimental-targets=R600 \
  --build=$ARCH-slackware-linux \
  --host=$ARCH-slackware-linux || exit 1
Well, in other words, the latest LLVM(-3.3) have an new (experimental) target, written right by AMD, called R600. That support is used by (the latest) MESA for enabling the bytecode support required to support RadeonSI.
 
Old 07-19-2013, 04:07 PM   #14
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,500

Rep: Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453
Quote:
Originally Posted by Darth Vader View Post
LLVM-3.3 is (re)compiled here just fine, on the latest current, using the following ./configure arguments.
Yeah, I recompiled it correctly here last night after someone pointed out in an email that the option was to be applied to the llvm configure, not the mesa one. D'oh!

I'm still not sure what we'll do about this yet, as I still have some concerns that these changes could make X less stable on these cards. It might be better to wait until these features aren't marked as experimental. There's always the fglrx driver in the meantime.

Thanks for all the hints about this, though.
 
Old 07-19-2013, 04:25 PM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Maybe we need to add a directory named /experimental sometime for stuff like this?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant enable 3d acceleration ghostlkp Linux - Newbie 6 09-03-2005 02:37 PM
SUSE 9.2 ATI Radeon 9600 need to enable 3D acceleration scrondle SUSE / openSUSE 14 04-01-2005 11:22 PM
How do I enable 3d acceleration? JackieBrown SUSE / openSUSE 65 01-05-2005 03:29 PM
I want to Enable my 3D Acceleration... mir_sheely Linux - Hardware 1 06-07-2004 05:32 AM
How do you enable 3d acceleration ultravox Linux - Hardware 2 04-05-2003 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration