Ok, so I ran DRI_PRIME=1 as below:
>DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
Invalid MIT-MAGIC-COOKIE-1 keyOpenGL renderer string: AMD Radeon (TM)
R7 M370 (OLAND, DRM 3.39.0, 5.3.18-59.27-default, LLVM 11.0.1)
But when I check which gpu is active, I still get:
lspci -vnnn | perl -lne 'print if /^\d+\:.+(\\S+\:\S+\])/' | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:191b] (rev 06) (prog-if 00 [VGA controller])
In CoreCtrl, I can still see the Radeon GPU. Before, it was saying it was running at 300 MHz, but now it is running at 750 MHz. However, it constantly shows Power: 0W and Activity 0%.
And when I run glmark2, it begins by saying it is using the integrated graphics.
>glmark2
Invalid MIT-MAGIC-COOKIE-1 key=======================================================
glmark2 2021.02
=======================================================
OpenGL Information
GL_VENDOR: Intel Open Source Technology Center
GL_RENDERER: Mesa DRI Intel(R) HD Graphics 530 (SKL GT2)
GL_VERSION: 3.0 Mesa 20.2.4
=======================================================
[build] use-vbo=false: FPS: 3552 FrameTime: 0.282 ms
[build] use-vbo=true: FPS: 3661 FrameTime: 0.273 ms
[texture] texture-filter=nearest: FPS: 3448 FrameTime: 0.290 ms
[texture] texture-filter=linear: FPS: 3393 FrameTime: 0.295 ms
[texture] texture-filter=mipmap: FPS: 3371 FrameTime: 0.297 ms
[shading] shading=gouraud: FPS: 3051 FrameTime: 0.328 ms
[shading] shading=blinn-phong-inf: FPS: 2826 FrameTime: 0.354 ms
[shading] shading=phong: FPS: 2677 FrameTime: 0.374 ms
[shading] shading=cel: FPS: 2757 FrameTime: 0.363 ms
[bump] bump-render=high-poly: FPS: 1986 FrameTime: 0.504 ms
[bump] bump-render=normals: FPS: 3693 FrameTime: 0.271 ms
[bump] bump-render=height: FPS: 3567 FrameTime: 0.280 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 2011 FrameTime: 0.497 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 1080 FrameTime: 0.926 ms
[pulsar] light=false:quads=5:texture=false: FPS: 3119 FrameTime: 0.321 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 1091 FrameTime: 0.917 ms
[desktop] effect=shadow:windows=4: FPS: 1962 FrameTime: 0.510 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 872 FrameTime: 1.147 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 733 FrameTime: 1.364 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 986 FrameTime: 1.014 ms
[ideas] speed=duration: FPS: 2383 FrameTime: 0.420 ms
[jellyfish] <default>: FPS: 2037 FrameTime: 0.491 ms
[terrain] <default>: FPS: 245 FrameTime: 4.082 ms
[shadow] <default>: FPS: 2151 FrameTime: 0.465 ms
[refract] <default>: FPS: 495 FrameTime: 2.020 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 2817 FrameTime: 0.355 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 2866 FrameTime: 0.349 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 2818 FrameTime: 0.355 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 2824 FrameTime: 0.354 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 2893 FrameTime: 0.346 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 2828 FrameTime: 0.354 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 2813 FrameTime: 0.355 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 2864 FrameTime: 0.349 ms
=======================================================
glmark2 Score: 2420
=======================================================