Amd gpu driver isnt working

well there is an output but there is no entry for my dgpu
it only shows my igpu

And here we go again. You did not payed attention at all it seems
DRI_PRIME=1 vulkaninfo
or
DRI_PRIME=1 vulkaninfo | head

It will be always same deal if from terminal you want to use the dGPU …

well thats the first thing i tried but it didnt work

Your initial issue was solved, your dGPU driver is working when using DRI_PRIME=1. For vulkan see this https://askubuntu.com/questions/1350416/how-do-i-configure-vulkan-to-use-my-amd-graphics-card-instead-of-intel
and if is not helping, then open up a new help request to deal with it.
I’ll close this one now.