search for: qxl_gem_object_create_with_handle

Displaying 4 results from an estimated 4 matches for "qxl_gem_object_create_with_handle".

2018 Dec 06
0
[PATCH 3/3] drm/qxl: use QXL_GEM_DOMAIN_SURFACE for dumb gem objects
...a/drivers/gpu/drm/qxl/qxl_dumb.c b/drivers/gpu/drm/qxl/qxl_dumb.c index e3765739c3..272d19b677 100644 --- a/drivers/gpu/drm/qxl/qxl_dumb.c +++ b/drivers/gpu/drm/qxl/qxl_dumb.c @@ -59,7 +59,7 @@ int qxl_mode_dumb_create(struct drm_file *file_priv, surf.stride = pitch; surf.format = format; r = qxl_gem_object_create_with_handle(qdev, file_priv, - QXL_GEM_DOMAIN_VRAM, + QXL_GEM_DOMAIN_SURFACE, args->size, &surf, &qobj, &handle); if (r) -- 2.9.3
2018 Dec 12
0
[PATCH v2 09/18] drm/qxl: use QXL_GEM_DOMAIN_SURFACE for dumb gem objects
...a/drivers/gpu/drm/qxl/qxl_dumb.c b/drivers/gpu/drm/qxl/qxl_dumb.c index e3765739c3..272d19b677 100644 --- a/drivers/gpu/drm/qxl/qxl_dumb.c +++ b/drivers/gpu/drm/qxl/qxl_dumb.c @@ -59,7 +59,7 @@ int qxl_mode_dumb_create(struct drm_file *file_priv, surf.stride = pitch; surf.format = format; r = qxl_gem_object_create_with_handle(qdev, file_priv, - QXL_GEM_DOMAIN_VRAM, + QXL_GEM_DOMAIN_SURFACE, args->size, &surf, &qobj, &handle); if (r) -- 2.9.3
2019 Dec 06
0
[PATCH] drm/qxl: remove unnecessary BUG_ON check for handle
On Thu, Dec 05, 2019 at 05:42:31PM -0600, Aditya Pakki wrote: > In qxl_gem_object_create_with_handle(), handle's memory is not > allocated on the heap. Checking for failure of handle via BUG_ON > is unnecessary. This patch eliminates the check. The check makes sure the caller doesn't pass in handle == NULL and it is needed. cheers, Gerd
2018 Mar 21
0
[Outreachy kernel] [PATCH] drm/qxl: Replace drm_gem_object_reference/unreference() with _get/put()
...> + drm_gem_object_put_unlocked(gobj); > return ret; > } > > diff --git a/drivers/gpu/drm/qxl/qxl_gem.c b/drivers/gpu/drm/qxl/qxl_gem.c > index 85f5467..f5c1e78 100644 > --- a/drivers/gpu/drm/qxl/qxl_gem.c > +++ b/drivers/gpu/drm/qxl/qxl_gem.c > @@ -98,7 +98,7 @@ int qxl_gem_object_create_with_handle(struct qxl_device *qdev, > return r; > /* drop reference from allocate - handle holds it now */ > *qobj = gem_to_qxl_bo(gobj); > - drm_gem_object_unreference_unlocked(gobj); > + drm_gem_object_put_unlocked(gobj); > return 0; > } > > diff --git a/drivers/gpu/dr...