Commit b2b4465d authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie

drm/qxl: drop active_user_framebuffer as its unneeded

This was a bogus way to figure out what the active framebuffer was,
just check if the underlying bo is the primary bo.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent d7292a07
...@@ -428,10 +428,10 @@ static int qxl_framebuffer_surface_dirty(struct drm_framebuffer *fb, ...@@ -428,10 +428,10 @@ static int qxl_framebuffer_surface_dirty(struct drm_framebuffer *fb,
int inc = 1; int inc = 1;
qobj = gem_to_qxl_bo(qxl_fb->obj); qobj = gem_to_qxl_bo(qxl_fb->obj);
if (qxl_fb != qdev->active_user_framebuffer) { /* if we aren't primary surface ignore this */
DRM_INFO("%s: qxl_fb 0x%p != qdev->active_user_framebuffer 0x%p\n", if (!qobj->is_primary)
__func__, qxl_fb, qdev->active_user_framebuffer); return 0;
}
if (!num_clips) { if (!num_clips) {
num_clips = 1; num_clips = 1;
clips = &norect; clips = &norect;
...@@ -892,7 +892,6 @@ qxl_user_framebuffer_create(struct drm_device *dev, ...@@ -892,7 +892,6 @@ qxl_user_framebuffer_create(struct drm_device *dev,
{ {
struct drm_gem_object *obj; struct drm_gem_object *obj;
struct qxl_framebuffer *qxl_fb; struct qxl_framebuffer *qxl_fb;
struct qxl_device *qdev = dev->dev_private;
int ret; int ret;
obj = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]); obj = drm_gem_object_lookup(dev, file_priv, mode_cmd->handles[0]);
...@@ -908,13 +907,6 @@ qxl_user_framebuffer_create(struct drm_device *dev, ...@@ -908,13 +907,6 @@ qxl_user_framebuffer_create(struct drm_device *dev,
return NULL; return NULL;
} }
if (qdev->active_user_framebuffer) {
DRM_INFO("%s: active_user_framebuffer %p -> %p\n",
__func__,
qdev->active_user_framebuffer, qxl_fb);
}
qdev->active_user_framebuffer = qxl_fb;
return &qxl_fb->base; return &qxl_fb->base;
} }
......
...@@ -255,12 +255,6 @@ struct qxl_device { ...@@ -255,12 +255,6 @@ struct qxl_device {
struct qxl_gem gem; struct qxl_gem gem;
struct qxl_mode_info mode_info; struct qxl_mode_info mode_info;
/*
* last created framebuffer with fb_create
* only used by debugfs dumbppm
*/
struct qxl_framebuffer *active_user_framebuffer;
struct fb_info *fbdev_info; struct fb_info *fbdev_info;
struct qxl_framebuffer *fbdev_qfb; struct qxl_framebuffer *fbdev_qfb;
void *ram_physical; void *ram_physical;
......
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