Os aplicativos OpenGL exibem mensagens de erro assustadoras depois que o Mesa reinstala

1

Depois de mexer com alguns PPAs na tentativa de atualizar os drivers do Mesa no Linux Mint 17.3 KDE no meu Lenovo Ideapad, consegui aparentemente trazer tudo de volta ao funcionamento. Agora, no entanto, sempre que tento executar um programa OpenGL, recebo uma saída assim:

$ glxgears
libGL error: pci id for fd 4: 8086:1916, driver (null)   
i965_dri.so does not support the 0x1916 PCI ID.
libGL error: failed to create dri screen
libGL error: failed to load driver: i965

e ao desistir, algo assim (ou um segfault incomum, com meus próprios projetos relacionados a allegro):

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
  after 13936 requests (13934 known processed) with 0 events remaining.

enquanto o programa, aparentemente, é executado normalmente. (Exceto que o glxgears não parece estar se limitando a 60fps, o que aconteceu antes).

Veja uma saída esperançosamente relevante:

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 07)
$ dpkg -l | grep mesa
ii  libegl1-mesa:amd64                          10.1.3-0ubuntu0.6                                 amd64        free implementation of the EGL API -- runtime  
ii  libegl1-mesa-dev                            10.1.3-0ubuntu0.6                                 amd64        free implementation of the EGL API -- development files
ii  libegl1-mesa-drivers:amd64                  10.1.3-0ubuntu0.6                                 amd64        free implementation of the EGL API -- hardware drivers
rc  libegl1-mesa-lts-vivid:amd64                10.5.9-2ubuntu1~trusty2                           amd64        free implementation of the EGL API -- runtime
ii  libgl1-mesa-dev                             10.1.3-0ubuntu0.6                                 amd64        free implementation of the OpenGL API -- GLX development files
ii  libgl1-mesa-dri:amd64                       10.1.3-0ubuntu0.6                                 amd64        free implementation of the OpenGL API -- DRI modules
rc  libgl1-mesa-dri-lts-vivid:amd64             10.5.9-2ubuntu1~trusty2                           amd64        free implementation of the OpenGL API -- DRI modules
rc  libgl1-mesa-dri-lts-vivid:i386              10.5.9-2ubuntu1~trusty2                           i386         free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-glx:amd64                       10.1.3-0ubuntu0.6                                 amd64        free implementation of the OpenGL API -- GLX runtime
ii  libgl1-mesa-glx:i386                        10.1.3-0ubuntu0.6                                 i386         free implementation of the OpenGL API -- GLX runtime
rc  libgl1-mesa-glx-lts-vivid:amd64             10.5.9-2ubuntu1~trusty2                           amd64        free implementation of the OpenGL API -- GLX runtime
rc  libgl1-mesa-glx-lts-vivid:i386              10.5.9-2ubuntu1~trusty2                           i386         free implementation of the OpenGL API -- GLX runtime
ii  libglapi-mesa:amd64                         10.1.3-0ubuntu0.6                                 amd64        free implementation of the GL API -- shared library
ii  libglapi-mesa:i386                          10.1.3-0ubuntu0.6                                 i386         free implementation of the GL API -- shared library
rc  libglapi-mesa-lts-vivid:amd64               10.5.9-2ubuntu1~trusty2                           amd64        free implementation of the GL API -- shared library
rc  libglapi-mesa-lts-vivid:i386                10.5.9-2ubuntu1~trusty2                           i386         free implementation of the GL API -- shared library
rc  libgles1-mesa-lts-vivid:amd64               10.5.9-2ubuntu1~trusty2                           amd64        free implementation of the OpenGL|ES 1.x API -- runtime
ii  libgles2-mesa:amd64                         10.1.3-0ubuntu0.6                                 amd64        free implementation of the OpenGL|ES 2.x API -- runtime
ii  libgles2-mesa-dev                           10.1.3-0ubuntu0.6                                 amd64        free implementation of the OpenGL|ES 2.x API -- development files
rc  libgles2-mesa-lts-vivid:amd64               10.5.9-2ubuntu1~trusty2                           amd64        free implementation of the OpenGL|ES 2.x API -- runtime
ii  libglu1-mesa:amd64                          9.0.0-2                                           amd64        Mesa OpenGL utility library (GLU)
ii  libglu1-mesa:i386                           9.0.0-2                                           i386         Mesa OpenGL utility library (GLU)
ii  libglu1-mesa-dev                            9.0.0-2                                           amd64        Mesa OpenGL utility library -- development files
ii  libmirclientplatform-mesa:amd64             0.1.8+14.04.20140411-0ubuntu1                     amd64        Display server for Ubuntu - client platform library for Mesa
ii  libopenvg1-mesa:amd64                       10.1.3-0ubuntu0.6                                 amd64        free implementation of the OpenVG API -- runtime
ii  libwayland-egl1-mesa:amd64                  10.1.3-0ubuntu0.6                                 amd64        implementation of the Wayland EGL platform -- runtime
rc  libwayland-egl1-mesa-lts-vivid:amd64        10.5.9-2ubuntu1~trusty2                           amd64        implementation of the Wayland EGL platform -- runtime
ii  mesa-common-dev                             10.1.3-0ubuntu0.6                                 amd64        Developer documentation for Mesa
ii  mesa-utils                                  8.1.0-2                                           amd64        Miscellaneous Mesa GL utilities

EDIT: lspci -v revela que o "driver do kernel em uso" é "i915_bpo". Isso deveria ser o i965?

EDIT: aqui está uma saída glxinfo limpa:

name of display: :0
libGL error: pci id for fd 4: 8086:1916, driver (null)
i965_dri.so does not support the 0x1916 PCI ID.
libGL error: failed to create dri screen
libGL error: failed to load driver: i965
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
...
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
...
GLX version: 1.4
GLX extensions: 
...
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)
OpenGL version string: 2.1 Mesa 10.1.3
OpenGL shading language version string: 1.30
OpenGL extensions:
...

EDIT: aqui está uma saída inxi formatada:

$ inxi -Gi
Graphics:  
Card: Intel Sky Lake Integrated Graphics
Display Server: X.Org 1.15.1 drivers: intel (unloaded: fbdev,vesa)
Resolution: [email protected]
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits) 
GLX Version: 2.1 Mesa 10.1.3

EDIT: saída mais relevante

$ lsmod | grep 'i9' 
i915_bpo             1138688  3 
intel_ips              20480  1 i915_bpo
i2c_algo_bit           16384  1 i915_bpo
drm_kms_helper        126976  1 i915_bpo
drm                   344064  4 i915_bpo,drm_kms_helper
video                  20480  1 i915_bpo

$ modinfo i915_bpo
filename:       /lib/modules/3.19.0-32-generic/kernel/ubuntu/i915/i915_bpo.ko
license:        GPL and additional rights
description:    Intel Graphics
author:         Intel Corporation
author:         Tungsten Graphics, Inc.
firmware:       i915/skl_dmc_ver1.bin
srcversion:     55E14C24236445DE1BF5F67

EDIT: Praticamente todos os aplicativos relacionados ao GL têm se comportado mal de alguma forma ou de outra; GIMP, especialmente. Estes definitivamente não são os drivers que eu tive anteriormente. O ppa-purge também foi inútil, embora eu tenha excluído manualmente os arquivos ppa.

    
por Charles Diploma 29.10.2017 / 19:12

0 respostas