[Bug 100092] Assertion failed: size_log2 <= ANV_MAX_STATE_SIZE_LOG2 While compiling large compute shader

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 7 01:12:33 UTC 2017


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

            Bug ID: 100092
           Summary: Assertion failed: size_log2 <= ANV_MAX_STATE_SIZE_LOG2
                    While compiling large compute shader
           Product: Mesa
           Version: 13.0
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Vulkan/intel
          Assignee: intel-3d-bugs at lists.freedesktop.org
          Reporter: freiling at google.com
        QA Contact: intel-3d-bugs at lists.freedesktop.org
                CC: jason at jlekstrand.net

Created attachment 130103
  --> https://bugs.freedesktop.org/attachment.cgi?id=130103&action=edit
Offending SPIR-V

Trying to compile a large vulkan compute shader (15Kb of SPIR-V) on Gen9 blows
up to ~150Kb binary, causing an assert in anv_allocator.c:637 because it is
larger than the maximum state size. 

The offending SPIR-V is attached and I will try to attach the GLSL that
generated it once the bug is created (I seem to only be able to attach on file
at creation time)

We are compiling the GLSL to SPIR-V using GLSLang, and the best modulator we
can find for the problem is to make "depths" on line 31 a shared array like
"roi" on line 28. This reduces the final binary size from 150 Kb to 7 Kb and
vastly reduces compile time.

Let us know if you have any questions.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170307/e486ca41/attachment.html>


More information about the intel-3d-bugs mailing list