gpu: workaround to advertise 2 graphics queues in ANV

Advertising 2 graphics queues from the same queue familiy is a hard
requirement for HWUI Vulkan backend on Android 14+.

BUG=b:323284290
TEST=adb shell cmd gpu vkjson show 2 queues

Change-Id: Ia4c080b4e3dc4958db2d6010bcf9d9fce591d04c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5623296
Auto-Submit: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Lepton Wu <lepton@chromium.org>
Commit-Queue: Yiwei Zhang <zzyiwei@chromium.org>
This commit is contained in:
Yiwei Zhang 2024-06-11 15:10:11 -07:00 committed by crosvm LUCI
parent 795565ac25
commit 3aaa5956e4

View file

@ -249,6 +249,11 @@ fn get_gpu_render_server_environment(
}
}
// TODO(b/323284290): workaround to advertise 2 graphics queues in ANV
if !env.contains_key("ANV_QUEUE_OVERRIDE") {
env.insert("ANV_QUEUE_OVERRIDE".to_string(), "gc=2".to_string());
}
// TODO(b/237493180, b/284517235): workaround to enable ETC2/ASTC format emulation in Mesa
// TODO(b/284361281, b/328827736): workaround to enable legacy sparse binding in RADV
let driconf_options = [