[Bug 217664] OpenGL applications crash in brw_workaround_depthstencil_alignment()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Mar 9 18:13:55 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217664

Jan Beich (mail not working) <jbeich at 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 at FreeBSD.org          |x11 at FreeBSD.org

--- Comment #3 from Jan Beich (mail not working) <jbeich at FreeBSD.org> ---
(In reply to Sergei Akhmatdinov from comment #2)
> > Can you try attachment 180618 [details]? Can you try SNA in xorg.conf per 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=180618'
$ 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=0x8054650e0) 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=0x8054650e0) at brw_misc_state.c:229
> #1  0x0000000805bced4f in brw_workaround_depthstencil_alignment (brw=0x806c0d3e8, clear_mask=18)
>     at brw_misc_state.c:245
> #2  0x0000000805ba6e93 in brw_clear (ctx=0x806c0d3e8, mask=18) at brw_clear.c:271
> #3  0x00000008056a4913 in _mesa_Clear (mask=16640) at clear.c:224
> #4  0x0000000800ddefcc in glClear (mask=16640) 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".

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list