[Bug 104359] Mesa freezes in "vtn_cfg_walk_blocks" with Sacha Willems' hdr, parallaxmapping and specializationconstants Vulkan demos

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 21 12:57:41 UTC 2017


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

            Bug ID: 104359
           Summary: Mesa freezes in "vtn_cfg_walk_blocks" with Sacha
                    Willems' hdr, parallaxmapping and
                    specializationconstants Vulkan demos
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i965
          Assignee: intel-3d-bugs at lists.freedesktop.org
          Reporter: eero.t.tamminen at intel.com
        QA Contact: intel-3d-bugs at lists.freedesktop.org

Latest Mesa git version freezes at start of Sacha Willems' HDR,
parallaxmapping, and specializationconstants demos, which worked fine earlier. 
Mesa spends now all of its time in the "vtn_cfg_walk_blocks" function.

Gdb gives following backtrace:
--------------------------------
(gdb) bt
#0  0x00007f19e2eb1c7a in vtn_cfg_walk_blocks (b=b at entry=0x18fdaf0,
cf_list=cf_list at entry=0x19098c8, start=<optimized out>,
switch_case=switch_case at entry=0x0, 
    switch_break=switch_break at entry=0x0, loop_break=loop_break at entry=0x0,
loop_cont=0x0, end=0x0) at ../../../src/compiler/spirv/vtn_cfg.c:552
#1  0x00007f19e2eb54d4 in vtn_build_cfg (b=b at entry=0x18fdaf0,
words=words at entry=0x18fc4e4, end=end at entry=0x18fcdd4) at
../../../src/compiler/spirv/vtn_cfg.c:600
#2  0x00007f19e2ea8371 in spirv_to_nir (words=0x18fc4e4, words at entry=0x18fbf48,
word_count=931, spec=spec at entry=0x183d9f0, num_spec=num_spec at entry=1, 
    stage=stage at entry=MESA_SHADER_VERTEX, entry_point_name=<optimized out>,
options=0x7ffc34c10910, nir_options=0x7f19e2ef9000 <scalar_nir_options>)
    at ../../../src/compiler/spirv/spirv_to_nir.c:3746
#3  0x00007f19e2b03a55 in anv_shader_compile_to_nir (pipeline=0x18fcde0,
pipeline=0x18fcde0, spec_info=0x7ffc34c10a90, stage=MESA_SHADER_VERTEX, 
    entrypoint_name=0x18fcde0 "P\371\214\001", module=0x18fbf30,
mem_ctx=0x1840de0) at ../../../src/intel/vulkan/anv_pipeline.c:149
#4  anv_pipeline_compile (pipeline=pipeline at entry=0x18fcde0,
mem_ctx=mem_ctx at entry=0x1840de0, module=module at entry=0x18fbf30, 
    entrypoint=entrypoint at entry=0x4ab982 "main",
stage=stage at entry=MESA_SHADER_VERTEX, spec_info=spec_info at entry=0x7ffc34c14850,
prog_data=0x7ffc34c10a90, 
    map=0x7ffc34c109b0) at ../../../src/intel/vulkan/anv_pipeline.c:395

(gdb) info locals
case_block = 0x1994470
w = <optimized out>
break_block = 0x1994470
swtch = 0x1994500
branch_end = <optimized out>
is_default = <optimized out>
branch_type = <optimized out>
block = <optimized out>

(gdb) print *b
$1 = {nb = {cursor = {option = nir_cursor_before_block, {block = 0x1993ce0,
instr = 0x1993ce0}}, exact = false, shader = 0x0, impl = 0x0}, fail_jump = {{
      __jmpbuf = {4897154, 1860650571846527914, 26201568, 140721193552528,
26197832, 26197832, -1861620158216655958, -1737934244285240406}, 
      __mask_was_saved = 0, __saved_mask = {__val = {0 <repeats 16 times>}}}},
spirv = 0x18fbf48, shader = 0x190c5c0, options = 0x7ffc34c10910, block = 0x0, 
  spirv_offset = 0, file = 0x0, line = -1, col = -1, const_table = 0x0,
phi_table = 0x0, num_specializations = 1, specializations = 0x183d9f0, 
  value_id_bound = 144, values = 0x19ae230, entry_point_stage =
MESA_SHADER_VERTEX, entry_point_name = 0x4ab982 "main", entry_point =
0x19ae2d0, 
  origin_upper_left = false, pixel_center_integer = false, func = 0x0,
functions = {head_sentinel = {next = 0x19098a0, prev = 0x0}, tail_sentinel =
{next = 0x0, 
      prev = 0x19098a0}}, func_param_idx = 0, has_loop_continue = false}
--------------------------------

-- 
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/20171221/cb9cbbac/attachment-0001.html>


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