drm/radeon: remove discardable flag from radeon_gem_object_create
authorChristian König <christian.koenig@amd.com>
Mon, 21 Jul 2014 11:27:27 +0000 (13:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Aug 2014 12:53:37 +0000 (08:53 -0400)
Unused and unimplemented. Also fix specifying the
kernel flag incorrectly at one occasion.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_fb.c
drivers/gpu/drm/radeon/radeon_gem.c

index 8d0ce11ef47b0c6725950ecded3f902a53423f84..89b63b9cff5eda7c448487321515ffebe435f94b 100644 (file)
@@ -549,7 +549,7 @@ int radeon_gem_init(struct radeon_device *rdev);
 void radeon_gem_fini(struct radeon_device *rdev);
 int radeon_gem_object_create(struct radeon_device *rdev, unsigned long size,
                                int alignment, int initial_domain,
-                               u32 flags, bool discardable, bool kernel,
+                               u32 flags, bool kernel,
                                struct drm_gem_object **obj);
 
 int radeon_mode_dumb_create(struct drm_file *file_priv,
index 477ea0df0daabb31e12fbac06ab3a3f01a9b26f3..94b0f2aa3d7c870b41bdf28be5d7bca5fecf4ff2 100644 (file)
@@ -127,8 +127,7 @@ static int radeonfb_create_pinned_object(struct radeon_fbdev *rfbdev,
        aligned_size = ALIGN(size, PAGE_SIZE);
        ret = radeon_gem_object_create(rdev, aligned_size, 0,
                                       RADEON_GEM_DOMAIN_VRAM,
-                                      0, false, true,
-                                      &gobj);
+                                      0, true, &gobj);
        if (ret) {
                printk(KERN_ERR "failed to allocate framebuffer (%d)\n",
                       aligned_size);
index a2ae91a4862ee1a16c196d5a233331a8904b56ed..d1239be0c61173862953e803afa9fa60943faead 100644 (file)
@@ -42,7 +42,7 @@ void radeon_gem_object_free(struct drm_gem_object *gobj)
 
 int radeon_gem_object_create(struct radeon_device *rdev, unsigned long size,
                                int alignment, int initial_domain,
-                               u32 flags, bool discardable, bool kernel,
+                               u32 flags, bool kernel,
                                struct drm_gem_object **obj)
 {
        struct radeon_bo *robj;
@@ -253,7 +253,7 @@ int radeon_gem_create_ioctl(struct drm_device *dev, void *data,
        args->size = roundup(args->size, PAGE_SIZE);
        r = radeon_gem_object_create(rdev, args->size, args->alignment,
                                     args->initial_domain, args->flags,
-                                    false, false, &gobj);
+                                    false, &gobj);
        if (r) {
                up_read(&rdev->exclusive_lock);
                r = radeon_gem_handle_lockup(rdev, r);
@@ -568,8 +568,7 @@ int radeon_mode_dumb_create(struct drm_file *file_priv,
 
        r = radeon_gem_object_create(rdev, args->size, 0,
                                     RADEON_GEM_DOMAIN_VRAM, 0,
-                                    false, ttm_bo_type_device,
-                                    &gobj);
+                                    false, &gobj);
        if (r)
                return -ENOMEM;