]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
drm/radeon/kms: actualy set the eviction placements we choose
authorJerome Glisse <jglisse@redhat.com>
Wed, 9 Dec 2009 20:57:37 +0000 (21:57 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Dec 2009 05:09:06 +0000 (15:09 +1000)
Stupid bug, somehow copying the eviction placements into the
result structure was missing.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/radeon/radeon_ttm.c

index 4ca7dfc44310219fbb77577f98086e8203c24c1b..d2ed896cca0127ad8386c3334cd4abd2c0ff5658 100644 (file)
@@ -209,6 +209,7 @@ static void radeon_evict_flags(struct ttm_buffer_object *bo,
        default:
                radeon_ttm_placement_from_domain(rbo, RADEON_GEM_DOMAIN_CPU);
        }
+       *placement = rbo->placement;
 }
 
 static int radeon_verify_access(struct ttm_buffer_object *bo, struct file *filp)