Bug 109064 - temp_comp_access::get_required_live_range: enclosing_scope_first_write is NULL
Summary: temp_comp_access::get_required_live_range: enclosing_scope_first_write is NULL
Status: NEW
Alias: None
Product: Mesa
Classification: Unclassified
Component: glsl-compiler (show other bugs)
Version: 18.3
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-14 22:12 UTC by Alex Xu (Hello71)
Modified: 2019-02-15 17:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
FS_bb6bfb3018b248ae9b31f50f6cc3c1401308f621.glsl (8.75 KB, text/plain)
2018-12-14 22:12 UTC, Alex Xu (Hello71)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Xu (Hello71) 2018-12-14 22:12:01 UTC
Created attachment 142814 [details]
FS_bb6bfb3018b248ae9b31f50f6cc3c1401308f621.glsl

When loading a game in The Witcher 3, the game crashes.

#0  (anonymous namespace)::temp_comp_access::get_required_live_range (this=0x7f8f6d259928) at ../mesa-18.3.1/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp:936
        keep_for_full_loop = true
        enclosing_scope = 0x7f8ff7beb0c0
        enclosing_scope_first_read = 0x7f8ff7beb0c0
        enclosing_scope_first_write = <optimized out>
        conditional = <optimized out>
        keep_for_full_loop = <optimized out>
        enclosing_scope_first_read = <optimized out>
        enclosing_scope_first_write = <optimized out>
        conditional = <optimized out>
        enclosing_scope = <optimized out>

I used MESA_SHADER_DUMP_PATH to dump the shaders, and attached the last one in chronological order (I assume this is probably the one that crashed).
Comment 1 Alex Xu (Hello71) 2019-02-15 17:04:50 UTC
Still broken in 19.0.0_rc4.

#0  0x00007f0322468821 in get_temp_registers_required_live_ranges(void*, exec_list*, int, register_live_range*, int, array_live_range*)
    () from /usr/lib64/dri/r600_dri.so
#1  0x00007f032245d555 in glsl_to_tgsi_visitor::merge_registers() () from /usr/lib64/dri/r600_dri.so
#2  0x00007f032245ebb4 in get_mesa_program_tgsi(gl_context*, gl_shader_program*, gl_linked_shader*) () from /usr/lib64/dri/r600_dri.so
#3  0x00007f032245f063 in st_link_shader () from /usr/lib64/dri/r600_dri.so
#4  0x00007f03223fb189 in _mesa_glsl_link_shader () from /usr/lib64/dri/r600_dri.so
#5  0x00007f03222d2dc8 in link_program_error.part () from /usr/lib64/dri/r600_dri.so
#6  0x00007f0d256cd728 in set_glsl_shader_program.isra ()
   from /usr/lib/wine-any-4.1/bin/../../../lib64/wine-any-4.1/wine/wined3d.dll.so
#7  0x00007f0d256cf1f4 in shader_glsl_select () from /usr/lib/wine-any-4.1/bin/../../../lib64/wine-any-4.1/wine/wined3d.dll.so
#8  0x00007f0d25688649 in draw_primitive () from /usr/lib/wine-any-4.1/bin/../../../lib64/wine-any-4.1/wine/wined3d.dll.so
#9  0x00007f0d2568f03f in wined3d_cs_exec_draw () from /usr/lib/wine-any-4.1/bin/../../../lib64/wine-any-4.1/wine/wined3d.dll.so
#10 0x00007f0d2568fb4c in wined3d_cs_run () from /usr/lib/wine-any-4.1/bin/../../../lib64/wine-any-4.1/wine/wined3d.dll.so
#11 0x000000007bcc2dd2 in call_thread_func () from /usr/lib/wine-any-4.1/bin/../../../lib64/wine-any-4.1/wine/ntdll.dll.so


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.