mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
drm/vmwgfx: use ttm_bo_is_reserved
Signed-off-by: Maarten Lankhorst <[email protected]> Reviewed-by: Thomas Hellstrom <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
0a46fb5f41
commit
94baf0e271
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue