SW:Ubuntu Asahi Mesa - asfdrwe/asahi-linux-translations GitHub Wiki

2023/1/10時点のSW:Ubuntu Asahi Mesaの翻訳

訳注:Asahi Linuxブログへのリンクは対応する日本語訳へ変更


アクセラレーテッドグラフィックス用です。Ubuntu 22.10 Asahi on M1 Airでテストしました。

https://github.com/asfdrwe/asahi-linux-translations/blob/main/GPU202212.md

注:PPAが存在しているかすでにここにインストールしている場合、多分これは不要?

1) /etc/apt/sources.list

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ kinetic multiverse main universe restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ kinetic multiverse main universe restricted
deb http://ports.ubuntu.com/ubuntu-ports/ kinetic-security main multiverse universe restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ kinetic-security main multiverse universe restricted
deb http://ports.ubuntu.com/ubuntu-ports/ kinetic-updates main multiverse universe restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ kinetic-updates main multiverse universe restricted
deb http://ports.ubuntu.com/ubuntu-ports/ kinetic-backports main multiverse universe restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ kinetic-backports main multiverse universe restricted

2) 依存関係をインストール

Mesaコードは from https://gitlab.freedesktop.org/asahi/mesa/-/tree/asahi/oq からです。

sudo apt update

sudo apt -y build-dep mesa

sudo apt -y install linux-edge-asahi build-essential wget meson ninja-build mesa-utils

wget https://gitlab.freedesktop.org/asahi/mesa/-/archive/asahi/oq/mesa-asahi-oq.tar.gz

tar -xzvf mesa-asahi-oq.tar.gz

cd mesa-asahi-oq

mkdir build

3) ビルド

オプションなしの meson https://docs.mesa3d.org/meson.html でのビルドは https://github.com/AsahiLinux/PKGBUILDs/blob/main/mesa-asahi-edge/PKGBUILD で言及されています。これらのオプション付きだとエラーを起こすからです。

meson build/

ninja -C build/

ninja -C build/ install

4) リブート

sudo reboot

5) glxgearsでのテスト

$ glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
302 frames in 5.0 seconds = 60.372 FPS

6) glxinfo -Bでのテスト

$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Asahi (0xffffffff)
    Device: Apple M1 (G13G B1) (0xffffffff)
    Version: 23.0.0
    Accelerated: yes
    Video memory: 15702MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL vendor string: Asahi
OpenGL renderer string: Apple M1 (G13G B1)
OpenGL version string: 2.1 Mesa 23.0.0-devel
OpenGL shading language version string: 1.20

OpenGL ES profile version string: OpenGL ES 2.0 Mesa 23.0.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

7) SuperTuxKartでのテスト

音声は USB-C hub → USB3 ポート → USB ワイヤレスドングル -> Jabra Link 380 ヘッドセットを使用しています。

https://supertuxkart.net/Download / Linux Show / Full game (.tar.xz) ARM 64-bit

./run-game.sh

Options / Interface / [X] Display FPS