Bug 34513 - Chromium неправильно определяет версию видеодрайвера Mesa amdgpu
Summary: Chromium неправильно определяет версию видеодрайвера Mesa amdgpu
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: chromium (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-06 14:08 MSK by mikhailnov
Modified: 2018-02-13 14:39 MSK (History)
3 users (show)

See Also:


Attachments
аппаратное ускорение отключено (202.80 KB, image/png)
2018-02-06 14:08 MSK, mikhailnov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mikhailnov 2018-02-06 14:08:51 MSK
Created attachment 7380 [details]
аппаратное ускорение отключено

chromium-64.0.3282.119-alt1.x86_64
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8400 / R3 Series] (amdgpu)
Mesa 17.3.3
GNOME + Xorg

При запуске Chromium на этой машине , согласно chrome://gpu, полностью отключено аппаратное ускорение. На Ubuntu 17.04, 17.10 такого нет, оно не отключено.

Смотрим исходники Хромиума: https://src.chromium.org/viewvc/chrome/trunk/src/gpu/config/software_rendering_list_json.cc#l68

{
67	      "id": 5,
68	      "description": "ATI/AMD cards with older drivers in Linux are crash-prone",
69	      "cr_bugs": [71381, 76428, 73910, 101225, 136240, 357314],
70	      "os": {
71	        "type": "linux"
72	      },
73	      "vendor_id": "0x1002",
74	      "exceptions": [
75	        {
76	          "driver_vendor": ".*AMD.*",
77	          "driver_version": {
78	            "op": ">=",
79	            "style": "lexical",
80	            "value": "8.98"
81	          }
82	        },
83	        {
84	          "driver_vendor": "Mesa",
85	          "driver_version": {
86	            "op": ">=",
87	            "value": "10.0.4"
88	          }
89	        }

Как видим, это правило, отключающее аппаратное ускорение, срабатывает на fglrx и старых Mesa. Почему оно на альте-сизифе сработало, не знаю. В chrome://flags включил #ignore-gpu-blacklist, аппаратное ускорение заработало.

Думаю, надо в СС добавить сборщиков Mesa.
Comment 1 mikhailnov 2018-02-06 14:11:39 MSK
$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: AMD KABINI (DRM 2.50.0 / 4.14.17-un-def-alt1, LLVM 4.0.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.3
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.3.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:

$ vainfo
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_0_40
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.40 (libva )
vainfo: Driver version: mesa gallium vaapi
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileNone                   :	VAEntrypointVideoProc
Comment 2 mikhailnov 2018-02-06 14:26:06 MSK
А, нет, Chrome 64 и на Ubuntu такое же поведение имеет.
Reported upstream: https://bugs.chromium.org/p/chromium/issues/detail?id=809419
Comment 3 mikhailnov 2018-02-13 14:39:01 MSK
Fixed upstream.