Amd gpu driver isnt working

my gpu isnt appearing in any game and the output of glxinfo |grep -i opengl
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 520 (S
OpenGL core profile version string: 4.6 (Core Profile) M
esa 21.2.1
OpenGL core profile shading language version string: 4.6
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.
OpenGL ES profile shading language version string: OpenG
OpenGL ES profile extensions:
and only my igpu is working in my laptop
not my dgpu

And what about when running:

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"

Since is a hybrid intel-AMD, you always have to use DRI_PRIME=1 when want an application to use the dGPU. there are other ways to do that tho, so you don’t always run commands from terminal. For example this AUR package:

1 Like
OpenGL renderer string: AMD HAINAN (DRM 2.50.0, 5.14.2-1-MANJARO, LLVM 12.0.1)

im trying that

but i use kde

So the dGPU is working.

Should work the same on each DE.

i mean the example program

I don’t understand what you mean by this

this one

Once again… I don’t understand what you mean by that…

you said:

And he replied saying:

But then you said:

It doesn’t make sense…

1 Like

sorry but i mean that the program switchroo-control is gnome only but i use kde so doesnt work

Where did you get that from?
switcheroo-control is using D-Bus service to check the availability of dual GPU, is DE (desktop environment) independent …

1 Like

oh sorry

but when i run glmark 2 i get this

glmark2 2021.02

OpenGL Information
GL_VENDOR:     Intel
GL_RENDERER:   Mesa Intel(R) HD Graphics 520 (SKL GT2)
GL_VERSION:    4.6 (Compatibility Profile) Mesa 21.2.1

[build] use-vbo=false:fals FPS: 559 FrameTime: 1.789 ms
[build] use-vbo=true:^C

it doesnt use my amd dgpu

Run this:

DRI_PRIME=1 glmark2

and let us know what comes up.

OpenGL Information
GL_RENDERER: AMD HAINAN (DRM 2.50.0, 5.14.2-1-MANJARO, LLVM 12.0.1)
GL_VERSION: 4.5 (Compatibility Profile) Mesa 21.2

so i have to run dri_prime before every program to get my dgpu working

In principle yes, that is how prime offloading is working, but you can also can edit the desktop files your favorite apps that want them to run with dGPU and have the Exec=DRI_PRIME=1 appended to the default command. See more here: Configure Graphics Cards - Manjaro
In case you want to use reverse prime, you will have to see this AMDGPU - Gentoo Wiki

dumb question but does that apply to vulkan apps