1
0
Fork 0

drm_hwcomposer: Handle headless display in SetConfig

For the headless display case, set the active config and early out to
avoid accessing a null pipeline.

Change-Id: I064b23e65dc227592dda75e888b294b8a25f6cf2
Signed-off-by: Drew Davenport <ddavenport@google.com>
This commit is contained in:
Drew Davenport 2025-04-08 20:12:08 -06:00
parent b08814ab3c
commit 7efc0f1c1d

View file

@ -205,6 +205,10 @@ HwcDisplay::ConfigError HwcDisplay::SetConfig(hwc2_config_t config) {
ALOGE("Could not find active mode for %u", config);
return ConfigError::kBadConfig;
}
if (IsInHeadlessMode()) {
configs_.active_config_id = config;
return ConfigError::kNone;
}
const HwcDisplayConfig *current_config = GetCurrentConfig();