Game "Tomb Raider" crash on startup when using non-Ultimate quality settings
A native 32-big game "Tomb Raider" ( https://store.steampowered.com/app/203160/Tomb_Raider/ ) normally starts fine for me and show the menu, and 3D scene there.
Setting the quality level to "Low", "Normal", "High" or "Ultra" in Options > Graphics, and then restarting, however causes it to crash early on startup next time. (If needed use non-zink first to set the settings).
I used 1920x1200, windowed (non-fullscreen), vsync off, motion blur off.
zink-wip @ 93a53dbe (debug build)
AMD Radeon R9 Fury X (FIJI, GFX8)
Thread 76 "OpenGL dispatch" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x6e3ffb40 (LWP 286002)]
0xab83be8b in zink_end_batch (ctx=0xd071488, batch=0xd0716d4) at ../../src/gallium/drivers/zink/zink_batch.c:392
392 assert(!(*res)->obj->offset);
(gdb) bt
#0 0xab83be8b in zink_end_batch (ctx=0xd071488, batch=0xd0716d4) at ../../src/gallium/drivers/zink/zink_batch.c:392
#1 0xab80e086 in flush_batch (ctx=ctx@entry=0xd071488, sync=sync@entry=true, eof=eof@entry=false) at ../../src/gallium/drivers/zink/zink_context.c:1670
#2 0xab80fc15 in zink_flush (pctx=0xd071488, pfence=0x326808e8, flags=0) at ../../src/gallium/drivers/zink/zink_context.c:2278
#3 0xab44154c in tc_flush (_pipe=<optimized out>, fence=<optimized out>, flags=<optimized out>) at ../../src/gallium/auxiliary/util/u_threaded_context.c:2322
#4 0xaaef0223 in st_fence_sync (ctx=0xd83ae10, obj=0x326808d0, condition=37143, flags=0) at ../../src/mesa/state_tracker/st_cb_syncobj.c:79
#5 0xab0419f2 in fence_sync (ctx=0xd83ae10, condition=condition@entry=37143, flags=flags@entry=0) at ../../src/mesa/main/syncobj.c:293
#6 0xab042000 in _mesa_FenceSync (condition=37143, flags=0) at ../../src/mesa/main/syncobj.c:331
#7 0x095b993b in ()
#8 0x095cdf24 in ()
#9 0x09634df1 in std::thread::_Impl<std::_Bind_simple<std::_Mem_fn<void (FeralThreadedGL::CGLThread::*)()> (FeralThreadedGL::CGLThread*)> >::_M_run() ()
#10 0x09a5bcce in execute_native_thread_routine ()
#11 0xf62ce0b4 in start_thread () at /lib/i386-linux-gnu/libpthread.so.0
#12 0xf0a6c296 in clone () at /lib/i386-linux-gnu/libc.so.6
(gdb) print res
$1 = (struct zink_resource **) 0x66ae004c
(gdb) print *res
$2 = (struct zink_resource *) 0x6848a700
(gdb) print *res->obj
Cannot access memory at address 0x0
The games starts fine when using "Ultimat" quality preset.