Commit 6f887d74 authored by Matvii Zorin's avatar Matvii Zorin
Browse files

drm_hwcomposer: Add rcar-du display backend

ABGR8888 pixel format and layer scaling are unsupported for rcar-du
KMS DRI card. Handle it by overriding the IsClientLayer method for
additional checks.

Signed-off-by: Matvii Zorin's avatarMatvii Zorin <>
parent 69c90fd5
Pipeline #188923 passed with stage
in 44 seconds
......@@ -98,6 +98,7 @@ cc_library_static {
#include "backendrcardu.h"
#include "backendmanager.h"
#include "drm_fourcc.h"
namespace android {
bool BackendRCarDu::IsClientLayer(DrmHwcTwo::HwcDisplay *display,
DrmHwcTwo::HwcLayer *layer) {
hwc_drm_bo_t bo;
int ret = display->importer()->ConvertBoInfo(layer->buffer(), &bo);
if (ret)
return true;
if (bo.format == DRM_FORMAT_ABGR8888)
return true;
if (layer->RequireScalingOrPhasing())
return true;
return Backend::IsClientLayer(display, layer);
REGISTER_BACKEND("rcar-du", BackendRCarDu);
} // namespace android
\ No newline at end of file
#include "backend.h"
#include "drmhwctwo.h"
namespace android {
class BackendRCarDu : public Backend {
bool IsClientLayer(DrmHwcTwo::HwcDisplay *display,
DrmHwcTwo::HwcLayer *layer) override;
} // namespace android
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment