st/mesa: use pipe->invalidate_resource instead of buffer re-allocation