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@lists.freedesktop.org
          Reporter: xavi...@gmail.com
                CC: airl...@freedesktop.org, chadvers...@chromium.org,
                    dan...@fooishbar.org, ja...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to