You don't need a pipe_context * for this, and all other necessary info is already inside pipe_surface.