change dump API from tdm_helper to tbm_surface_internal