drm/qxl: track primary bo
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Jan 2019 12:20:09 +0000 (13:20 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Jan 2019 13:24:53 +0000 (14:24 +0100)
commit166205444b90f49382e26cc4ed0f9abc6b6a81f8
tree0583f477e3f318de41681ff45ebe22f9c03cc2e8
parentfb7ebc0119ed0b24e261b06bacca6a4eb766443c
drm/qxl: track primary bo

Track which bo is used as primary surface.  With that in place we don't
need the primary_created flag any more, we can just check the primary bo
pointer instead.

Also verify we don't already have a primary surface in
qxl_io_create_primary().

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190118122020.27596-13-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_cmd.c
drivers/gpu/drm/qxl/qxl_display.c
drivers/gpu/drm/qxl/qxl_drv.h