LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-13-2016, 12:30 PM   #1
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Rep: Reputation: 11
Gallium Direct3d9 and wine


As I understand it mesa now includes a native implementation of direct3d9. So does wine take advantage of this by default, or do we still need the wine-staging patches? How can I tell if direct3d is enabled/in use?
 
Old 01-13-2016, 12:34 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
EDIT: Sorry, replied before realizing that you were asking about Gallium. I don't know the answer to that.

If you're just asking about Direct3D support, it's a standard part of Wine 1.8.

Last edited by dugan; 01-13-2016 at 12:39 PM.
 
Old 01-13-2016, 02:10 PM   #3
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
Neither staging nor default wine support native DirectX9.

You need wine-nine for that.

I have a SlackBuild here which combines wine 1.7.53, wine-staging and wine-nine:

http://schmatzler.de/my_slackbuilds/wine-staging-nine/

It may work with newer versions, too. But since I switched to an Intel GPU I can't test it anymore.

It only works with AMD and NVidia cards (Intel with the ilo driver, but it's still very buggy). If you run an application from the terminal, it will tell you if it's activated or not.
 
1 members found this post helpful.
Old 01-13-2016, 05:51 PM   #4
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
OK then, I thought wine-nine was part of staging. Your slackbuild works great with 1.9.1. Thanks a bunch for that!
 
Old 01-13-2016, 06:04 PM   #5
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
Rebuild Mesa with the ilo driver and it will support Intel chipsets.
 
Old 01-14-2016, 01:58 AM   #6
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
Quote:
Originally Posted by ReaperX7 View Post
Rebuild Mesa with the ilo driver and it will support Intel chipsets.
True, but the performance isn't really good.
 
Old 01-14-2016, 03:06 AM   #7
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
Yes, but ilo is the only Gallium based driver for Intel and nine requires Gallium.

It's a poor trade, but until it gets up to speed, ilo is the only option.
 
Old 01-15-2016, 10:52 AM   #8
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
Did you build this yourself? I have problems getting nine to work.

I've rebuilt mesa with
Code:
GALLIUM_DRIVERS="ilo"
for 32bit and 64bit.

I also created /etc/X11/xorg.conf.d/20-intel.conf with this content:
Code:
Section "Device"
 Identifier "Device0"
 Driver "Intel"
 Option      "DRI"    "ilo"
EndSection
LIBGL_DEBUG=verbose glxinfo | grep DRI shows that DRI3 is activated, yet I still can't get it running in wine:

Code:
err:d3dadapter:dri3_create_adapter9 Unable to create ID3DAdapter9 (fd=159)
err:d3d9:d3dadapter9_new No available native adapters in system.
What am I missing?
 
Old 01-15-2016, 07:34 PM   #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 schmatzler View Post
Did you build this yourself? I have problems getting nine to work.

I've rebuilt mesa with
Code:
GALLIUM_DRIVERS="ilo"
for 32bit and 64bit.

I also created /etc/X11/xorg.conf.d/20-intel.conf with this content:
Code:
Section "Device"
 Identifier "Device0"
 Driver "Intel"
 Option      "DRI"    "ilo"
EndSection
LIBGL_DEBUG=verbose glxinfo | grep DRI shows that DRI3 is activated, yet I still can't get it running in wine:

Code:
err:d3dadapter:dri3_create_adapter9 Unable to create ID3DAdapter9 (fd=159)
err:d3d9:d3dadapter9_new No available native adapters in system.
What am I missing?
Shouldn't

Code:
 Driver "Intel"
actually be

Code:
 Driver "intel"
?

Often you might be able to get away with the xorg.conf.d files but when you're trying to find out why something is or isn't working a full xorg.conf might be useful.

Run xorgsetup and it should autogenerate a full xorg.conf in /etc/X11 that can be edited as needed with a full setup to tinker with for debugging.

Also have you rebuilt wine with the wine-nine add-on?

Last edited by ReaperX7; 01-15-2016 at 07:38 PM.
 
  


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
Can anisotropic filtering be forced on the radeon (gallium) driver? xyzone Linux - Software 2 09-01-2015 03:10 PM
LXer: An Interview With Gallium Nine Project Developer Axel Davy LXer Syndicated Linux News 0 02-18-2015 11:23 PM
direct3d9 is not available without opengl Crowey17 Linux - Games 13 10-05-2012 10:40 PM
Gallium nankura Linux - Newbie 1 04-30-2011 03:16 AM

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

All times are GMT -5. The time now is 03:43 AM.

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