drm/nouveau: Test for imported buffers with drm_gem_is_imported()
Subsystems (3)
Thomas Zimmermann
maintainerPATCH 1/1 drm/nouveau: Test for imported buffers with drm_gem_is_imported()
Instead of testing import_attach for imported GEM buffers, invoke drm_gem_is_imported() to do the test. The test itself does not change.
Signed-off-by Thomas Zimmermann <[email protected]>
Cc Lyude Paul <[email protected]>
Cc Danilo Krummrich <[email protected]>
--- drivers/gpu/drm/nouveau/nouveau_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nouveau_bo.c +1 -1
@@ -144,7 +144,7 @@ nouveau_bo_del_ttm(struct ttm_buffer_object *bo)nouveau_bo_del_io_reserve_lru (bo);nv10_bo_put_tile_region (dev, nvbo->tile,NULL ); -if (bo->base.import_attach) +if (drm_gem_is_imported (&bo->base))drm_prime_gem_destroy (&bo->base, bo->sg);/*
Signature · 1 line
2.52.0
Quoted 7 lines · Thomas Zimmermann
Instead of testing
import_attachfor imported GEM buffers, invokedrm_gem_is_imported()to do the test. The test itself does not change.Signed-off-by Thomas Zimmermann <[email protected]>Cc Lyude Paul <[email protected]>Cc Danilo Krummrich <[email protected]>
Applied to drm-misc-next, thanks!