temp_comp_access::get_required_live_range: enclosing_scope_first_write is NULL
Submitted by Alex Xu (Hello71)
Assigned to mes..@..op.org
Link to original bug (#109064)
Description
Created attachment 142814 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).
Attachment 142814, "FS_bb6bfb3018b248ae9b31f50f6cc3c1401308f621.glsl":
FS_bb6bfb3018b248ae9b31f50f6cc3c1401308f621.glsl
Version: 18.3