<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Don't print: "Note: Buggy applications may crash, if they do please report to vendor""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99715">99715</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Don't print: "Note: Buggy applications may crash, if they do please report to vendor"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>13.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/Vulkan/intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rjklindsay@hotmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jason@jlekstrand.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm running into issues when using the Mesa Vulkan driver on Ubuntu 16.04.
When I enumerate the physical devices, Vulkan returns 2 options for me:
1: NVidia GTX 660 Ti
2: Intel HD Graphics 530 (Skylake GT2)

(On some machines, the order is reversed.)

Next, I determine which GPU (VkPhysicalDevice) the desktop is currently running
on, by searching for presentable queue-families on each GPU, using either:
   vkGetPhysicalDeviceSurfaceSupportKHR(), or
   vkGetPhysicalDeviceXcbPresentationSupportKHR().

I HAVE enabled DRI3 support for Intel (in: /etc/X11/xorg.conf.d/20-intel.conf)
so when the desktop is running on Intel, the query returns "True" for the Intel
queue.  And, when I use nvidia-prime, to switch the desktop to run on the
NVidia GPU,  NVidia's first queue-family returns true, and Intel's queue-family
returns false.  So far so good...

The problem is, Mesa then also prints an error message to stderr:

"vulkan: No DRI3 support detected - required for presentation"
"Note: Buggy applications may crash, if they do please report to vendor"

(See line 268 in file: /mesa/src/vulkan/wsi/wsi_common_x11.c)
As I said, I DO have DRI3 enabled, but it seems Mesa doesn't detect it when the
NVidia GPU is active.
Besides, it should be perfectly valid to use these query functions to search
for presentable queues, without risking an error message being displayed.  I do
see the value of informing the user if DRI3 was not set up correctly, but only
when its valid.  Mesa should not accuse the app of being buggy, just because a
non-Intel GPU is being used.  

Which brings up the next issue. The second line: "Buggy applications may crash"
implies that the Vulkan application is buggy, even when its not.  This leads to
users incorrectly filing bug-reports against Vulkan app developers, which is a
bit unfair: ( see: <a href="https://github.com/SaschaWillems/Vulkan/issues/226">https://github.com/SaschaWillems/Vulkan/issues/226</a> )

At least, can we remove the second line from that error message?
I don't want users thinking that my apps are buggy too.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>