anv/android: always create 2 graphics and compute capable queues

Android hwui requires 2 queues.

Cc: mesa-stable
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32279>
(cherry picked from commit 19b6991160)
This commit is contained in:
Tapani Pälli 2024-11-19 20:21:26 +02:00 committed by Dylan Baker
parent cd8c4e92cf
commit 428f2bea18
2 changed files with 6 additions and 1 deletions

View file

@ -644,7 +644,7 @@
"description": "anv/android: always create 2 graphics and compute capable queues",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -2202,6 +2202,11 @@ anv_override_engine_counts(int *gc_count, int *g_count, int *c_count, int *v_cou
int blit_override = -1;
const char *env_ = os_get_option("ANV_QUEUE_OVERRIDE");
/* Override queues for Android HWUI that expects min 2 queues. */
#if DETECT_OS_ANDROID
*gc_count = 2;
#endif
if (env_ == NULL)
return;