aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo 'Grim' Cabrita <grimkriegor@krutt.org>2019-07-22 17:42:07 (GMT)
committerRicardo 'Grim' Cabrita <grimkriegor@krutt.org>2019-07-22 17:45:15 (GMT)
commite0a5e6c056c8281712bf6366acfe876215992613 (patch)
tree455e4ef77b72d5ed3b647875e1e392248cf1ced0
parent13ff897b52ee672ef1be1425b63fa33b73fbfdc3 (diff)
downloadexternal_mesa3d-e0a5e6c056c8281712bf6366acfe876215992613.zip
external_mesa3d-e0a5e6c056c8281712bf6366acfe876215992613.tar.gz
external_mesa3d-e0a5e6c056c8281712bf6366acfe876215992613.tar.bz2
egl/dri2: Allow using kms_swrast with exynos driver
Signed-off-by: Ricardo 'Grim' Cabrita <grimkriegor@krutt.org>
-rw-r--r--src/egl/drivers/dri2/platform_android.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index 07b5534..456b1f7 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -1387,12 +1387,13 @@ droid_load_driver(_EGLDisplay *disp, bool swrast)
}
#else
if (swrast) {
- /* Use kms swrast only with vgem / virtio_gpu.
+ /* Use kms swrast only with vgem / virtio_gpu / exynos.
* virtio-gpu fallbacks to software rendering when 3D features
* are unavailable since 6c5ab.
*/
if (strcmp(dri2_dpy->driver_name, "vgem") == 0 ||
- strcmp(dri2_dpy->driver_name, "virtio_gpu") == 0) {
+ strcmp(dri2_dpy->driver_name, "virtio_gpu") == 0 ||
+ strcmp(dri2_dpy->driver_name, "exynos") == 0) {
free(dri2_dpy->driver_name);
dri2_dpy->driver_name = strdup("kms_swrast");
} else {