Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
3D Not Working Properly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Balthasar127
n00b
n00b


Joined: 26 Apr 2018
Posts: 6

PostPosted: Fri Aug 31, 2018 4:05 pm    Post subject: 3D Not Working Properly Reply with quote

I have a Dell XPS 9550 with both the Intel Graphics and nVidia graphics. In X im not getting any 3d at all. it is using the basic software renderer

Code:

mjmanley@nte-laptop-1 /usr/src/linux-4.14.65-gentoo $ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: VMware, Inc. (0xffffffff)
    Device: llvmpipe (LLVM 6.0, 256 bits) (0xffffffff)
    Version: 18.1.6
    Accelerated: no
    Video memory: 15887MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 6.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.1.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 18.1.6
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.1.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00



make.conf
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://lug.mtu.edu/gentoo/ http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ rsync://mirrors.rit.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.cs.uni.edu/ rsync://gentoo.cs.uni.edu/gentoo-distfiles http://gentoo.cs.utah.edu/"
USE="-gtk -gnome qt4 qt5 kde alsa X text cups dbus consolekit policykit icu nss pulseaudio networkmanager"
VIDEO_CARDS="intel i965 nouveau"


What could be the issue, i have both intel and nouveau in the kernel as im also trying to setup DRI_PRIME.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6618
Location: Saint Amant, Acadiana

PostPosted: Fri Aug 31, 2018 9:10 pm    Post subject: Reply with quote

Some of us may not have this laptop, so it would make sense for you to tell us whether it has hybrid graphics or not.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Balthasar127
n00b
n00b


Joined: 26 Apr 2018
Posts: 6

PostPosted: Fri Aug 31, 2018 9:21 pm    Post subject: Reply with quote

Jaglover wrote:
Some of us may not have this laptop, so it would make sense for you to tell us whether it has hybrid graphics or not.


I Mentioned it has hybrid graphics, it has intel AND nvidia

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)

both nouveau and intel is compiled in kernel
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6618
Location: Saint Amant, Acadiana

PostPosted: Fri Aug 31, 2018 9:28 pm    Post subject: Reply with quote

Having two graphics cards does not mean it has hybrid graphics. Some laptops have discrete graphics, meaning both cards can be used separately.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Balthasar127
n00b
n00b


Joined: 26 Apr 2018
Posts: 6

PostPosted: Fri Aug 31, 2018 10:11 pm    Post subject: Reply with quote

Jaglover wrote:
Having two graphics cards does not mean it has hybrid graphics. Some laptops have discrete graphics, meaning both cards can be used separately.


It is the newer Dynamic type, honestly, its just the mesa drivers are not using the hardware renderer, and I'm sure the drivers are loading, even xrandr shows that

Code:

mjmanley@nte-laptop-1 /usr/src/linux-4.14.65-gentoo $ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x89 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 6 associated providers: 0 name:Intel
Provider 1: id: 0x5f cap: 0x5, Source Output, Source Offload crtcs: 0 outputs: 0 associated providers: 0 name:nouveau


Intel is the primary always (as shown by no outputs on nvidia card), and I'm trying to get DRI_PRIME to work so if I want to use the nvidia card I just do <DRI_PRIME=1 command> like I did in Arch
Back to top
View user's profile Send private message
Balthasar127
n00b
n00b


Joined: 26 Apr 2018
Posts: 6

PostPosted: Fri Aug 31, 2018 10:21 pm    Post subject: Reply with quote

Holy crap, answered my own question again..

So i needed to create a 20-modesetting.conf file in the Xorg.conf.d folder with the following

Code:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "modesetting"
   Option      "AccelMethod"    "glamor"
   Option      "DRI"            "3"
EndSection


And now PRIME and MESA working perfect
Code:

mjmanley@nte-laptop-1 ~/Global Documents/OpenVPN/config/NasuTek NISN Network $ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
   Vendor: Intel Open Source Technology Center (0x8086)
   Device: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2)  (0x191b)
   Version: 18.1.6
   Accelerated: yes
   Video memory: 3072MB
   Unified memory: yes
   Preferred profile: core (0x1)
   Max core profile version: 4.5
   Max compat profile version: 3.0
   Max GLES1 profile version: 1.1
   Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.1.6
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 18.1.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 18.1.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

mjmanley@nte-laptop-1 ~/Global Documents/OpenVPN/config/NasuTek NISN Network $ DRI_PRIME=1 glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
   Vendor: nouveau (0x10de)
   Device: NV117 (0x139b)
   Version: 18.1.6
   Accelerated: yes
   Video memory: 2047MB
   Unified memory: no
   Preferred profile: core (0x1)
   Max core profile version: 4.3
   Max compat profile version: 3.1
   Max GLES1 profile version: 1.1
   Max GLES[23] profile version: 3.1
OpenGL vendor string: nouveau
OpenGL renderer string: NV117
OpenGL core profile version string: 4.3 (Core Profile) Mesa 18.1.6
OpenGL core profile shading language version string: 4.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 18.1.6
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.1.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum