[Mesa-dev] [Bug 106504] vulkan SPIR-V parsing failed at ../src/compiler/spirv/vtn_cfg.c:381

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun May 13 20:36:53 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106504

            Bug ID: 106504
           Summary: vulkan SPIR-V parsing failed at
                    ../src/compiler/spirv/vtn_cfg.c:381
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Vulkan/Common
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: xavierb at gmail.com
                CC: airlied at freedesktop.org, chadversary at chromium.org,
                    daniel at fooishbar.org, jason at jlekstrand.net

Created attachment 139548
  --> https://bugs.freedesktop.org/attachment.cgi?id=139548&action=edit
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 
https://github.com/KhronosGroup/SPIRV-Tools/issues/1456 
"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)."

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180513/e17bb13e/attachment.html>


More information about the mesa-dev mailing list