[GST] [OMX] [DRM] Clear all framebuffer content. Set staging flag for gdb remote debug.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
Clear all framebuffer content when mapping.
|
||||
|
||||
Signed-off-by: Windsome Zeng <windsome.zeng@starfivetech.com>
|
||||
|
||||
diff -purN a/sys/kms/gstkmsallocator.c b/sys/kms/gstkmsallocator.c
|
||||
--- a/sys/kms/gstkmsallocator.c 2022-08-31 10:57:31.759791991 +0800
|
||||
+++ b/sys/kms/gstkmsallocator.c 2022-08-31 09:25:30.132182006 +0800
|
||||
@@ -384,6 +384,9 @@ gst_kms_memory_map (GstMemory * mem, gsi
|
||||
}
|
||||
kmsmem->bo->ptr = out;
|
||||
|
||||
+ /* clear the framebuffer to 0 */
|
||||
+ memset(out, 0, kmsmem->bo->size);
|
||||
+
|
||||
out:
|
||||
g_atomic_int_inc (&kmsmem->bo->refs);
|
||||
return kmsmem->bo->ptr;
|
||||
@@ -7,6 +7,7 @@
|
||||
GST1_PLUGINS_GOOD_VERSION = 1.18.5
|
||||
GST1_PLUGINS_GOOD_SOURCE = gst-plugins-good-$(GST1_PLUGINS_GOOD_VERSION).tar.xz
|
||||
GST1_PLUGINS_GOOD_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-good
|
||||
GST1_PLUGINS_GOOD_INSTALL_STAGING = YES
|
||||
GST1_PLUGINS_GOOD_LICENSE_FILES = COPYING
|
||||
GST1_PLUGINS_GOOD_LICENSE = LGPL-2.1+
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
GST1_PLUGINS_UGLY_VERSION = 1.18.5
|
||||
GST1_PLUGINS_UGLY_SOURCE = gst-plugins-ugly-$(GST1_PLUGINS_UGLY_VERSION).tar.xz
|
||||
GST1_PLUGINS_UGLY_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-ugly
|
||||
GST1_PLUGINS_UGLY_INSTALL_STAGING = YES
|
||||
GST1_PLUGINS_UGLY_LICENSE_FILES = COPYING
|
||||
# GPL licensed plugins will append to GST1_PLUGINS_UGLY_LICENSE if enabled.
|
||||
GST1_PLUGINS_UGLY_LICENSE = LGPL-2.1+
|
||||
|
||||
Reference in New Issue
Block a user