<?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 I installed latest mesa from in Developing Games on Intel Graphics</title>
    <link>https://community.intel.com/t5/Developing-Games-on-Intel/Vulkan-Linux-Mesa-SIGBUS-Bus-error/m-p/1147986#M1577</link>
    <description>&lt;P&gt;I installed latest mesa from git (18.1.0_devel.100894.fcf267ba08). It seems the problem is related to push constants size. But I use only 80 bytes (one matrix and one vec4 for color) and maxPushConstantsSize = 128. I use the following code for push constants:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;        r32 diffToSend[4];
        memset(diffToSend, 0, sizeof(r32)*4);
        if(diffuseColorRGBA) memcpy(diffToSend, diffuseColorRGBA, sizeof(r32)*4);

        u8 pushConstants[80];
        memcpy(pushConstants, m, sizeof(r32)*16);
        memcpy(pushConstants+64, diffToSend, sizeof(r32)*4);

        vkCmdPushConstants(*cmdBuf, pipelineDescr-&amp;gt;pipelineLayout,
                           VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT,
                           0, 80, pushConstants);&lt;/PRE&gt;

&lt;DIV&gt;Program received signal SIGBUS, Bus error.&lt;/DIV&gt;

&lt;DIV&gt;anv_state_stream_alloc (stream=stream@entry=0x55559dbf9dd8, size=64, alignment=alignment@entry=32) at vulkan/anv_allocator.c:913&lt;/DIV&gt;

&lt;DIV&gt;913&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; VG_NOACCESS_WRITE(&amp;amp;sb-&amp;gt;block, stream-&amp;gt;block);&lt;/DIV&gt;

&lt;P&gt;0&amp;nbsp; in anv_state_stream_alloc of vulkan/anv_allocator.c:913&lt;BR /&gt;
	1&amp;nbsp; in anv_cmd_buffer_alloc_dynamic_state of vulkan/anv_batch_chain.c:654&lt;BR /&gt;
	2&amp;nbsp; in anv_cmd_buffer_push_constants of vulkan/anv_cmd_buffer.c:729&lt;BR /&gt;
	3&amp;nbsp; in cmd_buffer_flush_push_constants of vulkan/genX_cmd_buffer.c:2420&lt;BR /&gt;
	4&amp;nbsp; in gen9_cmd_buffer_flush_state of vulkan/genX_cmd_buffer.c:2571&lt;BR /&gt;
	5&amp;nbsp; in gen9_CmdDrawIndexed of vulkan/genX_cmd_buffer.c:2709&lt;BR /&gt;
	6&amp;nbsp; in ?? of /usr/lib/libVkLayer_core_validation.so&lt;BR /&gt;
	7&amp;nbsp; in ?? of /usr/lib/libVkLayer_parameter_validation.so&lt;BR /&gt;
	8&amp;nbsp; in ?? of /usr/lib/libVkLayer_threading.so&lt;BR /&gt;
	9&amp;nbsp; in vkcmd_create_secondary_command_buffer of vkcmd.c:207&lt;BR /&gt;
	10 in vkcmd_create_secondary_command_buffer_for_inst of vkcmd.c:88&lt;BR /&gt;
	11 in scn_load_scene of scene.c:407&lt;BR /&gt;
	12 in create_scene of main.c:903&lt;BR /&gt;
	13 in main of main.c:583&lt;/P&gt;

&lt;P&gt;So I get no validation errors. This code works on nvidia card. This is probably a bug.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2018 12:03:00 GMT</pubDate>
    <dc:creator>Gonakhchian__Viaches</dc:creator>
    <dc:date>2018-03-14T12:03:00Z</dc:date>
    <item>
      <title>[Vulkan][Linux][Mesa] SIGBUS, Bus error.</title>
      <link>https://community.intel.com/t5/Developing-Games-on-Intel/Vulkan-Linux-Mesa-SIGBUS-Bus-error/m-p/1147985#M1576</link>
      <description>&lt;P&gt;My system: Linux archlinux 4.15.6-1-ARCH #1 SMP PREEMPT Sun Feb 25 12:53:23 UTC 2018 x86_64 GNU/Linux&lt;BR /&gt;
	My graphics: Intel(R) HD Graphics 630 (Kaby Lake GT2)&lt;BR /&gt;
	My vulkaninfo: &lt;A href="https://pastebin.com/b38SHK6Z" target="_blank"&gt;https://pastebin.com/b38SHK6Z&lt;/A&gt;&lt;BR /&gt;
	Problematic function: &lt;A href="https://pastebin.com/vN2WjA1W" target="_blank"&gt;https://pastebin.com/vN2WjA1W&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I turned on validation layers and got no errors during device creation, swapchain creation, etc. Then my scene loader loads 71961 objects and every one of them has corresponding secondary command buffer. The error "Program received signal SIGBUS, Bus error." happens inside vkCmdDrawIndexed() when recording 32765th command buffer. What is the possible cause?&lt;/P&gt;

