Commit 4adf0436 authored by Dave Airlie's avatar Dave Airlie

Merge branch 'drm-fixes-4.11' of git://people.freedesktop.org/~agd5f/linux into drm-fixes

 One small fix for radeon.

* 'drm-fixes-4.11' of git://people.freedesktop.org/~agd5f/linux:
  drm/radeon: Override fpfn for all VRAM placements in radeon_evict_flags
parents 7502add2 ce4b4f22
...@@ -213,8 +213,8 @@ static void radeon_evict_flags(struct ttm_buffer_object *bo, ...@@ -213,8 +213,8 @@ static void radeon_evict_flags(struct ttm_buffer_object *bo,
rbo->placement.num_busy_placement = 0; rbo->placement.num_busy_placement = 0;
for (i = 0; i < rbo->placement.num_placement; i++) { for (i = 0; i < rbo->placement.num_placement; i++) {
if (rbo->placements[i].flags & TTM_PL_FLAG_VRAM) { if (rbo->placements[i].flags & TTM_PL_FLAG_VRAM) {
if (rbo->placements[0].fpfn < fpfn) if (rbo->placements[i].fpfn < fpfn)
rbo->placements[0].fpfn = fpfn; rbo->placements[i].fpfn = fpfn;
} else { } else {
rbo->placement.busy_placement = rbo->placement.busy_placement =
&rbo->placements[i]; &rbo->placements[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment