egl/surfaceless: Do without a KMS device if using kms_swrast
kms_swrast can work without a KMS device, so don't fail to init if no
device was found.
This allows the platform to be used in machines where no KMS device at
all is present.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Loading
-
You and Pekka are right - surfaceless does not really need any KMS specifics/dumb buffers and alike. Since it's more or less identical to OSMesa the "null" SW winsys out to be enough - that one is part of the normal gallium swrast_dri.so.
I believe the KMS one was used here since it provides extra DRI extension features (the drmGetCap hunk etc). So here I'd just go with:
- removing the swrast (aka reverting the commit that introduces it), and
- setting up only the driver_name (to swrast) in case of software rendering
Edited by Emil Velikov
Please register or sign in to comment