summaryrefslogtreecommitdiff
path: root/system-libdrm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system-libdrm.patch')
-rw-r--r--system-libdrm.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/system-libdrm.patch b/system-libdrm.patch
new file mode 100644
index 0000000..1712411
--- /dev/null
+++ b/system-libdrm.patch
@@ -0,0 +1,42 @@
+Index: chromium-114.0.5735.90/build/linux/unbundle/libdrm.gn
+===================================================================
+--- chromium-114.0.5735.90.orig/build/linux/unbundle/libdrm.gn
++++ chromium-114.0.5735.90/build/linux/unbundle/libdrm.gn
+@@ -11,7 +11,10 @@ pkg_config("system_libdrm") {
+
+ shim_headers("libdrm_shim") {
+ root_path = "src/include"
+- headers = [ "drm.h" ]
++ headers = [
++ "drm.h",
++ "drm_fourcc.h",
++ ]
+ }
+
+ source_set("libdrm") {
+Index: chromium-114.0.5735.90/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
+===================================================================
+--- chromium-114.0.5735.90.orig/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
++++ chromium-114.0.5735.90/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
+@@ -18,7 +18,7 @@
+ #include "base/metrics/histogram_macros.h"
+ #include "base/ranges/algorithm.h"
+ #include "base/trace_event/typed_macros.h"
+-#include "third_party/libdrm/src/include/drm/drm_fourcc.h"
++#include <drm_fourcc.h>
+ #include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
+ #include "third_party/skia/include/core/SkCanvas.h"
+ #include "third_party/skia/include/core/SkImage.h"
+Index: chromium-114.0.5735.90/media/gpu/chromeos/video_decoder_pipeline_unittest.cc
+===================================================================
+--- chromium-114.0.5735.90.orig/media/gpu/chromeos/video_decoder_pipeline_unittest.cc
++++ chromium-114.0.5735.90/media/gpu/chromeos/video_decoder_pipeline_unittest.cc
+@@ -25,7 +25,7 @@
+ #include "media/gpu/chromeos/dmabuf_video_frame_pool.h"
+ #include "testing/gmock/include/gmock/gmock.h"
+ #include "testing/gtest/include/gtest/gtest.h"
+-#include "third_party/libdrm/src/include/drm/drm_fourcc.h"
++#include <drm_fourcc.h>
+
+ #if BUILDFLAG(IS_CHROMEOS_ASH)
+ // gn check does not account for BUILDFLAG(), so including this header will