WIP: freedreno: fix problems with mem->gmem