Skip to content
Snippets Groups Projects
Commit 754b4581 authored by Chia-I Wu's avatar Chia-I Wu Committed by Eric Engestrom
Browse files

egl/surfaceless: try kms_swrast before swrast


Before commit f7e0cdcf, we tried these in order

 - if (!ForceSoftware) surfaceless_probe_device(disp, false);
 - surfaceless_probe_device(disp, true);
 - surfaceless_probe_device_sw(disp);

The commit changed it to

 - surfaceless_probe_device(disp, ForceSoftware);
 - surfaceless_probe_device_sw(disp);

and broke 2D virtio-gpu and vgem when ForceSoftware is false.  This
commit restores the old behavior.

Fixes: f7e0cdcf ("egl/surfaceless: simplify dri2_initialize_surfaceless()")
Signed-off-by: default avatarChia-I Wu <olvaffe@gmail.com>
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Part-of: <mesa/mesa!11992>
(cherry picked from commit 38418192)
parent d52a423f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment