I had the same issue with Ryzen 5 3600x and Radeon 5600xt. For a different mouse flickering issue when using xrandr, I had to set following xrandr after I set correct resolution and panning.
xrandr --output DisplayPort-2 --scale 0.9999x0.9999
DisplayPort-2 is my primary display. With the above setting my mouse flickering went away.
Surprisingly this also fixed the screen flickering issue after wake up from suspend.
I had the same issue with Ryzen 5 3600x and Radeon 5600xt. For a different mouse flickering issue when using xrandr, I had to set following xrandr after I set correct resolution and panning.
xrandr --output DisplayPort-2 --scale 0.9999x0.9999
DisplayPort-2 is my primary display. With the above setting my mouse flickering went away.
Surprisingly this also fixed the screen flickering issue after wake up from suspend.