[PATCH v5 2/2] panfrost: Set default labeling helpers
Rohan Garg
rohan.garg at collabora.com
Thu May 14 15:05:33 UTC 2020
Set the default labeling helpers in order to be able
to label the buffers.
Signed-off-by: Rohan Garg <rohan.garg at collabora.com>
---
drivers/gpu/drm/panfrost/panfrost_drv.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c
index 882fecc33fdb..335768236e3b 100644
--- a/drivers/gpu/drm/panfrost/panfrost_drv.c
+++ b/drivers/gpu/drm/panfrost/panfrost_drv.c
@@ -12,6 +12,7 @@
#include <drm/drm_ioctl.h>
#include <drm/drm_syncobj.h>
#include <drm/drm_utils.h>
+#include <drm/drm_gem.h>
#include "panfrost_device.h"
#include "panfrost_devfreq.h"
@@ -567,6 +568,8 @@ static struct drm_driver panfrost_drm_driver = {
.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
.gem_prime_import_sg_table = panfrost_gem_prime_import_sg_table,
.gem_prime_mmap = drm_gem_prime_mmap,
+ .set_label = drm_gem_set_label,
+ .get_label = drm_gem_get_label,
};
static int panfrost_probe(struct platform_device *pdev)
--
2.17.1
More information about the dri-devel
mailing list