&lt;P&gt;Error happens inside libvulkan_intel.so:&lt;BR /&gt;
	0&amp;nbsp; in ?? of /usr/lib/libvulkan_intel.so&lt;BR /&gt;
	1&amp;nbsp; in ?? of /usr/lib/libvulkan_intel.so&lt;BR /&gt;
	2&amp;nbsp; in ?? of /usr/lib/libvulkan_intel.so&lt;BR /&gt;
	3&amp;nbsp; in ?? of /usr/lib/libvulkan_intel.so&lt;BR /&gt;
	4&amp;nbsp; in ?? of /usr/lib/libVkLayer_core_validation.so&lt;BR /&gt;
	5&amp;nbsp; in ?? of /usr/lib/libVkLayer_parameter_validation.so&lt;BR /&gt;
	6&amp;nbsp; in ?? of /usr/lib/libVkLayer_threading.so&lt;BR /&gt;
	7&amp;nbsp; in vkcmd_create_secondary_command_buffer of vkcmd.c:207&lt;BR /&gt;
	8&amp;nbsp; in vkcmd_create_secondary_command_buffer_for_inst of vkcmd.c:88&lt;BR /&gt;
	9&amp;nbsp; in scn_load_scene of scene.c:407&lt;BR /&gt;
	10 in create_scene of main.c:903&lt;BR /&gt;
	11 in main of main.c:583&lt;/P&gt;

&lt;P&gt;The code works fine on my other system with nvidia GTX-1070.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2018 11:40:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Developing-Games-on-Intel/Vulkan-Linux-Mesa-SIGBUS-Bus-error/m-p/1147985#M1576</guid>
      <dc:creator>Gonakhchian__Viaches</dc:creator>
      <dc:date>2018-03-04T11:40:18Z</dc:date>
    </item>
    <item>
      <title>I installed latest mesa from</title>
      <link>https://community.intel.com/t5/Developing-Games-on-Intel/Vulkan-Linux-Mesa-SIGBUS-Bus-error/m-p/1147986#M1577</link>
      <description>&lt;P&gt;I installed latest mesa from git (18.1.0_devel.100894.fcf267ba08). It seems the problem is related to push constants size. But I use only 80 bytes (one matrix and one vec4 for color) and maxPushConstantsSize = 128. I use the following code for push constants:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;        r32 diffToSend[4];
        memset(diffToSend, 0, sizeof(r32)*4);
        if(diffuseColorRGBA) memcpy(diffToSend, diffuseColorRGBA, sizeof(r32)*4);

        u8 pushConstants[80];
        memcpy(pushConstants, m, sizeof(r32)*16);
        memcpy(pushConstants+64, diffToSend, sizeof(r32)*4);

        vkCmdPushConstants(*cmdBuf, pipelineDescr-&amp;gt;pipelineLayout,
                           VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT,
                           0, 80, pushConstants);&lt;/PRE&gt;

&lt;DIV&gt;Program received signal SIGBUS, Bus error.&lt;/DIV&gt;

&lt;DIV&gt;anv_state_stream_alloc (stream=stream@entry=0x55559dbf9dd8, size=64, alignment=alignment@entry=32) at vulkan/anv_allocator.c:913&lt;/DIV&gt;

&lt;DIV&gt;913&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; VG_NOACCESS_WRITE(&amp;amp;sb-&amp;gt;block, stream-&amp;gt;block);&lt;/DIV&gt;

&lt;P&gt;0&amp;nbsp; in anv_state_stream_alloc of vulkan/anv_allocator.c:913&lt;BR /&gt;
	1&amp;nbsp; in anv_cmd_buffer_alloc_dynamic_state of vulkan/anv_batch_chain.c:654&lt;BR /&gt;
	2&amp;nbsp; in anv_cmd_buffer_push_constants of vulkan/anv_cmd_buffer.c:729&lt;BR /&gt;
	3&amp;nbsp; in cmd_buffer_flush_push_constants of vulkan/genX_cmd_buffer.c:2420&lt;BR /&gt;
	4&amp;nbsp; in gen9_cmd_buffer_flush_state of vulkan/genX_cmd_buffer.c:2571&lt;BR /&gt;
	5&amp;nbsp; in gen9_CmdDrawIndexed of vulkan/genX_cmd_buffer.c:2709&lt;BR /&gt;
	6&amp;nbsp; in ?? of /usr/lib/libVkLayer_core_validation.so&lt;BR /&gt;
	7&amp;nbsp; in ?? of /usr/lib/libVkLayer_parameter_validation.so&lt;BR /&gt;
	8&amp;nbsp; in ?? of /usr/lib/libVkLayer_threading.so&lt;BR /&gt;
	9&amp;nbsp; in vkcmd_create_secondary_command_buffer of vkcmd.c:207&lt;BR /&gt;
	10 in vkcmd_create_secondary_command_buffer_for_inst of vkcmd.c:88&lt;BR /&gt;
	11 in scn_load_scene of scene.c:407&lt;BR /&gt;
	12 in create_scene of main.c:903&lt;BR /&gt;
	13 in main of main.c:583&lt;/P&gt;

