Mesa (master): panfrost: Add gem_handle to panfrost_memory and panfrost_bo
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Mar 10 19:14:16 UTC 2019
Module: Mesa
Branch: master
Commit: d4dc79df72e05346b4dd40d19e346ada9e4af98c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4dc79df72e05346b4dd40d19e346ada9e4af98c
Author: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Date: Fri Mar 8 10:27:06 2019 +0100
panfrost: Add gem_handle to panfrost_memory and panfrost_bo
It will be used by the DRM backend to store GEM handles from the kernel.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
---
src/gallium/drivers/panfrost/pan_allocate.h | 1 +
src/gallium/drivers/panfrost/pan_resource.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/src/gallium/drivers/panfrost/pan_allocate.h b/src/gallium/drivers/panfrost/pan_allocate.h
index 2084a339552..5bbb1e4b078 100644
--- a/src/gallium/drivers/panfrost/pan_allocate.h
+++ b/src/gallium/drivers/panfrost/pan_allocate.h
@@ -67,6 +67,7 @@ struct panfrost_memory {
mali_ptr gpu;
int stack_bottom;
size_t size;
+ int gem_handle;
};
/* Slab entry sizes range from 2^min to 2^max. In this case, we range from 1k
diff --git a/src/gallium/drivers/panfrost/pan_resource.h b/src/gallium/drivers/panfrost/pan_resource.h
index b0b5cc15a0c..633f185ab5b 100644
--- a/src/gallium/drivers/panfrost/pan_resource.h
+++ b/src/gallium/drivers/panfrost/pan_resource.h
@@ -69,6 +69,8 @@ struct panfrost_bo {
bool has_checksum;
struct panfrost_memory checksum_slab;
int checksum_stride;
+
+ int gem_handle;
};
struct panfrost_resource {
More information about the mesa-commit
mailing list