gnome-shell overview mode crash in recent mesa
Seeing this both w/ 19.3-rc in rawhide, and master. On freedreno/a6xx but this looks like something that at least other gallium drivers should hit:
gnome-shell: ../src/compiler/nir/nir.h:2158: nir_src_comp_as_uint: Assertion `nir_src_is_const(src)' failed.
Thread 1 "gnome-shell" received signal SIGABRT, Aborted.
0x0000ffffb14a1070 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x0000ffffb14a1070 in raise () from /lib64/libc.so.6
#1 0x0000ffffb148dd28 in abort () from /lib64/libc.so.6
#2 0x0000ffffb149a64c in __assert_fail_base () from /lib64/libc.so.6
#3 0x0000ffffb149a6b4 in __assert_fail () from /lib64/libc.so.6
#4 0x0000ffff9974716c in nir_src_comp_as_uint (src=..., comp=0) at ../src/compiler/nir/nir.h:2158
#5 0x0000ffff99747280 in nir_src_as_uint (src=...) at ../src/compiler/nir/nir.h:2158
#6 0x0000ffff99747b34 in get_io_offset (b=0xffffeeb43880, deref=0xaaaaee8d8640, var=0xaaaaee8d6830, element_index=0xffffeeb4379c, xfb_offset=0xffffeeb43798, vertex_index=0xffffeeb437a0) at ../src/compiler/nir/nir_lower_io_arrays_to_elements.c:59
#7 0x0000ffff99747e74 in lower_array (b=0xffffeeb43880, intr=0xaaaaee8c0d00, var=0xaaaaee8d6830, varyings=0xaaaaee8dbf50) at ../src/compiler/nir/nir_lower_io_arrays_to_elements.c:124
#8 0x0000ffff997488c4 in lower_io_arrays_to_elements (shader=0xaaaaee8b2570, mask=nir_var_shader_in, indirects=0xffffeeb43910, varyings=0xaaaaee8dbf50, after_cross_stage_opts=true) at ../src/compiler/nir/nir_lower_io_arrays_to_elements.c:334
#9 0x0000ffff997489fc in nir_lower_io_arrays_to_elements_no_indirects (shader=0xaaaaee8b2570, outputs_only=false) at ../src/compiler/nir/nir_lower_io_arrays_to_elements.c:358
#10 0x0000ffff990fb5a4 in st_finalize_nir_before_variants (nir=0xaaaaee8b2570) at ../src/mesa/state_tracker/st_program.c:313
#11 0x0000ffff99122eac in st_glsl_to_nir_post_opts (st=0xaaaaeba2b480, prog=0xaaaaee88f3d0, shader_program=0xaaaaee7d45c0) at ../src/mesa/state_tracker/st_glsl_to_nir.cpp:503
#12 0x0000ffff99124928 in st_link_nir (ctx=0xaaaaeba191e0, shader_program=0xaaaaee7d45c0) at ../src/mesa/state_tracker/st_glsl_to_nir.cpp:774
#13 0x0000ffff9911f510 in st_link_shader (ctx=0xaaaaeba191e0, prog=0xaaaaee7d45c0) at ../src/mesa/state_tracker/st_glsl_to_ir.cpp:173
#14 0x0000ffff9917b134 in _mesa_glsl_link_shader (ctx=0xaaaaeba191e0, prog=0xaaaaee7d45c0) at ../src/mesa/program/ir_to_mesa.cpp:3186
#15 0x0000ffff992e3e84 in link_program (no_error=false, shProg=0xaaaaee7d45c0, ctx=0xaaaaeba191e0) at ../src/mesa/main/shaderapi.c:1287
#16 link_program_error (ctx=0xaaaaeba191e0, shProg=0xaaaaee7d45c0) at ../src/mesa/main/shaderapi.c:1386
#17 0x0000ffff992e5834 in _mesa_LinkProgram (programObj=11) at ../src/mesa/main/shaderapi.c:1878
#18 0x0000ffffb10e43dc in _cogl_pipeline_progend_glsl_end () from /usr/lib64/mutter-6/libmutter-cogl-6.so.0
#19 0x0000ffffb10e0ee4 in _cogl_pipeline_flush_gl_state () from /usr/lib64/mutter-6/libmutter-cogl-6.so.0
#20 0x0000ffffb10de580 in _cogl_gl_flush_attributes_state () from /usr/lib64/mutter-6/libmutter-cogl-6.so.0
...
trigger by hitting the windows/meta key to pull up overview mode.