gravit & Firefox WebGL broken since 3dc2ccc1 "ac/surface: replace RADEON_SURF_OPTIMIZE_FOR_SPACE with !FORCE_SWIZZLE_MODE"
- GPU:
Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c1)
- Desktop manager and compositor: GNOME Wayland
3dc2ccc1 "ac/surface: replace RADEON_SURF_OPTIMIZE_FOR_SPACE with !FORCE_SWIZZLE_MODE" broke gravit & Firefox WebGL with the same assertion failure, see truncated backtrace from Firefox below.
The commit reverts cleanly on current Git master, which fixes the problem in both cases.
Core was generated by `/usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefs'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f38a380e580 (LWP 76755))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007f38a39c755b in __GI_abort () at abort.c:79
#2 0x00007f38a39c742f in __assert_fail_base
(fmt=0x7f38a3b2db48 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f388ba3e022 "!stmp->surface.is_linear", file=0x7f388ba3e0e8 "../src/gallium/drivers/radeonsi/si_blit.c", line=1078, function=<optimized out>)
at assert.c:92
#3 0x00007f38a39d6092 in __GI___assert_fail
(assertion=assertion@entry=0x7f388ba3e022 "!stmp->surface.is_linear", file=file@entry=0x7f388ba3e0e8 "../src/gallium/drivers/radeonsi/si_blit.c", line=line@entry=1078, function=function@entry=0x7f388ba3e350 <__PRETTY_FUNCTION__.40444> "do_hardware_msaa_resolve") at assert.c:101
#4 0x00007f388b7d417b in do_hardware_msaa_resolve (info=0x7f38902025b8, ctx=0x7f388fe7e000) at ../src/gallium/drivers/radeonsi/si_blit.c:1032
#5 si_blit (ctx=0x7f388fe7e000, info=0x7f38902025b8) at ../src/gallium/drivers/radeonsi/si_blit.c:1102
#6 0x00007f388b8bc7a0 in tc_call_blit (pipe=<optimized out>, payload=0x7f38902025b8) at ../src/gallium/auxiliary/util/u_threaded_context.c:2230
#7 0x00007f388b8b9daf in tc_batch_execute (job=0x7f3890202590, thread_index=<optimized out>) at ../src/gallium/auxiliary/util/u_threaded_context.c:96
#8 0x00007f388b8bb021 in _tc_sync (tc=tc@entry=0x7f3890202000, func=<optimized out>, info=<optimized out>) at ../src/gallium/auxiliary/util/u_threaded_context.c:209
#9 0x00007f388b8bb8d8 in tc_flush (_pipe=0x7f3890202000, fence=0x7f387c05fea8, flags=4) at ../src/gallium/auxiliary/util/u_threaded_context.c:2071
#10 0x00007f388af6f4ae in st_context_flush (stctxi=0x7f388feea000, flags=8, fence=0x7f387c05fea8, before_flush_cb=0x0, args=0x0) at ../src/mesa/state_tracker/st_manager.c:674
#11 0x00007f388af61c65 in dri2_create_fence_fd (_ctx=0x7f38901e6100, fd=-1) at ../src/gallium/state_trackers/dri/dri_helpers.c:120
#12 0x00007f388c1d1767 in dri2_create_sync (drv=<optimized out>, disp=0x7f38962dd800, type=12612, attrib_list=0x0) at ../src/egl/drivers/dri2/egl_dri2.c:3392
#13 0x00007f388c1c8e68 in _eglCreateSync (disp=disp@entry=0x7f38962dd800, type=type@entry=12612, attrib_list=0x0, orig_is_EGLAttrib=orig_is_EGLAttrib@entry=0, invalid_type_error=invalid_type_error@entry=12292)
at ../src/egl/main/eglapi.c:1879
#14 0x00007f388c1c9229 in eglCreateSyncKHR (dpy=<optimized out>, type=12612, int_list=<optimized out>) at ../src/egl/main/eglapi.c:1904
/cc @mareko