egl: Replace the robustness DRI2 ext check with a pipe cap query.
authorEmma Anholt <emma@anholt.net>
Wed, 30 Nov 2022 23:23:56 +0000 (15:23 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Dec 2022 05:32:18 +0000 (05:32 +0000)
commite6285ea55fb2abf3b38f40ea0c3a69c2b6d7d8e5
treec7cca708b893a770735184a952ac0ab8aabdf819
parentf4b2f9cff2993a0b89f4471c7aa82c88228d1b86
egl: Replace the robustness DRI2 ext check with a pipe cap query.

This means that swkms will now report it with llvmpipe.  drisw reported it
with llvmpipe, and it appears to have been an oversight that got
refactored into an obvious "if !swkms" check later.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20171>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h