From 2554ea804a19184b8c87a4525d4081aa638efe20 Mon Sep 17 00:00:00 2001 From: pngcui Date: Thu, 30 Jul 2026 10:48:46 +0800 Subject: [PATCH] hwc: support gbm_proxy gralloc --- hwcomposer/wayland-hwc.cpp | 2 +- hwcomposerx11/x11-hwc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hwcomposer/wayland-hwc.cpp b/hwcomposer/wayland-hwc.cpp index 65d7eab..fcb68cb 100755 --- a/hwcomposer/wayland-hwc.cpp +++ b/hwcomposer/wayland-hwc.cpp @@ -2692,7 +2692,7 @@ get_gralloc_type(const char *gralloc) { if (strcmp(gralloc, "default") == 0) { return GRALLOC_DEFAULT; - } else if (strcmp(gralloc, "gbm") == 0) { + } else if (strcmp(gralloc, "gbm") == 0 || strcmp(gralloc, "gbm_proxy") == 0) { return GRALLOC_GBM; } else if (str_starts_with(gralloc, "minigbm_") == 0) { return GRALLOC_CROS; diff --git a/hwcomposerx11/x11-hwc.cpp b/hwcomposerx11/x11-hwc.cpp index 2fbd8fd..828cf74 100755 --- a/hwcomposerx11/x11-hwc.cpp +++ b/hwcomposerx11/x11-hwc.cpp @@ -148,7 +148,7 @@ get_gralloc_type(const char *gralloc) { if (strcmp(gralloc, "default") == 0) { return GRALLOC_DEFAULT; - } else if (strcmp(gralloc, "gbm") == 0) { + } else if (strcmp(gralloc, "gbm") == 0 || strcmp(gralloc, "gbm_proxy") == 0) { return GRALLOC_GBM; } else if (strcmp(gralloc, "ranchu") == 0) { return GRALLOC_RANCHU;