When using DRI_PRIME=1 pc freezes

when trying to run programs with dedicated gpu with DRI_PRIME=1 prefix whole system freezes. have to force shutdown.
any solution?

DRI_PRIME=1 glxinfo | grep “OpenGL renderer”
OpenGL renderer string: AMD HAINAN (DRM 2.50.0, 5.8.6-1-MANJARO, LLVM 10.0.1)

lshw -c video
description: Display controller
product: Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:01:00.0
version: 83
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi bus_master cap_list rom
configuration: driver=radeon latency=0
resources: irq:136 memory:c0000000-cfffffff memory:d0000000-d003ffff ioport:e000(size=256) memory:d0040000-d005ffff

inxi -Fazy