From owner-freebsd-x11@freebsd.org Thu Mar 9 18:13:55 2017 Return-Path: <owner-freebsd-x11@freebsd.org> Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 80267D05EC7 for <freebsd-x11@mailman.ysv.freebsd.org>; Thu, 9 Mar 2017 18:13:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 68D2510E4 for <freebsd-x11@freebsd.org>; Thu, 9 Mar 2017 18:13:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 681FCD05EC6; Thu, 9 Mar 2017 18:13:55 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67973D05EC5 for <x11@mailman.ysv.freebsd.org>; Thu, 9 Mar 2017 18:13:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 561D210E3 for <x11@FreeBSD.org>; Thu, 9 Mar 2017 18:13:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v29IDsek057271 for <x11@FreeBSD.org>; Thu, 9 Mar 2017 18:13:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 217664] OpenGL applications crash in brw_workaround_depthstencil_alignment() Date: Thu, 09 Mar 2017 18:13:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash, i915 X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: short_desc keywords bug_status flagtypes.name assigned_to Message-ID: <bug-217664-7141-myzAwGJtrc@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-217664-7141@https.bugs.freebsd.org/bugzilla/> References: <bug-217664-7141@https.bugs.freebsd.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support <freebsd-x11.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-x11>, <mailto:freebsd-x11-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-x11/> List-Post: <mailto:freebsd-x11@freebsd.org> List-Help: <mailto:freebsd-x11-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-x11>, <mailto:freebsd-x11-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 09 Mar 2017 18:13:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217664 Jan Beich (mail not working) <jbeich@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[emulators/ppsspp] |OpenGL applications crash |Segmentation fault: Fails |in |to initialize OpenGL |brw_workaround_depthstencil | |_alignment() Keywords| |crash, i915 Status|New |Open Flags|maintainer-feedback?(jbeich |maintainer-feedback+ |@FreeBSD.org) | Assignee|jbeich@FreeBSD.org |x11@FreeBSD.org --- Comment #3 from Jan Beich (mail not working) <jbeich@FreeBSD.org> --- (In reply to Sergei Akhmatdinov from comment #2) > > Can you try attachment 180618 [details]? Can you try SNA in xorg.conf p= er intel(4x)? > > How do I go about applying the patch $ fetch -o /tmp/Mesa-17.0.1.diff 'https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180618' $ cd /usr/ports $ svn patch /tmp/Mesa-17.0.1.diff || patch -Efsp0 -i /tmp/Mesa-17.0.1.diff After that upgrade packages installed from the following ports graphics/dri graphics/gbm graphics/libEGL graphics/libglapi graphics/libglesv2 graphics/libosmesa > or applying SNA? If you don't have /etc/X11/xorg.conf and /usr/local/etc/X11/xorg.conf then create the later and put something like the following. Otherwise, adjust AccelMethod in existing Device but make sure Driver is "intel". Section "Device" Identifier "integrated_card" Driver "intel" Option "AccelMethod" "sna" EndSection > > Just in case, here is a backtrace for glxgears: > ------------------------- > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 805416000 (LWP 100169/glxgears)] > get_stencil_miptree (irb=3D0x8054650e0) at brw_misc_state.c:229 > 229 brw_misc_state.c: No such file or directory. > in brw_misc_state.c > Current language: auto; currently minimal > (gdb) bt > #0 get_stencil_miptree (irb=3D0x8054650e0) at brw_misc_state.c:229 > #1 0x0000000805bced4f in brw_workaround_depthstencil_alignment (brw=3D0x= 806c0d3e8, clear_mask=3D18) > at brw_misc_state.c:245 > #2 0x0000000805ba6e93 in brw_clear (ctx=3D0x806c0d3e8, mask=3D18) at brw= _clear.c:271 > #3 0x00000008056a4913 in _mesa_Clear (mask=3D16640) at clear.c:224 > #4 0x0000000800ddefcc in glClear (mask=3D16640) at glapi_mapi_tmp.h:3084 I can reproduce the crash on drm-next (i915kms, Skylake GT2, SNA), Mesa 17.= 0.1. DRI3 appears to be broken which affects modesetting that cannot work without it. For now make sure to use "intel" in xorg.conf and remove Option "DRI" "3" or set it to "2". --=20 You are receiving this mail because: You are the assignee for the bug.=