vulkan/wsi: Improve the DRI3 error message
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 1 Mar 2017 04:30:57 +0000 (20:30 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Mar 2017 03:11:47 +0000 (19:11 -0800)
commit3d8feb38e8fdbc05b591164cb934b48a495adfbc
treea43f9628b8668c1eb3f277df61137f5428b50912
parent424ac809bfac60ed8482abfb7ef8c8aa88877b55
vulkan/wsi: Improve the DRI3 error message

This commit improves the message by telling them that they could probably
enable DRI3.  More importantly, it includes a little heuristic to check
to see if we're running on AMD or NVIDIA's proprietary X11 drivers and,
if we are, doesn't emit the warning.  This way, users with both a discrete
card and Intel graphics don't get the warning when they're just running
on the discrete card.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99715
Co-authored-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Rene Lindsay <rjklindsay@hotmail.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Cc: "17.0" <mesa-dev@lists.freedesktop.org>
src/vulkan/wsi/wsi_common_x11.c