[PATCH 4/8] vmwgfx: Add helper function to get surface or dmabuf