swr/rast: Change gfx pointers to gfxptr_t