freedreno/kgsl: fix pointer-to-int cast