drm/vmwgfx: use ttm_bo_is_reserved
Subsystems (3)
PATCH 3/3 drm/vmwgfx: use ttm_bo_is_reserved
Signed-off-by Maarten Lankhorst <[email protected]>
--- drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c +1 -1
@@ -304,7 +304,7 @@ void vmw_bo_pin(struct ttm_buffer_object *bo, bool pin)uint32_t old_mem_type = bo->mem.mem_type;int ret; -BUG_ON (!atomic_read (&bo->reserved)); +BUG_ON (!ttm_bo_is_reserved (bo));BUG_ON (old_mem_type !=TTM_PL_VRAM && old_mem_type !=VMW_PL_FLAG_GMR );
Quoted 19 lines · Maarten Lankhorst
Signed-off-by Maarten Lankhorst <[email protected]>--- drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c +1
-1@@ -304,7 +304,7 @@ void vmw_bo_pin(struct ttm_buffer_object *bo, bool pin)uint32_t old_mem_type = bo->mem.mem_type;int ret; -BUG_ON (!atomic_read (&bo->reserved)); +BUG_ON (!ttm_bo_is_reserved (bo));BUG_ON (old_mem_type !=TTM_PL_VRAM && old_mem_type !=VMW_PL_FLAG_GMR );
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by Thomas Hellstrom <[email protected]>