qxl: allow creation of pre-pinned objects and use for releases.
In order to fix an issue with reservations we need to create the releases as pre-pinned objects, this changes the placement interface and bo creation interface to allow creating pinned objects to save nested reservations later. This is just a stepping stone to main fix which follows to actually fix how qxl deals with reservations. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -55,7 +55,7 @@ int qxl_gem_object_create(struct qxl_device *qdev, int size,
|
||||
/* At least align on page size */
|
||||
if (alignment < PAGE_SIZE)
|
||||
alignment = PAGE_SIZE;
|
||||
r = qxl_bo_create(qdev, size, kernel, initial_domain, surf, &qbo);
|
||||
r = qxl_bo_create(qdev, size, kernel, false, initial_domain, surf, &qbo);
|
||||
if (r) {
|
||||
if (r != -ERESTARTSYS)
|
||||
DRM_ERROR(
|
||||
|
Reference in New Issue
Block a user