<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 - vulkan SPIR-V parsing failed at ../src/compiler/spirv/vtn_cfg.c:381"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106504">106504</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>vulkan SPIR-V parsing failed at ../src/compiler/spirv/vtn_cfg.c:381
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </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/Common
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>xavierb@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>airlied@freedesktop.org, chadversary@chromium.org, daniel@fooishbar.org, jason@jlekstrand.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=139548" name="attach_139548" title="vkrunner file">attachment 139548</a> <a href="attachment.cgi?id=139548&action=edit" title="vkrunner file">[details]</a></span>
vkrunner file

hello,

I get an error with both radv and intel

SPIR-V parsing FAILED:
    In file ../src/compiler/spirv/vtn_cfg.c:381
    block->node.link.next == NULL
    0 bytes into the SPIR-V binary


when using this hlsl shader (compiled with glslang):

float4 main(float4 fragCoord : SV_POSITION) : SV_Target0
{
        float4          Sum = 0;
        for (int i=0; i<2; i++) {
                for (int j=0; j<2; j++) {
                        Sum += fragCoord;
                }
        }
        return Sum / 4;
}

(the spirv source file is attached.)


This report is a follow-up to 
<a href="https://github.com/KhronosGroup/SPIRV-Tools/issues/1456">https://github.com/KhronosGroup/SPIRV-Tools/issues/1456</a> 
"The outer loop's continue block ends up as the same block as the inner loop's
continue block. I wonder if the Mesa compiler doesn't expect this (assuming
there are no other bugs)."</pre>
        </div>
      </p>


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

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