https://bugs.freedesktop.org/show_bug.cgi?id=93737
Bug ID: 93737 Summary: egl segfault since gallium/radeon: implement PIPE_CAP_INVALIDATE_BUFFER Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: adf.lists@gmail.com QA Contact: dri-devel@lists.freedesktop.org
R9285 first noticed trying to set up wayland/weston, bisected with eglgears_x11.
Since -
commit 321140d563730b210e6390c5b73c09fdcf9649af Author: Nicolai Hähnle nicolai.haehnle@amd.com Date: Thu Jan 14 09:41:04 2016 -0500
gallium/radeon: implement PIPE_CAP_INVALIDATE_BUFFER
I get segfaults trying to run egl.
bt from gears
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff239fb23 in r600_do_invalidate_resource (rctx=0x692b30, rbuffer=0x0) at r600_buffer_common.c:219 219 if (rctx->ws->buffer_is_user_ptr(rbuffer->buf)) (gdb) bt #0 0x00007ffff239fb23 in r600_do_invalidate_resource (rctx=0x692b30, rbuffer=0x0) at r600_buffer_common.c:219 #1 0x00007ffff2210dd2 in dri_flush (cPriv=<optimized out>, dPriv=<optimized out>, flags=5, reason=<optimized out>) at dri_drawable.c:496 #2 0x00007ffff645ddb8 in dri2_x11_swap_buffers_msc (msc=0, divisor=0, remainder=0, drv=<optimized out>, draw=0x6f9160, disp=<optimized out>) at drivers/dri2/platform_x11.c:837 #3 dri2_x11_swap_buffers (drv=<optimized out>, disp=<optimized out>, draw=0x6f9160) at drivers/dri2/platform_x11.c:873 #4 0x00007ffff6453d76 in eglSwapBuffers (dpy=0x62af30, surface=<optimized out>) at main/eglapi.c:1010 #5 0x0000000000403a71 in _eglutNativeEventLoop () at eglut_x11.c:249 #6 0x000000000040328b in eglutMainLoop () at eglut.c:272 #7 0x0000000000401d16 in main (argc=1, argv=0x7fffffffe108) at eglgears.c:298
https://bugs.freedesktop.org/show_bug.cgi?id=93737
--- Comment #1 from Nicolai Hähnle nhaehnle@gmail.com --- Sorry for the regression. I believe Michel already has a fix for this, see https://patchwork.freedesktop.org/patch/70592/
https://bugs.freedesktop.org/show_bug.cgi?id=93737
--- Comment #2 from Nicolai Hähnle nhaehnle@gmail.com --- You may also need this one: https://patchwork.freedesktop.org/patch/70593/
https://bugs.freedesktop.org/show_bug.cgi?id=93737
--- Comment #3 from Andy Furniss adf.lists@gmail.com --- Thanks, they do fix it for me.
I'll close when they are in.
https://bugs.freedesktop.org/show_bug.cgi?id=93737
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Michel Dänzer michel@daenzer.net --- Module: Mesa Branch: master Commit: 0491dd1deb46ca77545322c53e90f86ae244cdae URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0491dd1deb46ca77545322c53e9...
Author: Michel Dänzer michel.daenzer@amd.com Date: Fri Jan 15 15:46:31 2016 +0900
st/dri: Don't call invalidate_resource for NULL depth/stencil buffers
dri-devel@lists.freedesktop.org