egl/sl: use kms_swrast with vgem instead of a random GPU
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 19 Feb 2019 14:08:08 +0000 (14:08 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 28 Feb 2019 12:05:03 +0000 (12:05 +0000)
commit7ad1a05c8314b4b6887f0a23892fa4f7fbca9720
tree905585ee9a3d7ec547b0606225bc6abe8d2303b5
parent218c7b5acaa053482d368afbce4612232731b3a4
egl/sl: use kms_swrast with vgem instead of a random GPU

VGEM and kms_swrast were introduced to work with one another.

All we do is CPU rendering to dumb buffers. There is no reason to carve
out GPU memory, increasing the memory pressure on a device that could
make a better use of it.

Note:
 - The original code did not work out of the box, since the dumb buffer
ioctls are not exposed to render nodes.
 - This requires libdrm commit 3df8a7f0 ("xf86drm: fallback to MODALIAS
for OF less platform devices")
 - The non-kms, swrast is unaffected by this change.

v2:
 - elaborate what and how is/isn't working (Eric)
 - simplify driver_name handling (Eric)

v3:
 - move node_type outside of the loop (Eric)
 - kill no longer needed DRM_RENDER_DEV_NAME define

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/egl/drivers/dri2/platform_surfaceless.c