qxl: keep separate release_bo pointer
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 18 Apr 2018 05:42:57 +0000 (07:42 +0200)
committerSean Paul <seanpaul@chromium.org>
Wed, 25 Apr 2018 19:03:12 +0000 (15:03 -0400)
commit7a31805ba28c93f80cf874492e2f21da80851a9f
tree54710f530012a26ae1ba6c78a12107576d028ba2
parent66c0255cf58718517e4cdff3612b92b82c2bf71b
qxl: keep separate release_bo pointer

qxl expects that list_first_entry(release->bos) returns the first
element qxl added to the list.  ttm_eu_reserve_buffers() may reorder
the list though.

Add a release_bo field to struct qxl_release and use that instead.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20180418054257.15388-3-kraxel@redhat.com
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/qxl/qxl_cmd.c
drivers/gpu/drm/qxl/qxl_drv.h
drivers/gpu/drm/qxl/qxl_release.c