<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic vkGetPhysicalDeviceSurfaceFormatsKHR doesn't fill format count correctly in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/vkGetPhysicalDeviceSurfaceFormatsKHR-doesn-t-fill-format-count/m-p/1137291#M87721</link>
    <description>&lt;P&gt;As per Vulkan spec,&amp;nbsp;vkGetPhysicalDeviceSurfaceFormatsKHR should fill pSurfaceFormatCount as follows:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Noto, sans-serif; font-size: 16px;"&gt;Otherwise,&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Courier, monospace; font-size: 16px; color: rgb(38, 67, 87); border-radius: 0px; padding: 0px; line-height: inherit; overflow-wrap: break-word;"&gt;pSurfaceFormatCount&lt;/CODE&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Noto, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG class="purple" style="box-sizing: border-box; line-height: inherit; color: rgb(96, 0, 96); font-family: Noto, sans-serif; font-size: 16px;"&gt;must&lt;/STRONG&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Noto, sans-serif; font-size: 16px;"&gt;&amp;nbsp;point to a variable set by the user to the number of elements in the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Courier, monospace; font-size: 16px; color: rgb(38, 67, 87); border-radius: 0px; padding: 0px; line-height: inherit; overflow-wrap: break-word;"&gt;pSurfaceFormats&lt;/CODE&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Noto, sans-serif; font-size: 16px;"&gt;&amp;nbsp;array, and on return the variable is overwritten with the number of structures actually written to&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Courier, monospace; font-size: 16px; color: rgb(38, 67, 87); border-radius: 0px; padding: 0px; line-height: inherit; overflow-wrap: break-word;"&gt;pSurfaceFormats&lt;/CODE&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Noto, sans-serif; font-size: 16px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;However, this code:&lt;/P&gt;

&lt;DIV&gt;VkSurfaceFormatKHR formats[16];&lt;/DIV&gt;

&lt;DIV&gt;uint32_t formatCount = sizeof(formats) / sizeof(formats[0]);&lt;/DIV&gt;

&lt;DIV&gt;VK_CHECK(vkGetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, &amp;amp;formatCount, formats));&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;Leaves formatCount as 16 after&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;vkGetPhysicalDeviceSurfaceFormatsKHR successfully returns (and fills 2 values in the formats buffer).&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;This happens on Windows 10, 24.20.100.6286 graphics driver as reported by dxdiag&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 30 Sep 2018 17:48:29 GMT</pubDate>
    <dc:creator>AKapo3</dc:creator>
    <dc:date>2018-09-30T17:48:29Z</dc:date>
    <item>
      <title>vkGetPhysicalDeviceSurfaceFormatsKHR doesn't fill format count correctly</title>
      <link>https://community.intel.com/t5/Graphics/vkGetPhysicalDeviceSurfaceFormatsKHR-doesn-t-fill-format-count/m-p/1137291#M87721</link>
      <description>&lt;P&gt;As per Vulkan spec,&amp;nbsp;vkGetPhysicalDeviceSurfaceFormatsKHR should fill pSurfaceFormatCount as follows:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Noto, sans-serif; font-size: 16px;"&gt;Otherwise,&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Courier, monospace; font-size: 16px; color: rgb(38, 67, 87); border-radius: 0px; padding: 0px; line-height: inherit; overflow-wrap: break-word;"&gt;pSurfaceFormatCount&lt;/CODE&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Noto, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG class="purple" style="box-sizing: border-box; line-height: inherit; color: rgb(96, 0, 96); font-family: Noto, sans-serif; font-size: 16px;"&gt;must&lt;/STRONG&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Noto, sans-serif; font-size: 16px;"&gt;&amp;nbsp;point to a variable set by the user to the number of elements in the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Courier, monospace; font-size: 16px; color: rgb(38, 67, 87); border-radius: 0px; padding: 0px; line-height: inherit; overflow-wrap: break-word;"&gt;pSurfaceFormats&lt;/CODE&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Noto, sans-serif; font-size: 16px;"&gt;&amp;nbsp;array, and on return the variable is overwritten with the number of structures actually written to&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="box-sizing: border-box; font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Courier, monospace; font-size: 16px; color: rgb(38, 67, 87); border-radius: 0px; padding: 0px; line-height: inherit; overflow-wrap: break-word;"&gt;pSurfaceFormats&lt;/CODE&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: Noto, sans-serif; font-size: 16px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;However, this code:&lt;/P&gt;

&lt;DIV&gt;VkSurfaceFormatKHR formats[16];&lt;/DIV&gt;

&lt;DIV&gt;uint32_t formatCount = sizeof(formats) / sizeof(formats[0]);&lt;/DIV&gt;

&lt;DIV&gt;VK_CHECK(vkGetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, &amp;amp;formatCount, formats));&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;Leaves formatCount as 16 after&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;vkGetPhysicalDeviceSurfaceFormatsKHR successfully returns (and fills 2 values in the formats buffer).&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;This happens on Windows 10, 24.20.100.6286 graphics driver as reported by dxdiag&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 30 Sep 2018 17:48:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/vkGetPhysicalDeviceSurfaceFormatsKHR-doesn-t-fill-format-count/m-p/1137291#M87721</guid>
      <dc:creator>AKapo3</dc:creator>
      <dc:date>2018-09-30T17:48:29Z</dc:date>
    </item>
    <item>
      <title>This bug also occurs with</title>
      <link>https://community.intel.com/t5/Graphics/vkGetPhysicalDeviceSurfaceFormatsKHR-doesn-t-fill-format-count/m-p/1137292#M87722</link>
      <description>&lt;P&gt;This bug also occurs with&amp;nbsp;vkGetSwapchainImagesKHR, and possibly other swapchain functions?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 17:53:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/vkGetPhysicalDeviceSurfaceFormatsKHR-doesn-t-fill-format-count/m-p/1137292#M87722</guid>
      <dc:creator>AKapo3</dc:creator>
      <dc:date>2018-09-30T17:53:24Z</dc:date>
    </item>
    <item>
      <title>Note: this also happens with</title>
      <link>https://community.intel.com/t5/Graphics/vkGetPhysicalDeviceSurfaceFormatsKHR-doesn-t-fill-format-count/m-p/1137293#M87723</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 17:06:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/vkGetPhysicalDeviceSurfaceFormatsKHR-doesn-t-fill-format-count/m-p/1137293#M87723</guid>
      <dc:creator>AKapo3</dc:creator>
      <dc:date>2018-10-02T17:06:00Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Graphics/vkGetPhysicalDeviceSurfaceFormatsKHR-doesn-t-fill-format-count/m-p/1137294#M87724</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We released a new graphics driver (25.20.100.6444) yesterday (11/28) and it has the fix for your issue. You can get details on the driver here:&lt;A href="https://downloadcenter.intel.com/download/28139"&gt;&amp;nbsp;https://downloadcenter.intel.com/download/28139&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 17:38:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/vkGetPhysicalDeviceSurfaceFormatsKHR-doesn-t-fill-format-count/m-p/1137294#M87724</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2018-11-29T17:38:16Z</dc:date>
    </item>
  </channel>
</rss>

