We currently try to identify whether a GPU is dedicated or integrated by looking at the class identifier, which is not a reliable indicator of whether or not the GPU is integrated or not. We should use a more reliable method of identifying the class of device, such as the way switcheroo does it:
https://gitlab.freedesktop.org/hadess/switcheroo-control/-/blob/master/src/discrete-detection/amdgpu.c?ref_type=heads