projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
610b399
)
drm/amdgpu: correct evict flag for bo move
author
Junwei Zhang
<
[email protected]
>
Thu, 26 Jul 2018 10:00:13 +0000
(18:00 +0800)
committer
Alex Deucher
<
[email protected]
>
Fri, 27 Jul 2018 20:00:29 +0000
(15:00 -0500)
pass the evict flag instead of hard code
Signed-off-by: Junwei Zhang <
[email protected]
>
Reviewed-by: Christian König <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 8c4358e36c871f168cbd81f22b49eb1742013158..c1ae528c7b0ed709086a15197dd90fdfa24d20ee 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@
-580,7
+580,7
@@
static int amdgpu_move_vram_ram(struct ttm_buffer_object *bo, bool evict,
}
/* blit VRAM to GTT */
- r = amdgpu_move_blit(bo,
true
, ctx->no_wait_gpu, &tmp_mem, old_mem);
+ r = amdgpu_move_blit(bo,
evict
, ctx->no_wait_gpu, &tmp_mem, old_mem);
if (unlikely(r)) {
goto out_cleanup;
}
@@
-632,7
+632,7
@@
static int amdgpu_move_ram_vram(struct ttm_buffer_object *bo, bool evict,
}
/* copy to VRAM */
- r = amdgpu_move_blit(bo,
true
, ctx->no_wait_gpu, new_mem, old_mem);
+ r = amdgpu_move_blit(bo,
evict
, ctx->no_wait_gpu, new_mem, old_mem);
if (unlikely(r)) {
goto out_cleanup;
}