diff options
author | Dave Airlie <airlied@redhat.com> | 2013-07-23 00:06:07 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-23 21:58:10 -0400 |
commit | 4f49ec92be64ad1d96cf5d26fc8276f9849202a3 (patch) | |
tree | e295739f2bfaf65a1b88447383d7316c9f3d7af2 /drivers/gpu/drm/qxl/qxl_cmd.c | |
parent | 0665f9f852b4ac05f2f62046a169f0f5b9212317 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_cmd.c')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_cmd.c b/drivers/gpu/drm/qxl/qxl_cmd.c index 93c2f2cceb51..4e6a62716618 100644 --- a/drivers/gpu/drm/qxl/qxl_cmd.c +++ b/drivers/gpu/drm/qxl/qxl_cmd.c | |||
@@ -266,7 +266,7 @@ int qxl_alloc_bo_reserved(struct qxl_device *qdev, unsigned long size, | |||
266 | int ret; | 266 | int ret; |
267 | 267 | ||
268 | ret = qxl_bo_create(qdev, size, false /* not kernel - device */, | 268 | ret = qxl_bo_create(qdev, size, false /* not kernel - device */, |
269 | QXL_GEM_DOMAIN_VRAM, NULL, &bo); | 269 | false, QXL_GEM_DOMAIN_VRAM, NULL, &bo); |
270 | if (ret) { | 270 | if (ret) { |
271 | DRM_ERROR("failed to allocate VRAM BO\n"); | 271 | DRM_ERROR("failed to allocate VRAM BO\n"); |
272 | return ret; | 272 | return ret; |