Re: [PATCH v2 02/17] drm: Add |struct drm_gem_vram_object| callbacks for |struct ttm_bo_driver|

2019-04-24 Thread Koenig, Christian
Am 24.04.19 um 14:05 schrieb Thomas Zimmermann: > Hi Christian, > > Am 24.04.19 um 13:48 schrieb Thomas Zimmermann: >> + >> +/* >> + * Helpers for struct ttm_bo_driver >> + */ >> + >> +static bool drm_is_gem_vram(struct ttm_buffer_object *bo) >> +{ >> +return (bo->destroy ==

Re: [PATCH v2 02/17] drm: Add |struct drm_gem_vram_object| callbacks for |struct ttm_bo_driver|

2019-04-24 Thread Thomas Zimmermann
Hi Christian, Am 24.04.19 um 13:48 schrieb Thomas Zimmermann: > + > +/* > + * Helpers for struct ttm_bo_driver > + */ > + > +static bool drm_is_gem_vram(struct ttm_buffer_object *bo) > +{ > + return (bo->destroy == ttm_buffer_object_destroy); > +} > + > +/** > + *

[PATCH v2 02/17] drm: Add |struct drm_gem_vram_object| callbacks for |struct ttm_bo_driver|

2019-04-24 Thread Thomas Zimmermann
The provided helpers can be used for the respective callback functions in |struct ttm_bo_driver|. v2: * drm_is_gem_vram() is now a private function * documentation fixes Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_gem_vram_helper.c | 50 +++