]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04c7b35b525e915494e9bff63c0a50ef82beaf94
tree0583f477e3f318de41681ff45ebe22f9c03cc2e8
parentb4378ad309288f900d6e880ff3efed3fc5207072
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