freedreno: Fix graphic glitches on a4xx and a5xx
I have noticed the same issue as on #6785 (closed) with a a506 GPU. I already tested the patch and seems to work fine.
Still waiting for someone to test it on a4xx but should be the same.
Closes: #6785 (closed)