Displaying 3 results from an estimated 3 matches for "resource_get_handle".
2012 Oct 04
1
[PATCH] gallium/nouveau: use pre-calculated stride for resource_get_handle
Fixes FDO#55294.
---
src/gallium/drivers/nv30/nv30_miptree.c | 3 +--
src/gallium/drivers/nv50/nv50_miptree.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/nv30/nv30_miptree.c b/src/gallium/drivers/nv30/nv30_miptree.c
index 5a9a63b..9700fa8 100644
--- a/src/gallium/drivers/nv30/nv30_miptree.c
+++ b/src/gallium/drivers/nv30/nv30_miptree.c
@@ -56,8
2014 Nov 27
0
[Mesa-dev] [RFC] tegra: Initial support
...template);
> + if (!resource->gpu)
> + goto free;
> +
> + memset(&handle, 0, sizeof(handle));
> + handle.type = DRM_API_HANDLE_TYPE_FD;
> +
> + status = screen->gpu->resource_get_handle(screen->gpu,
> + resource->gpu,
> + &handle);
> + if (!status)
> + goto destroy;
> +
> + resource->stride...
2014 Nov 27
7
[RFC] tegra: Initial support
...ndle;
+ boolean status;
+ int fd, err;
+
+ resource->gpu = screen->gpu->resource_create(screen->gpu,
+ template);
+ if (!resource->gpu)
+ goto free;
+
+ memset(&handle, 0, sizeof(handle));
+ handle.type = DRM_API_HANDLE_TYPE_FD;
+
+ status = screen->gpu->resource_get_handle(screen->gpu,
+ resource->gpu,
+ &handle);
+ if (!status)
+ goto destroy;
+
+ resource->stride = handle.stride;
+ fd = handle.handle;
+
+ err = drmPrimeFDToHandle(screen->fd, fd, &resource->handle);
+ if (err < 0) {
+ fprintf(stderr, "drmPrimeF...