[Bug 99715] Don't print: "Note: Buggy applications may crash, if they do please report to vendor"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Feb 18 07:00:15 UTC 2017


--- Comment #13 from Jason Ekstrand <jason at jlekstrand.net> ---
(In reply to Emil Velikov from comment #7)
> Or at least having a common way _fully documented as part of the spec_ to do
> it on all platforms/drivers is what we want here, right ?
> Probing the system for NV-CONTROL/other brings vendor specific 'hacks' which
> I afaict was against the ideas behind Vulkan ?

I think you're a bit out of your depth here.  There is a fully documented way
to detect whether or not you can use WSI on the given platform.  It's to call
exactly the function that has the warning in it.  The problem is that the
warning can "spuriously" return false in anv or radv if DRI3 is not enabled and
the application will fail to start or just crash.  I put "spuriously" in quotes
because returning false really is true in that case because you can't use
Vulkan WSI with DRI2.

What we're talking about here is not heuristics for determining whether or not
Vulkan WSI is supported (that's simple, look for DRI3 and a GPU match).  We're
talking about heuristics for when to emit a warning message.  I think checking
for a couple of vendor extensions is a perfectly valid way to do that.

You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170218/9bbc7b81/attachment-0001.html>

More information about the intel-3d-bugs mailing list