mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-12-15 23:17:24 +01:00
chromium-ozone-wayland: Add a patch to fix webgl 2.0.0 cts crash [YOCIMX-8533]
Signed-off-by: Neena Busireddy <neenareddy.busireddy@nxp.com>
This commit is contained in:
parent
4404bd0cdb
commit
2c8fb62498
|
|
@ -0,0 +1,37 @@
|
|||
From b2638bbe486e468379e99c53ce50c528a41f3c54 Mon Sep 17 00:00:00 2001
|
||||
From: Wujian Sun <wujian.sun_1@nxp.com>
|
||||
Date: Tue, 19 Nov 2024 14:11:21 +0800
|
||||
Subject: [PATCH] Fix chromium crash when run webgl 2.0.0 cts
|
||||
|
||||
Most display not support YUV format SCANOUT usage,
|
||||
don't create YUV format GBM bo for SCANOUT.
|
||||
|
||||
webgl 2.0.0 fail cases:
|
||||
all/conformance2/textures/video
|
||||
|
||||
Upstream-Status: Inappropriate [i.MX specific]
|
||||
|
||||
Signed-off-by: Wujian Sun <wujian.sun_1@nxp.com>
|
||||
---
|
||||
ui/gfx/linux/gbm_wrapper.cc | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc
|
||||
index 415640e5825e3..682238603f942 100644
|
||||
--- a/ui/gfx/linux/gbm_wrapper.cc
|
||||
+++ b/ui/gfx/linux/gbm_wrapper.cc
|
||||
@@ -248,6 +248,11 @@ std::unique_ptr<Buffer> CreateBufferForBO(struct gbm_bo* bo,
|
||||
|
||||
const uint64_t modifier = gbm_bo_get_modifier(bo);
|
||||
const int plane_count = GetPlaneCount(bo);
|
||||
+
|
||||
+ //Most display not support YUV format SCANOUT usage
|
||||
+ if (format == GBM_FORMAT_NV12 && (flags & GBM_BO_USE_SCANOUT))
|
||||
+ return nullptr;
|
||||
+
|
||||
// The Mesa's gbm implementation explicitly checks whether plane count <= and
|
||||
// returns 1 if the condition is true. Nevertheless, use a DCHECK here to make
|
||||
// sure the condition is not broken there.
|
||||
--
|
||||
2.34.1
|
||||
|
||||
|
|
@ -9,6 +9,7 @@ SRC_URI:append:imx-nxp-bsp = " \
|
|||
file://0006-LF-12406-Fixed-webgl-test-fail-for-GL_MAX_SAMPLES-ch.patch \
|
||||
file://0007-Enable-native-GLES2-for-Ozone-wayland.patch \
|
||||
file://0008-Fix-build-fail-after-clang-llvm-upgrade.patch \
|
||||
file://0009-Fix-chromium-crash-when-run-webgl-2.0.0-cts.patch \
|
||||
"
|
||||
VDA_PATCH_SET = " \
|
||||
file://0101-V4L2Device-Correct-v4l2-codec-device-path.patch \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user