Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263195
b: refs/heads/master
c: 8d3bb23
h: refs/heads/master
i:
  263193: 9da29bd
  263191: 92f4a99
v: v3
  • Loading branch information
Ben Skeggs authored and Dave Airlie committed Aug 23, 2011
1 parent b7b2112 commit 77777b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eac2095398668f989a3dd8d00be1b87850d78c01
refs/heads/master: 8d3bb23609d4ae22803a15d232289fc09a7b61c4
10 changes: 6 additions & 4 deletions trunk/drivers/gpu/drm/ttm/ttm_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,12 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,
* Create and bind a ttm if required.
*/

if (!(new_man->flags & TTM_MEMTYPE_FLAG_FIXED) && (bo->ttm == NULL)) {
ret = ttm_bo_add_ttm(bo, false);
if (ret)
goto out_err;
if (!(new_man->flags & TTM_MEMTYPE_FLAG_FIXED)) {
if (bo->ttm == NULL) {
ret = ttm_bo_add_ttm(bo, false);
if (ret)
goto out_err;
}

ret = ttm_tt_set_placement_caching(bo->ttm, mem->placement);
if (ret)
Expand Down

0 comments on commit 77777b6

Please sign in to comment.