drm/qxl: use separate offset spaces for the two slots / ttm memory types.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Jan 2019 12:20:03 +0000 (13:20 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Jan 2019 13:24:52 +0000 (14:24 +0100)
commit96e8f153964aa0cc0ebb21576974a723f2b03cd5
tree99c96aca85a3bd187f3a77a0bd16ccbc67386526
parent3ebe3ddf37c84acfb1dfbe471482cb4bbdb0f7c0
drm/qxl: use separate offset spaces for the two slots / ttm memory types.

Without that ttm offsets are not unique, they can refer to objects
in both VRAM and PRIV memory (aka main and surfaces slot).

One of those "why things didn't blow up without this" moments.
Probably offset conflicts are rare enough by pure luck.

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-7-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_drv.h
drivers/gpu/drm/qxl/qxl_kms.c
drivers/gpu/drm/qxl/qxl_ttm.c