aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoonas Kylmälä <joonas.kylmala@iki.fi>2019-07-16 16:53:30 (GMT)
committerRicardo 'Grim' Cabrita <grimkriegor@krutt.org>2019-07-22 17:45:15 (GMT)
commit13ff897b52ee672ef1be1425b63fa33b73fbfdc3 (patch)
tree734d9bdb692364622578da3035edd5d8fab7fdb3
parent0345aeeb4015e824574ceca4f47ade512963c215 (diff)
downloadexternal_mesa3d-13ff897b52ee672ef1be1425b63fa33b73fbfdc3.zip
external_mesa3d-13ff897b52ee672ef1be1425b63fa33b73fbfdc3.tar.gz
external_mesa3d-13ff897b52ee672ef1be1425b63fa33b73fbfdc3.tar.bz2
Use DRM render node for software rendering
We allow in our kernel dumb buffer creation only in render nodes so with current setup this is a must. Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
-rw-r--r--src/egl/drivers/dri2/platform_android.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index d949ed4..07b5534 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -1504,7 +1504,7 @@ droid_open_device(_EGLDisplay *disp, bool swrast)
#ifdef EGL_FORCE_RENDERNODE
const unsigned node_type = DRM_NODE_RENDER;
#else
- const unsigned node_type = swrast ? DRM_NODE_PRIMARY : DRM_NODE_RENDER;
+ const unsigned node_type = DRM_NODE_RENDER;
#endif
if (property_get("drm.gpu.vendor_name", vendor_buf, NULL) > 0)