drm/amdgpu: fix amdgpu_cs_get_threshold_for_moves handling

The threshold should only be computed once.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Christian König
2015-12-21 19:47:42 +01:00
committed by Alex Deucher
parent 9e51021cfd
commit f69f90a113
2 changed files with 14 additions and 9 deletions

View File

@@ -1261,6 +1261,8 @@ struct amdgpu_cs_parser {
struct amdgpu_bo_list_entry vm_pd;
struct list_head validated;
struct fence *fence;
uint64_t bytes_moved_threshold;
uint64_t bytes_moved;
struct amdgpu_ib *ibs;
uint32_t num_ibs;