freedreno/a6xx: Factor out const state setup