diff options
| author | Mark Hatle <mark.hatle@xilinx.com> | 2021-02-23 14:58:28 -0800 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-07-14 14:38:18 -0700 |
| commit | 99905a7249bfe6d19afd6234565fa5088bafa68a (patch) | |
| tree | c3549b9294fb4f7c5aa63be4083cff8e82a7c1c0 /meta-xilinx-bsp/recipes-graphics | |
| parent | 285d8eac120041c494b40783176e7eb3d5cf2f2f (diff) | |
| download | meta-xilinx-99905a7249bfe6d19afd6234565fa5088bafa68a.tar.gz | |
Avoid warnings from bbappends to meta-openembedded
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/recipes-graphics')
3 files changed, 0 insertions, 179 deletions
diff --git a/meta-xilinx-bsp/recipes-graphics/xorg-driver/xf86-video-armsoc/0001-armsoc_driver.c-Bypass-the-exa-layer-to-free-the-roo.patch b/meta-xilinx-bsp/recipes-graphics/xorg-driver/xf86-video-armsoc/0001-armsoc_driver.c-Bypass-the-exa-layer-to-free-the-roo.patch deleted file mode 100644 index 2e024794..00000000 --- a/meta-xilinx-bsp/recipes-graphics/xorg-driver/xf86-video-armsoc/0001-armsoc_driver.c-Bypass-the-exa-layer-to-free-the-roo.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From 497de8b16265468cacad880f4a371756924ae0c1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> | ||
| 3 | Date: Tue, 14 Apr 2020 15:25:13 -0700 | ||
| 4 | Subject: [xf86-video-armsoc][PATCH v2] armsoc_driver.c: Bypass the exa layer | ||
| 5 | to free the root pixmap | ||
| 6 | |||
| 7 | Since the root pixmap was allocated through miCreateScreenResources, | ||
| 8 | the exa layer is not aware of the pixmap resulting in the assertion | ||
| 9 | to fail. Instead, we can directly invoke fbDestroyPixmap, thereby | ||
| 10 | freeing the pixmap and avoiding a memory leak. | ||
| 11 | |||
| 12 | Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> | ||
| 13 | --- | ||
| 14 | src/armsoc_driver.c | 3 ++- | ||
| 15 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/src/armsoc_driver.c b/src/armsoc_driver.c | ||
| 18 | index 3ace3c7..a4a1ba3 100644 | ||
| 19 | --- a/src/armsoc_driver.c | ||
| 20 | +++ b/src/armsoc_driver.c | ||
| 21 | @@ -1259,7 +1259,8 @@ ARMSOCCloseScreen(CLOSE_SCREEN_ARGS_DECL) | ||
| 22 | * we do it here, before calling the CloseScreen chain which would just free pScreen->devPrivate in fbCloseScreen() | ||
| 23 | */ | ||
| 24 | if (pScreen->devPrivate) { | ||
| 25 | - (void) (*pScreen->DestroyPixmap)(pScreen->devPrivate); | ||
| 26 | + fbDestroyPixmap (pScreen->devPrivate); | ||
| 27 | + armsoc_bo_unreference(pARMSOC->scanout); | ||
| 28 | pScreen->devPrivate = NULL; | ||
| 29 | } | ||
| 30 | |||
| 31 | -- | ||
| 32 | 2.7.4 | ||
| 33 | |||
diff --git a/meta-xilinx-bsp/recipes-graphics/xorg-driver/xf86-video-armsoc/0001-src-drmmode_xilinx-Add-the-dumb-gem-support-for-Xili.patch b/meta-xilinx-bsp/recipes-graphics/xorg-driver/xf86-video-armsoc/0001-src-drmmode_xilinx-Add-the-dumb-gem-support-for-Xili.patch deleted file mode 100644 index bf2169ee..00000000 --- a/meta-xilinx-bsp/recipes-graphics/xorg-driver/xf86-video-armsoc/0001-src-drmmode_xilinx-Add-the-dumb-gem-support-for-Xili.patch +++ /dev/null | |||
| @@ -1,141 +0,0 @@ | |||
| 1 | From 630a8ea035fe2f075f6ea7f4bad0928f5b541c80 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hyun Kwon <hyun.kwon@xilinx.com> | ||
| 3 | Date: Wed, 21 Jan 2015 11:53:19 -0800 | ||
| 4 | Subject: [PATCH] src: drmmode_xilinx: Add the dumb gem support for Xilinx | ||
| 5 | |||
| 6 | Add the dumb gem support for Xilinx | ||
| 7 | |||
| 8 | Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com> | ||
| 9 | Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> | ||
| 10 | Upstream-Status: Pending | ||
| 11 | --- | ||
| 12 | src/Makefile.am | 3 +- | ||
| 13 | src/armsoc_driver.c | 1 + | ||
| 14 | src/drmmode_driver.h | 1 + | ||
| 15 | src/drmmode_xilinx/drmmode_xilinx.c | 76 +++++++++++++++++++++++++++++++++++++ | ||
| 16 | 4 files changed, 80 insertions(+), 1 deletion(-) | ||
| 17 | create mode 100644 src/drmmode_xilinx/drmmode_xilinx.c | ||
| 18 | |||
| 19 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
| 20 | index 3b2601927c..db5f110fb2 100644 | ||
| 21 | --- a/src/Makefile.am | ||
| 22 | +++ b/src/Makefile.am | ||
| 23 | @@ -43,7 +43,8 @@ armsoc_drv_ladir = @moduledir@/drivers | ||
| 24 | DRMMODE_SRCS = drmmode_exynos/drmmode_exynos.c \ | ||
| 25 | drmmode_pl111/drmmode_pl111.c \ | ||
| 26 | drmmode_kirin/drmmode_kirin.c \ | ||
| 27 | - drmmode_sti/drmmode_sti.c | ||
| 28 | + drmmode_sti/drmmode_sti.c \ | ||
| 29 | + drmmode_xilinx/drmmode_xilinx.c | ||
| 30 | |||
| 31 | |||
| 32 | armsoc_drv_la_SOURCES = \ | ||
| 33 | diff --git a/src/armsoc_driver.c b/src/armsoc_driver.c | ||
| 34 | index 83e74a7ed1..3ace3c7be5 100644 | ||
| 35 | --- a/src/armsoc_driver.c | ||
| 36 | +++ b/src/armsoc_driver.c | ||
| 37 | @@ -737,6 +737,7 @@ static struct drmmode_interface *get_drmmode_implementation(int drm_fd) | ||
| 38 | &pl111_interface, | ||
| 39 | &kirin_interface, | ||
| 40 | &sti_interface, | ||
| 41 | + &xilinx_interface, | ||
| 42 | }; | ||
| 43 | int i; | ||
| 44 | |||
| 45 | diff --git a/src/drmmode_driver.h b/src/drmmode_driver.h | ||
| 46 | index 879fc60ddc..18245d591a 100644 | ||
| 47 | --- a/src/drmmode_driver.h | ||
| 48 | +++ b/src/drmmode_driver.h | ||
| 49 | @@ -106,6 +106,7 @@ extern struct drmmode_interface exynos_interface; | ||
| 50 | extern struct drmmode_interface pl111_interface; | ||
| 51 | extern struct drmmode_interface kirin_interface; | ||
| 52 | extern struct drmmode_interface sti_interface; | ||
| 53 | +extern struct drmmode_interface xilinx_interface; | ||
| 54 | |||
| 55 | |||
| 56 | #endif | ||
| 57 | diff --git a/src/drmmode_xilinx/drmmode_xilinx.c b/src/drmmode_xilinx/drmmode_xilinx.c | ||
| 58 | new file mode 100644 | ||
| 59 | index 0000000000..f4faceb0b4 | ||
| 60 | --- /dev/null | ||
| 61 | +++ b/src/drmmode_xilinx/drmmode_xilinx.c | ||
| 62 | @@ -0,0 +1,76 @@ | ||
| 63 | +/* | ||
| 64 | + * Xilinx X11 ARMSOC driver | ||
| 65 | + * | ||
| 66 | + * Author: Hyun Woo Kwon <hyun.kwon@xilinx.com> | ||
| 67 | + * | ||
| 68 | + * Copyright (C) 2014 Xilinx, Inc. | ||
| 69 | + * | ||
| 70 | + * Based on drmmode_exynos.c | ||
| 71 | + * | ||
| 72 | + * Copyright © 2013 ARM Limited. | ||
| 73 | + * | ||
| 74 | + * Permission is hereby granted, free of charge, to any person obtaining a | ||
| 75 | + * copy of this software and associated documentation files (the "Software"), | ||
| 76 | + * to deal in the Software without restriction, including without limitation | ||
| 77 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
| 78 | + * and/or sell copies of the Software, and to permit persons to whom the | ||
| 79 | + * Software is furnished to do so, subject to the following conditions: | ||
| 80 | + * | ||
| 81 | + * The above copyright notice and this permission notice (including the next | ||
| 82 | + * paragraph) shall be included in all copies or substantial portions of the | ||
| 83 | + * Software. | ||
| 84 | + * | ||
| 85 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 86 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 87 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
| 88 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 89 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 90 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 91 | + * SOFTWARE. | ||
| 92 | + * | ||
| 93 | + */ | ||
| 94 | + | ||
| 95 | +#include <stdlib.h> | ||
| 96 | + | ||
| 97 | +#include <drm.h> | ||
| 98 | +#include <xf86drm.h> | ||
| 99 | + | ||
| 100 | +#include "../drmmode_driver.h" | ||
| 101 | + | ||
| 102 | +static int create_custom_gem(int fd, struct armsoc_create_gem *create_gem) | ||
| 103 | +{ | ||
| 104 | + struct drm_mode_create_dumb arg; | ||
| 105 | + int ret; | ||
| 106 | + | ||
| 107 | + memset(&arg, 0, sizeof(arg)); | ||
| 108 | + arg.height = create_gem->height; | ||
| 109 | + arg.width = create_gem->width; | ||
| 110 | + arg.bpp = create_gem->bpp; | ||
| 111 | + | ||
| 112 | + ret = drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &arg); | ||
| 113 | + if (ret) | ||
| 114 | + return ret; | ||
| 115 | + | ||
| 116 | + create_gem->height = arg.height; | ||
| 117 | + create_gem->width = arg.width; | ||
| 118 | + create_gem->bpp = arg.bpp; | ||
| 119 | + create_gem->handle = arg.handle; | ||
| 120 | + create_gem->pitch = arg.pitch; | ||
| 121 | + create_gem->size = arg.size; | ||
| 122 | + | ||
| 123 | + return 0; | ||
| 124 | +} | ||
| 125 | + | ||
| 126 | +struct drmmode_interface xilinx_interface = { | ||
| 127 | + "xlnx" /* name of drm driver */, | ||
| 128 | + 1 /* use_page_flip_events */, | ||
| 129 | + 1 /* use_early_display */, | ||
| 130 | + 0 /* cursor width */, | ||
| 131 | + 0 /* cursor_height */, | ||
| 132 | + 0 /* cursor padding */, | ||
| 133 | + HWCURSOR_API_NONE /* cursor_api */, | ||
| 134 | + NULL /* init_plane_for_cursor */, | ||
| 135 | + 0 /* vblank_query_supported */, | ||
| 136 | + create_custom_gem /* create_custom_gem */, | ||
| 137 | +}; | ||
| 138 | + | ||
| 139 | -- | ||
| 140 | 2.11.0 | ||
| 141 | |||
diff --git a/meta-xilinx-bsp/recipes-graphics/xorg-driver/xf86-video-armsoc_%.bbappend b/meta-xilinx-bsp/recipes-graphics/xorg-driver/xf86-video-armsoc_%.bbappend deleted file mode 100644 index 955398a3..00000000 --- a/meta-xilinx-bsp/recipes-graphics/xorg-driver/xf86-video-armsoc_%.bbappend +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/xf86-video-armsoc:" | ||
| 2 | |||
| 3 | SRC_URI_append = " file://0001-src-drmmode_xilinx-Add-the-dumb-gem-support-for-Xili.patch \ | ||
| 4 | file://0001-armsoc_driver.c-Bypass-the-exa-layer-to-free-the-roo.patch \ | ||
| 5 | " | ||