&lt;P&gt;So I get no validation errors. This code works on nvidia card. This is probably a bug.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 12:03:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Developing-Games-on-Intel/Vulkan-Linux-Mesa-SIGBUS-Bus-error/m-p/1147986#M1577</guid>
      <dc:creator>Gonakhchian__Viaches</dc:creator>
      <dc:date>2018-03-14T12:03:00Z</dc:date>
    </item>
    <item>
      <title>For questions and issues with</title>
      <link>https://community.intel.com/t5/Developing-Games-on-Intel/Vulkan-Linux-Mesa-SIGBUS-Bus-error/m-p/1147987#M1578</link>
      <description>&lt;P style="margin:0in;font-family:Calibri;font-size:11.0pt"&gt;For questions and issues with the Mesa driver, your best options are:&lt;/P&gt;

&lt;UL style="margin-left:.375in;direction:ltr;unicode-bidi:embed;
 margin-top:0in;margin-bottom:0in" type="disc"&gt;
	&lt;LI style="margin-top:0;margin-bottom:0;vertical-align:middle"&gt;&lt;SPAN style="font-family:Calibri;font-size:11.0pt"&gt;File a bug in Mesa's public bug tracker: &lt;/SPAN&gt;&lt;A href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa"&gt;&lt;SPAN style="font-family:Calibri;font-size:11.0pt"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa" target="_blank"&gt;https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&lt;/A&gt;&lt;SPAN style="font-family:Calibri;font-size:11.0pt"&gt; . In the component field, select Drivers/DRI./i965.&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI style="margin-top:0;margin-bottom:0;vertical-align:middle"&gt;&lt;SPAN style="font-family:Calibri;font-size:11.0pt"&gt;Send a message to Mesa's development mailing list &lt;/SPAN&gt;&lt;A href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev"&gt;&lt;SPAN style="font-family:Calibri;font-size:11.0pt"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank"&gt;http://lists.freedesktop.org/mailman/listinfo/mesa-dev&lt;/A&gt;&lt;SPAN style="font-family:Calibri;font-size:11.0pt"&gt; .&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI style="margin-top:0;margin-bottom:0;vertical-align:middle"&gt;&lt;SPAN style="font-family:Calibri;font-size:11.0pt"&gt;Most of the Intel Mesa developers are on IRC in &lt;/SPAN&gt;&lt;A href="irc://irc.freenode.net/#intel-gfx"&gt;&lt;SPAN style="font-family:Calibri;font-size:11.0pt"&gt;irc://irc.freenode.net/#intel-gfx&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-family:Calibri;font-size:11.0pt"&gt; or &lt;/SPAN&gt;&lt;A href="irc://irc.freenode.net/#dri-devel"&gt;&lt;SPAN style="font-family:Calibri;
     font-size:11.0pt"&gt;irc://irc.freenode.net/#dri-devel&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-family:Calibri;font-size:11.0pt"&gt;. People there are very helpful.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P style="margin:0in;font-family:Calibri;font-size:11.0pt"&gt;I suggest that you open a Bugzilla ticket with the information in this post. The team will probably then ask you a lot of clarifying questions (OS? gpu pci id? Mesa version? etc etc).&lt;/P&gt;

&lt;P style="margin:0in;font-family:Calibri;font-size:11.0pt"&gt;Also, it's often helpful to directly contact the owner of the Mesa package for your Linux distribution. Sometimes the package owner is very familiar with frequent bugs that are specific to that distribution. On RPM based distros, such as Fedora, you can find the packager by examining the package's changelog with this command: `rpm -q --changelog mesa-libGL`. On Debian based distros, such as Ubuntu, I think the apt-cache command gives you the needed info.&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 20:21:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Developing-Games-on-Intel/Vulkan-Linux-Mesa-SIGBUS-Bus-error/m-p/1147987#M1578</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2018-05-18T20:21:04Z</dc:date>
    </item>
  </channel>
</rss>

