Add Adreno 304 (FD304) GPU acceleration, Xlibre Glamor/DRI3/GLX offload, and OpenGL demos
This commit is contained in:
1 parent
4aa087f372
commit
3b9f2ee28d
57 files changed
+2279
-25
No files matched your search
@@ -3,7 +3,7 @@
|
||||
## 1. Project overview
|
||||
**Bananarchy** is a keypad-first Linux distribution (`armv7` / Alpine `edge` / postmarketOS `v26.06` hardfork) for **Qualcomm MSM8905 (Snapdragon 205)** and **MSM8909 (Snapdragon 210)** smart feature phones with **240x320 QVGA non-touch SPI displays** and **12-key T9 keypads** (`nokia-argon`, `nokia-beatles`, `nokia-tough`, `nokia-sparkler`, `nokia-leo`).
|
||||
|
||||
It uses a pure **X11 (`Xlibre` + `sxmo-de-dwm`)** stack (no Wayland) optimized for `< 2 ms` UI wakeup latency and `< 95 MB` idle RAM on 512 MB devices.
|
||||
It uses a pure **X11 (`Xlibre` + `sxmo-de-dwm`)** stack (no Wayland) with **Adreno 304 (`FD304`) Glamor + DRI3 + GLX GPU acceleration** over `panel-mipi-dbi` KMSRO, optimized for `< 2 ms` UI wakeup latency and `< 95 MB` idle RAM on 512 MB devices.
|
||||
|
||||
## 2. Repository layout
|
||||
- `src/sxmo-dwm/`: patched `dwm` window manager (`240x320` vertical `bstack` layout, 24px Pango status bar, desktop `"Menu"`/`"Names"` softkey bar, C-level `evdev` `SW_LID` slider and universal key wake handling, `*` + `#` screenshot chord via `bananarchy-screenshot`, live `.Xresources` reload, and `.so` plugin loader via `dwm_plugin.h`).
|
||||
@@ -29,8 +29,8 @@ All cross-compilation scripts run inside rootless Docker (`alpine:3.24` `armv7`
|
||||
- `./scripts/build-dmenu.sh` — rebuilds only `dmenu.so`, `stest`, `dmenu_path`, and `dmenu_run`.
|
||||
- `./scripts/build-games.sh` — builds standalone X11 games and emulators in `src/games/` (`snake`, `tetris`, `gambatte` / `gbemu`).
|
||||
- `./scripts/build-fcitx5-t9.sh` — builds `src/fcitx5-t9` (`libt9.so` / `t9.so`).
|
||||
- `./scripts/build-kernel-audio.sh` — builds `6.12.1-msm8916` QDSP6 audio, torch LED, camera `.ko` modules, and device `.dtb` files.
|
||||
- `./scripts/build-xlibre.sh` — builds Xlibre `Xorg` and `libinput`/`fbdev` DDX drivers.
|
||||
- `./scripts/build-kernel-audio.sh` — builds `6.12.1-msm8916` Adreno 304 `drm/msm`, QDSP6 audio, torch LED, camera `.ko` modules, and device `.dtb` files.
|
||||
- `./scripts/build-xlibre.sh` — builds Xlibre `Xorg`, `libglamoregl.so`, `libglx.so`, and `modesetting`/`libinput`/`fbdev` DDX drivers.
|
||||
- `./scripts/build-bantam.sh` — fetches and cross-compiles the `bantam` AI agent.
|
||||
- `./scripts/generate-artwork.py` — regenerates wallpapers, splashes, and icons from `artwork/icon-large.png`.
|
||||
- `./scripts/version.sh [--print | target_rootfs]` — computes the date-based release version (`<year-letter><MM><DD>` with `2026 = a`) and substitutes `@BANANARCHY_VERSION@` in `etc/os-release`, `etc/issue`, and `etc/motd` (invoked automatically during overlay application and image builds).
|
||||
|
||||
@@ -12,8 +12,14 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
## Build `a1027` — codename `bonkers` (2026-10-27)
|
||||
|
||||
### New features and improvements
|
||||
- **Adreno 304 (`FD304`) 3D GPU hardware acceleration and Xlibre Glamor offload**:
|
||||
- Added full Qualcomm **Adreno 304 (`0x03000400`)** GPU and `qcom,msm8909-iommu` (`gfx3d_user` / `gfx3d_priv` context banks at `0x1f08000`) support to the `6.12.1-msm8916` kernel (`drm/msm` module and MSM8905/MSM8909 device trees across `nokia-argon`, `nokia-beatles`, `nokia-tough`, `nokia-sparkler`, and `nokia-leo`), configured for Adreno 304's `96 KB` (`SZ_64K + SZ_32K`) GMEM cache, `a300_pm4.fw` / `a300_pfp.fw` microcode, VBIF/ROQ/clock-gating registers, hard-reset recovery quirk, `OXILI_GDSC` power domain, and OPP frequency scaling up to `409.6 MHz`.
|
||||
- Enabled headless render-only `drm/msm` initialization (`card1` / `renderD128`) alongside the SPI `panel-mipi-dbi` display (`card0`) and enabled `FD304` (`chip_id = 0x030004ff`) in Mesa Freedreno (`libgallium`) for hardware-accelerated **OpenGL 3.1** and **OpenGL ES 3.0**.
|
||||
- Rebuilt **Xlibre** with **Glamor**, **GLX**, **XVideo**, and **DRI3** (`libglamoregl.so`, `libglx.so`, and `modesetting_drv.so` with `glamor.finish` synchronization before `drmModeDirtyFB` SPI transfers) and enabled `Option "AccelMethod" "glamor"` in `/etc/X11/xorg.conf.d/10-bananarchy-msm8909.conf`.
|
||||
- Preinstalled `glxinfo`, `eglinfo`, `glxgears`, `glteapot` (`teapot`), and `es2gears_x11` (`mesa-utils` and `mesa-demos`).
|
||||
- **Dual-SIM Dual Standby (DSDS) and outgoing SIM selection**:
|
||||
- Updated `msm-modem-uim-selection` to provision both physical SIM slots simultaneously (`primary-gw-provisioning` and `secondary-gw-provisioning`) with QMI `NAS` Dual-Standby Preference (`DualStandbyWithTuneAway`) and network registration across both subscriptions, plus `--swap-gw` support to swap which physical slot holds `primary-gw-provisioning` (4G/LTE/3G + Mobile Data) versus `secondary-gw-provisioning` (2G GSM DSDS standby).
|
||||
- Fixed SIM PIN startup prompting (`sxmo_sim_pin_prompt.sh`) so that when two SIM cards are inserted and only one requires PIN entry, only a single PIN prompt is shown (polling live `uim-get-card-status` per slot and deduplicating simultaneous `sxmo_modemmonitor.sh` / `bananarchy-x11-session.sh` invocations via `flock`).
|
||||
- Added an event-driven QMI `WMS` and `VOICE` QRTR listener (`dsds-daemon`, supervised by `sxmo_modemmonitor.sh`) so both SIM cards can receive incoming voice calls (with `q6voiced` `hw:0,4` audio routing) and SMS messages (single and multipart GSM-7 / UCS-2) simultaneously.
|
||||
- Added interactive `[1] SIM 1` / `[2] SIM 2` outgoing SIM selection prompts when two SIM cards are active across voice calls (`xcallscreen` / `sxmo_modemdial.sh`), SMS (`xsms` / `sxmo_modemsendsms.sh`), and USSD queries (`xdialer` / `msm-modem-uim-selection ussd`), plus live dual-SIM role badges (`[PRI 4G / DEFAULT]`, `[PRI 4G / DSDS]`, `[SEC 2G / DEFAULT]`, `[SEC 2G / DSDS]`), instant default SIM switching, and full Primary/Secondary GW (`4G/Data`) slot swapping in `xmodem`.
|
||||
- Synchronized incoming call ringtone and vibration lifecycle (`sxmo_hook_ring.sh`, `callscreen.so`, `sxmo_modem.sh`, and `dsds-daemon`) with `flock` single-instance locking, `0 dB` (`RX3 Digital Volume <= 84`) hardware volume capping, and immediate `sxmo_hook_ring.sh` / `pw-play` / `sxmo_vibrate` termination before audio teardown on remote hangup.
|
||||
|
||||
@@ -426,3 +426,25 @@ Both the rear loudspeaker (`Speaker`, with boosted `RX3 Digital Volume` for loud
|
||||
```bash
|
||||
mmcli -m any
|
||||
```
|
||||
|
||||
### 5.5 Adreno 304 GPU hardware acceleration and OpenGL / OpenGL ES demos
|
||||
|
||||
Bananarchy includes full kernel (`drm/msm` + `qcom-iommu` with `96 KB` GMEM, `a300_pfp.fw` / `a300_pm4.fw`, and up to `409.6 MHz` OPP scaling) and userspace (**Mesa Freedreno `FD304`**) hardware acceleration for the Qualcomm **Adreno 304 (`0x03000400`)** GPU across all supported MSM8905 and MSM8909 devices.
|
||||
|
||||
The **Xlibre** display server (`modesetting_drv.so`) uses **Glamor + DRI3 + GLX + KMSRO** to offload X11 rendering to the Adreno 304 GPU (`/dev/dri/card1` / `/dev/dri/renderD128`) and synchronize GMEM resolves before transferring damaged rectangles over DMA to the `panel-mipi-dbi` SPI display (`/dev/dri/card0`).
|
||||
|
||||
- **Query active OpenGL 3.1 / OpenGL ES 3.0 and EGL hardware renderer info**:
|
||||
```bash
|
||||
DISPLAY=:0 glxinfo -B
|
||||
DISPLAY=:0 eglinfo -B
|
||||
```
|
||||
- **Run 3D OpenGL and OpenGL ES hardware-accelerated demos on the `240x320` display**:
|
||||
```bash
|
||||
DISPLAY=:0 glxgears -info
|
||||
DISPLAY=:0 glteapot
|
||||
DISPLAY=:0 es2gears_x11
|
||||
```
|
||||
- **Inspect live Adreno 304 GPU hardware state, frequency, and ringbuffer fences**:
|
||||
```bash
|
||||
doas cat /sys/kernel/debug/dri/1/gpu
|
||||
```
|
||||
@@ -16,9 +16,9 @@
|
||||
## Key features
|
||||
|
||||
### System and hardware support
|
||||
- **Mainline Linux 6.12 kernel**: custom patches and out-of-tree drivers for Qualcomm QDSP6/Q6Voice audio routing, Dual-SIM modem control, the rear 2MP GalaxyCore `GC2395` / `GC2385` / `GC2365` camera (`/dev/video0`), the `SY7807` flashlight LED (`white:torch`), physical keypad/slider events, and clean PM8909 poweroff.
|
||||
- **Mainline Linux 6.12 kernel**: custom patches and out-of-tree drivers for Qualcomm **Adreno 304 (`FD304`, 96 KB GMEM)** 3D GPU acceleration (`drm/msm` + `qcom-iommu`), Qualcomm QDSP6/Q6Voice audio routing, Dual-SIM modem control, the rear 2MP GalaxyCore `GC2395` / `GC2385` / `GC2365` camera (`/dev/video0`), the `SY7807` flashlight LED (`white:torch`), physical keypad/slider events, and clean PM8909 poweroff.
|
||||
- **Alpine Linux Edge base**: full access to the Alpine package ecosystem with `< 95 MB` idle RAM usage on 512 MB devices and full local root access out of the box.
|
||||
- **Pure X11 graphical stack**: cross-compiled **Xlibre** (`X11Libre/xserver`) display server paired with a customized **Sxmo (`sxmo-de-dwm`)** window manager (`240x320` vertical stack layout, Conky desktop clock and system status widget, `< 2 ms` slider/key wake latency, and zero Wayland overhead).
|
||||
- **Pure X11 graphical stack with GPU acceleration**: cross-compiled **Xlibre** (`X11Libre/xserver`) display server offloading 2D/3D screen rendering to the **Adreno 304 GPU** via **Glamor, DRI3, GLX, and Mesa Freedreno (`FD304`, OpenGL 3.1 / OpenGL ES 3.0)** over `panel-mipi-dbi` KMSRO, paired with a customized **Sxmo (`sxmo-de-dwm`)** window manager (`240x320` vertical stack layout, Conky desktop clock and system status widget, `< 2 ms` slider/key wake latency, and zero Wayland overhead).
|
||||
|
||||
### Keypad-first user experience and native DWM plugins
|
||||
Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs a suite of preloaded C/C++ plugins inside DWM that sleep at 0% CPU and open in `< 2 ms`:
|
||||
@@ -34,7 +34,7 @@ Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs
|
||||
### Input, terminal, and developer tools
|
||||
- **6-mode `fcitx5-t9` keypad input**: press `#` to cycle between `abc`, `Abc`, `ABC`, `Sym` (all 32 ASCII punctuation symbols), `Ctl` (`Ctrl` sequences, arrows, `PageUp`/`PageDown`, `F1`–`F12`), and `123` numeric modes with a fixed bottom candidate bar.
|
||||
- **First-class Linux terminal (`st`)**: patched with HarfBuzz OpenType ligatures (`Fira Code` as the default system and terminal font), XIM T9 input, and live theme reloading.
|
||||
- **On-device development, scripting, and gaming**: preinstalled `gcc`/`g++`, `make`, `git`, GNU `coreutils`, GNU `bc`/`dc`, `mandoc`, `nano`, `ed`, `sqlite3`, `lua` (`5.5` and `5.4`), `yabasic` (with full `yabasic-doc` manual and HTML documentation), `perl`, `tcl`, the [Janet](https://janet-lang.org/) language and `jpm`, the [Bantam](https://bantam.luxferre.top/) coding agent, `frotz` (interactive fiction), standalone X11 keypad games (`Snake` and `Tetris`), and a full-featured Gambatte-based Game Boy / Game Boy Color emulator (`gambatte` / `gbemu`) with readjustable keypad controls (`B=8`, `Turbo B=5`, `A=9`, `Turbo A=6`, `D-pad`, `Start=2`, `Select=3`, `Palette=*`), 10 color palettes, save states, and file manager `.gb`/`.gbc` integration.
|
||||
- **On-device development, scripting, 3D demos, and gaming**: preinstalled `gcc`/`g++`, `make`, `git`, GNU `coreutils`, GNU `bc`/`dc`, `mandoc`, `nano`, `ed`, `sqlite3`, `lua` (`5.5` and `5.4`), `yabasic` (with full `yabasic-doc` manual and HTML documentation), `perl`, `tcl`, the [Janet](https://janet-lang.org/) language and `jpm`, the [Bantam](https://bantam.luxferre.top/) coding agent, `frotz` (interactive fiction), OpenGL / OpenGL ES hardware diagnostics and demos (`glxinfo`, `eglinfo`, `glxgears`, `glteapot`, `es2gears_x11`), standalone X11 keypad games (`Snake` and `Tetris`), and a full-featured Gambatte-based Game Boy / Game Boy Color emulator (`gambatte` / `gbemu`) with readjustable keypad controls (`B=8`, `Turbo B=5`, `A=9`, `Turbo A=6`, `D-pad`, `Start=2`, `Select=3`, `Palette=*`), 10 color palettes, save states, and file manager `.gb`/`.gbc` integration.
|
||||
- **NeoUI `240x320` UI SDK (`libneoui.so` + `/usr/include/neoui.h` + `neoui.yab`) and NeoNet (`neonet.yab`)**: unified C-compatible FFI and C++20 UI SDK wrapping Xlib, Xft, Pango, `libjpeg`/`libpng`, `.Xresources` / `~/.xthemes/*.xth` live theme resolution, offscreen `Pixmap` double buffering, standardized OS shell widgets (headers, tabs, softkey bars, list/toggle/slider rows, input boxes, progress bars, scrollbars, modals, popup menus, and toasts), keypad/softkey chord handling, and multi-tap text entry—usable from C, C++, or Yabasic (`~/Projects/neoui.yab` and `~/Projects/neoui_demo.yab`), paired with **NeoNet (`~/Projects/neonet.yab` and `~/Projects/neonet_demo.yab`)** for `libcurl`-based HTTP/HTTPS requests with custom headers and TCP/TLS/UDP socket exchange in Yabasic. See [SDK.md](./SDK.md) for full documentation.
|
||||
|
||||
---
|
||||
@@ -100,7 +100,7 @@ Whenever `artwork/icon-large.png` is updated, regenerate all icons, `240x320` wa
|
||||
### 2. Recompile core components (optional — prebuilts included)
|
||||
All components are pre-compiled in `prebuilt/` and `overlay/rootfs/`, and can be rebuilt from source at any time using rootless Docker (`alpine:3.24`):
|
||||
```bash
|
||||
# Rebuild cross-compiled Xlibre (X11Libre/xserver) + libinput/fbdev DDX drivers
|
||||
# Rebuild cross-compiled Xlibre (X11Libre/xserver) + Glamor/GLX + libinput/fbdev DDX drivers
|
||||
./scripts/build-xlibre.sh
|
||||
|
||||
# Rebuild patched sxmo-st, sxmo-dmenu, sxmo-dwm, and all 14 C++ DWM plugins
|
||||
@@ -115,7 +115,7 @@ All components are pre-compiled in `prebuilt/` and `overlay/rootfs/`, and can be
|
||||
# Fetch latest master from https://code.luxferre.top/luxferre/bantam-cpp and cross-compile Bantam AI agent
|
||||
./scripts/build-bantam.sh
|
||||
|
||||
# Rebuild Linux 6.12.1-msm8916 QDSP6/Q6Voice audio modules, torch LED module, camera module, and DTBs
|
||||
# Rebuild Linux 6.12.1-msm8916 Adreno 304 DRM/MSM GPU module, QDSP6/Q6Voice audio modules, torch LED module, camera module, and DTBs
|
||||
./scripts/build-kernel-audio.sh
|
||||
```
|
||||
|
||||
|
||||
@@ -1037,6 +1037,60 @@
|
||||
phandle = <0x15>;
|
||||
};
|
||||
|
||||
gpu: gpu@1c00000 {
|
||||
compatible = "qcom,adreno-304.0", "qcom,adreno";
|
||||
reg = <0x01c00000 0x20000>;
|
||||
reg-names = "kgsl_3d0_reg_memory";
|
||||
interrupts = <0x00 33 0x04>;
|
||||
interrupt-names = "kgsl_3d0_irq";
|
||||
clock-names = "core", "iface", "mem_iface", "alt_mem_iface", "gtcu_iface", "gfx3d";
|
||||
clocks = <0x14 124>, <0x14 123>, <0x14 72>, <0x14 73>, <0x14 66>, <0x14 35>;
|
||||
power-domains = <0x14 1>;
|
||||
operating-points-v2 = <&gpu_opp_table>;
|
||||
iommus = <&gpu_iommu 1>, <&gpu_iommu 2>;
|
||||
#cooling-cells = <2>;
|
||||
|
||||
gpu_opp_table: opp-table {
|
||||
compatible = "operating-points-v2";
|
||||
|
||||
opp-409600000 {
|
||||
opp-hz = /bits/ 64 <409600000>;
|
||||
};
|
||||
opp-307200000 {
|
||||
opp-hz = /bits/ 64 <307200000>;
|
||||
};
|
||||
opp-200000000 {
|
||||
opp-hz = /bits/ 64 <200000000>;
|
||||
};
|
||||
opp-19200000 {
|
||||
opp-hz = /bits/ 64 <19200000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gpu_iommu: iommu@1f08000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
#iommu-cells = <1>;
|
||||
compatible = "qcom,msm8909-iommu", "qcom,msm8916-iommu", "qcom,msm-iommu-v1";
|
||||
ranges = <0 0x01f08000 0x10000>;
|
||||
clocks = <0x14 69>, <0x14 65>, <0x14 64>;
|
||||
clock-names = "iface", "bus", "tbu";
|
||||
qcom,iommu-secure-id = <18>;
|
||||
|
||||
iommu-ctx@1000 {
|
||||
compatible = "qcom,msm-iommu-v1-ns";
|
||||
reg = <0x1000 0x1000>;
|
||||
interrupts = <0x00 241 0x04>;
|
||||
};
|
||||
|
||||
iommu-ctx@2000 {
|
||||
compatible = "qcom,msm-iommu-v1-ns";
|
||||
reg = <0x2000 0x1000>;
|
||||
interrupts = <0x00 242 0x04>;
|
||||
};
|
||||
};
|
||||
|
||||
spmi@200f000 {
|
||||
compatible = "qcom,spmi-pmic-arb";
|
||||
reg = <0x200f000 0x1000 0x2400000 0x400000 0x2c00000 0x400000 0x3800000 0x200000 0x200a000 0x2100>;
|
||||
|
||||
@@ -1037,6 +1037,60 @@
|
||||
phandle = <0x15>;
|
||||
};
|
||||
|
||||
gpu: gpu@1c00000 {
|
||||
compatible = "qcom,adreno-304.0", "qcom,adreno";
|
||||
reg = <0x01c00000 0x20000>;
|
||||
reg-names = "kgsl_3d0_reg_memory";
|
||||
interrupts = <0x00 33 0x04>;
|
||||
interrupt-names = "kgsl_3d0_irq";
|
||||
clock-names = "core", "iface", "mem_iface", "alt_mem_iface", "gtcu_iface", "gfx3d";
|
||||
clocks = <0x14 124>, <0x14 123>, <0x14 72>, <0x14 73>, <0x14 66>, <0x14 35>;
|
||||
power-domains = <0x14 1>;
|
||||
operating-points-v2 = <&gpu_opp_table>;
|
||||
iommus = <&gpu_iommu 1>, <&gpu_iommu 2>;
|
||||
#cooling-cells = <2>;
|
||||
|
||||
gpu_opp_table: opp-table {
|
||||
compatible = "operating-points-v2";
|
||||
|
||||
opp-409600000 {
|
||||
opp-hz = /bits/ 64 <409600000>;
|
||||
};
|
||||
opp-307200000 {
|
||||
opp-hz = /bits/ 64 <307200000>;
|
||||
};
|
||||
opp-200000000 {
|
||||
opp-hz = /bits/ 64 <200000000>;
|
||||
};
|
||||
opp-19200000 {
|
||||
opp-hz = /bits/ 64 <19200000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gpu_iommu: iommu@1f08000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
#iommu-cells = <1>;
|
||||
compatible = "qcom,msm8909-iommu", "qcom,msm8916-iommu", "qcom,msm-iommu-v1";
|
||||
ranges = <0 0x01f08000 0x10000>;
|
||||
clocks = <0x14 69>, <0x14 65>, <0x14 64>;
|
||||
clock-names = "iface", "bus", "tbu";
|
||||
qcom,iommu-secure-id = <18>;
|
||||
|
||||
iommu-ctx@1000 {
|
||||
compatible = "qcom,msm-iommu-v1-ns";
|
||||
reg = <0x1000 0x1000>;
|
||||
interrupts = <0x00 241 0x04>;
|
||||
};
|
||||
|
||||
iommu-ctx@2000 {
|
||||
compatible = "qcom,msm-iommu-v1-ns";
|
||||
reg = <0x2000 0x1000>;
|
||||
interrupts = <0x00 242 0x04>;
|
||||
};
|
||||
};
|
||||
|
||||
spmi@200f000 {
|
||||
compatible = "qcom,spmi-pmic-arb";
|
||||
reg = <0x200f000 0x1000 0x2400000 0x400000 0x2c00000 0x400000 0x3800000 0x200000 0x200a000 0x2100>;
|
||||
|
||||
@@ -18,8 +18,7 @@ Section "Device"
|
||||
Identifier "MSM8909 SPI Panel"
|
||||
Driver "modesetting"
|
||||
Option "kmsdev" "/dev/dri/card0"
|
||||
Option "AccelMethod" "none"
|
||||
Option "ShadowFB" "true"
|
||||
Option "AccelMethod" "glamor"
|
||||
Option "SWCursor" "true"
|
||||
Option "PageFlip" "false"
|
||||
EndSection
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
af_packet
|
||||
ipv6
|
||||
panel_mipi_dbi
|
||||
msm
|
||||
leds_msm8905_torch
|
||||
msm8905-cam
|
||||
rpmsg_wwan_ctrl
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Symlink
+1
@@ -0,0 +1 @@
|
||||
teapot
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,307 @@
|
||||
--- a/drivers/gpu/drm/msm/adreno/adreno_gpu.h
|
||||
+++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.h
|
||||
@@ -308,6 +308,11 @@
|
||||
return adreno_is_revn(gpu, 225);
|
||||
}
|
||||
|
||||
+static inline bool adreno_is_a304(const struct adreno_gpu *gpu)
|
||||
+{
|
||||
+ return adreno_is_revn(gpu, 304);
|
||||
+}
|
||||
+
|
||||
static inline bool adreno_is_a305(const struct adreno_gpu *gpu)
|
||||
{
|
||||
return adreno_is_revn(gpu, 305);
|
||||
--- a/drivers/gpu/drm/msm/adreno/a3xx_catalog.c
|
||||
+++ b/drivers/gpu/drm/msm/adreno/a3xx_catalog.c
|
||||
@@ -10,6 +10,17 @@
|
||||
|
||||
static const struct adreno_info a3xx_gpus[] = {
|
||||
{
|
||||
+ .chip_ids = ADRENO_CHIP_IDS(0x03000400),
|
||||
+ .family = ADRENO_3XX,
|
||||
+ .revn = 304,
|
||||
+ .fw = {
|
||||
+ [ADRENO_FW_PM4] = "a300_pm4.fw",
|
||||
+ [ADRENO_FW_PFP] = "a300_pfp.fw",
|
||||
+ },
|
||||
+ .gmem = (SZ_64K + SZ_32K),
|
||||
+ .inactive_period = DRM_MSM_INACTIVE_PERIOD,
|
||||
+ .init = a3xx_gpu_init,
|
||||
+ }, {
|
||||
.chip_ids = ADRENO_CHIP_IDS(0x03000512),
|
||||
.family = ADRENO_3XX,
|
||||
.fw = {
|
||||
--- a/drivers/gpu/drm/msm/adreno/a3xx_gpu.c
|
||||
+++ b/drivers/gpu/drm/msm/adreno/a3xx_gpu.c
|
||||
@@ -118,7 +118,9 @@
|
||||
|
||||
DBG("%s", gpu->name);
|
||||
|
||||
- if (adreno_is_a305(adreno_gpu)) {
|
||||
+ if (adreno_is_a304(adreno_gpu)) {
|
||||
+ gpu_write(gpu, REG_A3XX_VBIF_ROUND_ROBIN_QOS_ARB, 0x0003);
|
||||
+ } else if (adreno_is_a305(adreno_gpu)) {
|
||||
/* Set up 16 deep read/write request queues: */
|
||||
gpu_write(gpu, REG_A3XX_VBIF_IN_RD_LIM_CONF0, 0x10101010);
|
||||
gpu_write(gpu, REG_A3XX_VBIF_IN_RD_LIM_CONF1, 0x10101010);
|
||||
@@ -241,7 +243,8 @@
|
||||
gpu_write(gpu, REG_A3XX_UCHE_CACHE_MODE_CONTROL_REG, 0x00000001);
|
||||
|
||||
/* Enable Clock gating: */
|
||||
- if (adreno_is_a305b(adreno_gpu) ||
|
||||
+ if (adreno_is_a304(adreno_gpu) ||
|
||||
+ adreno_is_a305b(adreno_gpu) ||
|
||||
adreno_is_a306(adreno_gpu) ||
|
||||
adreno_is_a306a(adreno_gpu))
|
||||
gpu_write(gpu, REG_A3XX_RBBM_CLOCK_CTL, 0xaaaaaaaa);
|
||||
@@ -340,7 +343,8 @@
|
||||
gpu_write(gpu, REG_A3XX_CP_PFP_UCODE_DATA, ptr[i]);
|
||||
|
||||
/* CP ROQ queue sizes (bytes) - RB:16, ST:16, IB1:32, IB2:64 */
|
||||
- if (adreno_is_a305(adreno_gpu) ||
|
||||
+ if (adreno_is_a304(adreno_gpu) ||
|
||||
+ adreno_is_a305(adreno_gpu) ||
|
||||
adreno_is_a306(adreno_gpu) ||
|
||||
adreno_is_a306a(adreno_gpu) ||
|
||||
adreno_is_a320(adreno_gpu)) {
|
||||
@@ -365,6 +369,7 @@
|
||||
|
||||
static void a3xx_recover(struct msm_gpu *gpu)
|
||||
{
|
||||
+ struct adreno_gpu *adreno_gpu = to_adreno_gpu(gpu);
|
||||
int i;
|
||||
|
||||
adreno_dump_info(gpu);
|
||||
@@ -378,9 +383,15 @@
|
||||
if (hang_debug)
|
||||
a3xx_dump(gpu);
|
||||
|
||||
- gpu_write(gpu, REG_A3XX_RBBM_SW_RESET_CMD, 1);
|
||||
- gpu_read(gpu, REG_A3XX_RBBM_SW_RESET_CMD);
|
||||
- gpu_write(gpu, REG_A3XX_RBBM_SW_RESET_CMD, 0);
|
||||
+ /* Do not do soft reset for A304 because it cannot do SMMU programming
|
||||
+ * of any kind after a soft reset; rely on hard power-domain reset in
|
||||
+ * adreno_recover().
|
||||
+ */
|
||||
+ if (!adreno_is_a304(adreno_gpu)) {
|
||||
+ gpu_write(gpu, REG_A3XX_RBBM_SW_RESET_CMD, 1);
|
||||
+ gpu_read(gpu, REG_A3XX_RBBM_SW_RESET_CMD);
|
||||
+ gpu_write(gpu, REG_A3XX_RBBM_SW_RESET_CMD, 0);
|
||||
+ }
|
||||
adreno_recover(gpu);
|
||||
}
|
||||
|
||||
--- a/drivers/gpu/drm/msm/adreno/adreno_device.c
|
||||
+++ b/drivers/gpu/drm/msm/adreno/adreno_device.c
|
||||
@@ -237,10 +237,12 @@
|
||||
.unbind = adreno_unbind,
|
||||
};
|
||||
|
||||
+static struct platform_device *msm_headless_pdev;
|
||||
+
|
||||
static void adreno_device_register_headless(void)
|
||||
{
|
||||
- /* on imx5, we don't have a top-level mdp/dpu node
|
||||
- * this creates a dummy node for the driver for that case
|
||||
+ /* on imx5 and headless SPI-panel devices, we don't have a top-level
|
||||
+ * mdp/dpu node; this creates a dummy node for the driver for that case
|
||||
*/
|
||||
struct platform_device_info dummy_info = {
|
||||
.parent = NULL,
|
||||
@@ -252,7 +254,34 @@
|
||||
.size_data = 0,
|
||||
.dma_mask = ~0,
|
||||
};
|
||||
- platform_device_register_full(&dummy_info);
|
||||
+ if (!msm_headless_pdev) {
|
||||
+ struct platform_device *pdev = platform_device_register_full(&dummy_info);
|
||||
+ if (!IS_ERR(pdev))
|
||||
+ msm_headless_pdev = pdev;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+static bool adreno_has_display_node(void)
|
||||
+{
|
||||
+ static const char * const compat[] = {
|
||||
+ "qcom,mdss",
|
||||
+ "qcom,mdp4",
|
||||
+ "qcom,mdp5",
|
||||
+ "qcom,dpu1",
|
||||
+ };
|
||||
+ struct device_node *np;
|
||||
+ int i;
|
||||
+
|
||||
+ for (i = 0; i < ARRAY_SIZE(compat); i++) {
|
||||
+ np = of_find_compatible_node(NULL, NULL, compat[i]);
|
||||
+ if (np) {
|
||||
+ bool avail = of_device_is_available(np);
|
||||
+ of_node_put(np);
|
||||
+ if (avail)
|
||||
+ return true;
|
||||
+ }
|
||||
+ }
|
||||
+ return false;
|
||||
}
|
||||
|
||||
static int adreno_probe(struct platform_device *pdev)
|
||||
@@ -264,7 +293,8 @@
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
- if (of_device_is_compatible(pdev->dev.of_node, "amd,imageon"))
|
||||
+ if (of_device_is_compatible(pdev->dev.of_node, "amd,imageon") ||
|
||||
+ !adreno_has_display_node())
|
||||
adreno_device_register_headless();
|
||||
|
||||
return 0;
|
||||
@@ -272,6 +302,10 @@
|
||||
|
||||
static void adreno_remove(struct platform_device *pdev)
|
||||
{
|
||||
+ if (msm_headless_pdev) {
|
||||
+ platform_device_unregister(msm_headless_pdev);
|
||||
+ msm_headless_pdev = NULL;
|
||||
+ }
|
||||
component_del(&pdev->dev, &a3xx_ops);
|
||||
}
|
||||
|
||||
--- a/drivers/gpu/drm/msm/msm_drv.c
|
||||
+++ b/drivers/gpu/drm/msm/msm_drv.c
|
||||
@@ -115,11 +115,27 @@
|
||||
/*
|
||||
* a2xx comes with its own MMU
|
||||
* On other platforms IOMMU can be declared specified either for the
|
||||
- * MDP/DPU device or for its parent, MDSS device.
|
||||
+ * MDP/DPU device, its parent MDSS device, or the GPU device (headless).
|
||||
*/
|
||||
- return priv->is_a2xx ||
|
||||
- device_iommu_mapped(dev->dev) ||
|
||||
- device_iommu_mapped(dev->dev->parent);
|
||||
+ if (priv->is_a2xx ||
|
||||
+ device_iommu_mapped(dev->dev) ||
|
||||
+ device_iommu_mapped(dev->dev->parent) ||
|
||||
+ (priv->gpu_pdev && device_iommu_mapped(&priv->gpu_pdev->dev)))
|
||||
+ return true;
|
||||
+
|
||||
+ if (!dev->dev->of_node) {
|
||||
+ struct device_node *np = of_find_compatible_node(NULL, NULL, "qcom,adreno");
|
||||
+ if (!np)
|
||||
+ np = of_find_compatible_node(NULL, NULL, "qcom,kgsl-3d0");
|
||||
+ if (np) {
|
||||
+ bool has_iommu = of_property_present(np, "iommus");
|
||||
+ of_node_put(np);
|
||||
+ if (has_iommu)
|
||||
+ return true;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ return false;
|
||||
}
|
||||
|
||||
static int msm_init_vram(struct drm_device *dev)
|
||||
--- a/arch/arm/boot/dts/qcom/qcom-msm8909.dtsi
|
||||
+++ b/arch/arm/boot/dts/qcom/qcom-msm8909.dtsi
|
||||
@@ -830,6 +830,76 @@
|
||||
reg = <0x01937000 0x30000>;
|
||||
};
|
||||
|
||||
+ gpu: gpu@1c00000 {
|
||||
+ compatible = "qcom,adreno-304.0", "qcom,adreno";
|
||||
+ reg = <0x01c00000 0x20000>;
|
||||
+ reg-names = "kgsl_3d0_reg_memory";
|
||||
+ interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ interrupt-names = "kgsl_3d0_irq";
|
||||
+ clock-names =
|
||||
+ "core",
|
||||
+ "iface",
|
||||
+ "mem_iface",
|
||||
+ "alt_mem_iface",
|
||||
+ "gtcu_iface",
|
||||
+ "gfx3d";
|
||||
+ clocks =
|
||||
+ <&gcc GCC_OXILI_GFX3D_CLK>,
|
||||
+ <&gcc GCC_OXILI_AHB_CLK>,
|
||||
+ <&gcc GCC_BIMC_GFX_CLK>,
|
||||
+ <&gcc GCC_BIMC_GPU_CLK>,
|
||||
+ <&gcc GCC_GTCU_AHB_CLK>,
|
||||
+ <&gcc GFX3D_CLK_SRC>;
|
||||
+ power-domains = <&gcc OXILI_GDSC>;
|
||||
+ operating-points-v2 = <&gpu_opp_table>;
|
||||
+ iommus = <&gpu_iommu 1>, <&gpu_iommu 2>;
|
||||
+ #cooling-cells = <2>;
|
||||
+
|
||||
+ gpu_opp_table: opp-table {
|
||||
+ compatible = "operating-points-v2";
|
||||
+
|
||||
+ opp-409600000 {
|
||||
+ opp-hz = /bits/ 64 <409600000>;
|
||||
+ };
|
||||
+ opp-307200000 {
|
||||
+ opp-hz = /bits/ 64 <307200000>;
|
||||
+ };
|
||||
+ opp-200000000 {
|
||||
+ opp-hz = /bits/ 64 <200000000>;
|
||||
+ };
|
||||
+ opp-19200000 {
|
||||
+ opp-hz = /bits/ 64 <19200000>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ gpu_iommu: iommu@1f08000 {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ #iommu-cells = <1>;
|
||||
+ compatible = "qcom,msm8909-iommu", "qcom,msm8916-iommu", "qcom,msm-iommu-v1";
|
||||
+ ranges = <0 0x01f08000 0x10000>;
|
||||
+ clocks = <&gcc GCC_SMMU_CFG_CLK>,
|
||||
+ <&gcc GCC_GFX_TCU_CLK>,
|
||||
+ <&gcc GCC_GFX_TBU_CLK>;
|
||||
+ clock-names = "iface", "bus", "tbu";
|
||||
+ qcom,iommu-secure-id = <18>;
|
||||
+
|
||||
+ /* GFX3D_USER */
|
||||
+ iommu-ctx@1000 {
|
||||
+ compatible = "qcom,msm-iommu-v1-ns";
|
||||
+ reg = <0x1000 0x1000>;
|
||||
+ interrupts = <GIC_SPI 241 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ };
|
||||
+
|
||||
+ /* GFX3D_PRIV */
|
||||
+ iommu-ctx@2000 {
|
||||
+ compatible = "qcom,msm-iommu-v1-ns";
|
||||
+ reg = <0x2000 0x1000>;
|
||||
+ interrupts = <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
spmi_bus: spmi@200f000 {
|
||||
compatible = "qcom,spmi-pmic-arb";
|
||||
reg = <0x0200f000 0x001000>,
|
||||
@@ -1524,11 +1594,23 @@
|
||||
|
||||
thermal-sensors = <&tsens 2>;
|
||||
|
||||
+ cooling-maps {
|
||||
+ map0 {
|
||||
+ trip = <&gpu_alert0>;
|
||||
+ cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
trips {
|
||||
gpu_alert0: trip-point0 {
|
||||
- temperature = <90000>;
|
||||
+ temperature = <75000>;
|
||||
+ hysteresis = <2000>;
|
||||
+ type = "passive";
|
||||
+ };
|
||||
+ gpu_crit: gpu-crit {
|
||||
+ temperature = <95000>;
|
||||
hysteresis = <2000>;
|
||||
- type = "hot";
|
||||
+ type = "critical";
|
||||
};
|
||||
};
|
||||
};
|
||||
File diff suppressed because it is too large.
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,225 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998-2003 by The XFree86 Project, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* Except as contained in this notice, the name of the copyright holder(s)
|
||||
* and author(s) shall not be used in advertising or otherwise to promote
|
||||
* the sale, use or other dealings in this Software without prior written
|
||||
* authorization from the copyright holder(s) and author(s).
|
||||
*/
|
||||
|
||||
#ifndef _XF86XV_H_
|
||||
#define _XF86XV_H_
|
||||
|
||||
#include "xlibre_ptrtypes.h"
|
||||
#include "xvdix.h"
|
||||
#include "xf86str.h"
|
||||
|
||||
#define VIDEO_OVERLAID_IMAGES 0x00000004
|
||||
#define VIDEO_OVERLAID_STILLS 0x00000008
|
||||
/*
|
||||
* Usage of VIDEO_CLIP_TO_VIEWPORT is not recommended.
|
||||
* It can make reput behaviour inconsistent.
|
||||
*/
|
||||
#define VIDEO_CLIP_TO_VIEWPORT 0x00000010
|
||||
|
||||
typedef XvImageRec XF86ImageRec, *XF86ImagePtr;
|
||||
|
||||
typedef struct {
|
||||
ScrnInfoPtr pScrn;
|
||||
int id;
|
||||
unsigned short width, height;
|
||||
int *pitches; /* bytes */
|
||||
int *offsets; /* in bytes from start of framebuffer */
|
||||
DevUnion devPrivate;
|
||||
} XF86SurfaceRec, *XF86SurfacePtr;
|
||||
|
||||
typedef int (*PutVideoFuncPtr) (ScrnInfoPtr pScrn,
|
||||
short vid_x, short vid_y, short drw_x,
|
||||
short drw_y, short vid_w, short vid_h,
|
||||
short drw_w, short drw_h, RegionPtr clipBoxes,
|
||||
void *data, DrawablePtr pDraw);
|
||||
typedef int (*PutStillFuncPtr) (ScrnInfoPtr pScrn, short vid_x, short vid_y,
|
||||
short drw_x, short drw_y, short vid_w,
|
||||
short vid_h, short drw_w, short drw_h,
|
||||
RegionPtr clipBoxes, void *data,
|
||||
DrawablePtr pDraw);
|
||||
typedef int (*GetVideoFuncPtr) (ScrnInfoPtr pScrn, short vid_x, short vid_y,
|
||||
short drw_x, short drw_y, short vid_w,
|
||||
short vid_h, short drw_w, short drw_h,
|
||||
RegionPtr clipBoxes, void *data,
|
||||
DrawablePtr pDraw);
|
||||
typedef int (*GetStillFuncPtr) (ScrnInfoPtr pScrn, short vid_x, short vid_y,
|
||||
short drw_x, short drw_y, short vid_w,
|
||||
short vid_h, short drw_w, short drw_h,
|
||||
RegionPtr clipBoxes, void *data,
|
||||
DrawablePtr pDraw);
|
||||
typedef void (*StopVideoFuncPtr) (ScrnInfoPtr pScrn, void *data, Bool Exit);
|
||||
typedef int (*SetPortAttributeFuncPtr) (ScrnInfoPtr pScrn, Atom attribute,
|
||||
INT32 value, void *data);
|
||||
typedef int (*GetPortAttributeFuncPtr) (ScrnInfoPtr pScrn, Atom attribute,
|
||||
INT32 *value, void *data);
|
||||
typedef void (*QueryBestSizeFuncPtr) (ScrnInfoPtr pScrn, Bool motion,
|
||||
short vid_w, short vid_h, short drw_w,
|
||||
short drw_h, unsigned int *p_w,
|
||||
unsigned int *p_h, void *data);
|
||||
typedef int (*PutImageFuncPtr) (ScrnInfoPtr pScrn, short src_x, short src_y,
|
||||
short drw_x, short drw_y, short src_w,
|
||||
short src_h, short drw_w, short drw_h,
|
||||
int image, unsigned char *buf, short width,
|
||||
short height, Bool Sync, RegionPtr clipBoxes,
|
||||
void *data, DrawablePtr pDraw);
|
||||
typedef int (*ReputImageFuncPtr) (ScrnInfoPtr pScrn, short src_x, short src_y,
|
||||
short drw_x, short drw_y, short src_w,
|
||||
short src_h, short drw_w, short drw_h,
|
||||
RegionPtr clipBoxes, void *data,
|
||||
DrawablePtr pDraw);
|
||||
typedef int (*QueryImageAttributesFuncPtr) (ScrnInfoPtr pScrn, int image,
|
||||
unsigned short *width,
|
||||
unsigned short *height,
|
||||
int *pitches, int *offsets);
|
||||
|
||||
typedef enum {
|
||||
XV_OFF,
|
||||
XV_PENDING,
|
||||
XV_ON
|
||||
} XvStatus;
|
||||
|
||||
/*** this is what the driver needs to fill out ***/
|
||||
|
||||
typedef struct {
|
||||
int id;
|
||||
const char *name;
|
||||
unsigned short width, height;
|
||||
XvRationalRec rate;
|
||||
} XF86VideoEncodingRec, *XF86VideoEncodingPtr;
|
||||
|
||||
typedef struct {
|
||||
char depth;
|
||||
short class;
|
||||
} XF86VideoFormatRec, *XF86VideoFormatPtr;
|
||||
|
||||
typedef XvAttributeRec XF86AttributeRec, *XF86AttributePtr;
|
||||
|
||||
typedef struct {
|
||||
unsigned int type;
|
||||
int flags;
|
||||
const char *name;
|
||||
int nEncodings;
|
||||
XF86VideoEncodingPtr pEncodings;
|
||||
int nFormats;
|
||||
XF86VideoFormatPtr pFormats;
|
||||
int nPorts;
|
||||
DevUnion *pPortPrivates;
|
||||
int nAttributes;
|
||||
XF86AttributePtr pAttributes;
|
||||
int nImages;
|
||||
XF86ImagePtr pImages;
|
||||
PutVideoFuncPtr PutVideo;
|
||||
PutStillFuncPtr PutStill;
|
||||
GetVideoFuncPtr GetVideo;
|
||||
GetStillFuncPtr GetStill;
|
||||
StopVideoFuncPtr StopVideo;
|
||||
SetPortAttributeFuncPtr SetPortAttribute;
|
||||
GetPortAttributeFuncPtr GetPortAttribute;
|
||||
QueryBestSizeFuncPtr QueryBestSize;
|
||||
PutImageFuncPtr PutImage;
|
||||
ReputImageFuncPtr ReputImage; /* image/still */
|
||||
QueryImageAttributesFuncPtr QueryImageAttributes;
|
||||
} XF86VideoAdaptorRec, *XF86VideoAdaptorPtr;
|
||||
|
||||
typedef struct {
|
||||
XF86ImagePtr image;
|
||||
int flags;
|
||||
int (*alloc_surface) (ScrnInfoPtr pScrn,
|
||||
int id,
|
||||
unsigned short width,
|
||||
unsigned short height, XF86SurfacePtr surface);
|
||||
int (*free_surface) (XF86SurfacePtr surface);
|
||||
int (*display) (XF86SurfacePtr surface,
|
||||
short vid_x, short vid_y,
|
||||
short drw_x, short drw_y,
|
||||
short vid_w, short vid_h,
|
||||
short drw_w, short drw_h, RegionPtr clipBoxes);
|
||||
int (*stop) (XF86SurfacePtr surface);
|
||||
int (*getAttribute) (ScrnInfoPtr pScrn, Atom attr, INT32 *value);
|
||||
int (*setAttribute) (ScrnInfoPtr pScrn, Atom attr, INT32 value);
|
||||
int max_width;
|
||||
int max_height;
|
||||
int num_attributes;
|
||||
XF86AttributePtr attributes;
|
||||
} XF86OffscreenImageRec, *XF86OffscreenImagePtr;
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
xf86XVScreenInit(ScreenPtr pScreen, XF86VideoAdaptorPtr * Adaptors, int num);
|
||||
|
||||
typedef int (*xf86XVInitGenericAdaptorPtr) (ScrnInfoPtr pScrn,
|
||||
XF86VideoAdaptorPtr ** Adaptors);
|
||||
|
||||
extern _X_EXPORT int
|
||||
xf86XVRegisterGenericAdaptorDriver(xf86XVInitGenericAdaptorPtr InitFunc);
|
||||
|
||||
extern _X_EXPORT int
|
||||
xf86XVListGenericAdaptors(ScrnInfoPtr pScrn, XF86VideoAdaptorPtr ** Adaptors);
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
|
||||
xf86XVRegisterOffscreenImages(ScreenPtr pScreen,
|
||||
XF86OffscreenImagePtr images, int num);
|
||||
|
||||
extern _X_EXPORT XF86OffscreenImagePtr
|
||||
xf86XVQueryOffscreenImages(ScreenPtr pScreen, int *num);
|
||||
|
||||
extern _X_EXPORT XF86VideoAdaptorPtr xf86XVAllocateVideoAdaptorRec(ScrnInfoPtr
|
||||
pScrn);
|
||||
|
||||
extern _X_EXPORT void xf86XVFreeVideoAdaptorRec(XF86VideoAdaptorPtr ptr);
|
||||
|
||||
extern _X_EXPORT void
|
||||
xf86XVFillKeyHelper(ScreenPtr pScreen, CARD32 key, RegionPtr clipboxes);
|
||||
|
||||
extern _X_EXPORT void
|
||||
|
||||
xf86XVFillKeyHelperDrawable(DrawablePtr pDraw, CARD32 key, RegionPtr clipboxes);
|
||||
|
||||
extern _X_EXPORT Bool
|
||||
|
||||
xf86XVClipVideoHelper(BoxPtr dst,
|
||||
INT32 *xa,
|
||||
INT32 *xb,
|
||||
INT32 *ya,
|
||||
INT32 *yb, RegionPtr reg, INT32 width, INT32 height);
|
||||
|
||||
extern _X_EXPORT void
|
||||
|
||||
xf86XVCopyYUV12ToPacked(const void *srcy,
|
||||
const void *srcv,
|
||||
const void *srcu,
|
||||
void *dst,
|
||||
int srcPitchy,
|
||||
int srcPitchuv, int dstPitch, int h, int w);
|
||||
|
||||
extern _X_EXPORT void
|
||||
|
||||
xf86XVCopyPacked(const void *src,
|
||||
void *dst, int srcPitch, int dstPitch, int h, int w);
|
||||
|
||||
#endif /* _XF86XV_H_ */
|
||||
@@ -0,0 +1,142 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 by The XFree86 Project, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* Except as contained in this notice, the name of the copyright holder(s)
|
||||
* and author(s) shall not be used in advertising or otherwise to promote
|
||||
* the sale, use or other dealings in this Software without prior written
|
||||
* authorization from the copyright holder(s) and author(s).
|
||||
*/
|
||||
|
||||
#ifndef _XF86XVMC_H
|
||||
#define _XF86XVMC_H
|
||||
|
||||
#include "xlibre_ptrtypes.h"
|
||||
#include "xvmcext.h"
|
||||
#include "xf86xv.h"
|
||||
|
||||
typedef struct {
|
||||
int num_xvimages;
|
||||
int *xvimage_ids; /* reference the subpictures in the XF86MCAdaptorRec */
|
||||
} XF86MCImageIDList;
|
||||
|
||||
typedef struct {
|
||||
int surface_type_id; /* Driver generated. Must be unique on the port */
|
||||
int chroma_format;
|
||||
int color_description; /* no longer used */
|
||||
unsigned short max_width;
|
||||
unsigned short max_height;
|
||||
unsigned short subpicture_max_width;
|
||||
unsigned short subpicture_max_height;
|
||||
int mc_type;
|
||||
int flags;
|
||||
XF86MCImageIDList *compatible_subpictures; /* can be null, if none */
|
||||
} XF86MCSurfaceInfoRec, *XF86MCSurfaceInfoPtr;
|
||||
|
||||
/*
|
||||
xf86XvMCCreateContextProc
|
||||
|
||||
DIX will fill everything out in the context except the driver_priv.
|
||||
The port_priv holds the private data specified for the port when
|
||||
Xv was initialized by the driver.
|
||||
The driver may store whatever it wants in driver_priv and edit
|
||||
the width, height and flags. If the driver wants to return something
|
||||
to the client it can allocate space in priv and specify the number
|
||||
of 32 bit words in num_priv. This must be dynamically allocated
|
||||
space because DIX will free it after it passes it to the client.
|
||||
*/
|
||||
|
||||
typedef int (*xf86XvMCCreateContextProcPtr) (ScrnInfoPtr pScrn,
|
||||
XvMCContextPtr context,
|
||||
int *num_priv, CARD32 **priv);
|
||||
|
||||
typedef void (*xf86XvMCDestroyContextProcPtr) (ScrnInfoPtr pScrn,
|
||||
XvMCContextPtr context);
|
||||
|
||||
/*
|
||||
xf86XvMCCreateSurfaceProc
|
||||
|
||||
DIX will fill everything out in the surface except the driver_priv.
|
||||
The driver may store whatever it wants in driver_priv. The driver
|
||||
may pass data back to the client in the same manner as the
|
||||
xf86XvMCCreateContextProc.
|
||||
*/
|
||||
|
||||
typedef int (*xf86XvMCCreateSurfaceProcPtr) (ScrnInfoPtr pScrn,
|
||||
XvMCSurfacePtr surface,
|
||||
int *num_priv, CARD32 **priv);
|
||||
|
||||
typedef void (*xf86XvMCDestroySurfaceProcPtr) (ScrnInfoPtr pScrn,
|
||||
XvMCSurfacePtr surface);
|
||||
|
||||
/*
|
||||
xf86XvMCCreateSubpictureProc
|
||||
|
||||
DIX will fill everything out in the subpicture except the driver_priv,
|
||||
num_palette_entries, entry_bytes and component_order. The driver may
|
||||
store whatever it wants in driver_priv and edit the width and height.
|
||||
If it is a paletted subpicture the driver needs to fill out the
|
||||
num_palette_entries, entry_bytes and component_order. These are
|
||||
not communicated to the client until the time the surface is
|
||||
created.
|
||||
|
||||
The driver may pass data back to the client in the same manner as the
|
||||
xf86XvMCCreateContextProc.
|
||||
*/
|
||||
|
||||
typedef int (*xf86XvMCCreateSubpictureProcPtr) (ScrnInfoPtr pScrn,
|
||||
XvMCSubpicturePtr subpicture,
|
||||
int *num_priv, CARD32 **priv);
|
||||
|
||||
typedef void (*xf86XvMCDestroySubpictureProcPtr) (ScrnInfoPtr pScrn,
|
||||
XvMCSubpicturePtr subpicture);
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
int num_surfaces;
|
||||
XF86MCSurfaceInfoPtr *surfaces;
|
||||
int num_subpictures;
|
||||
XF86ImagePtr *subpictures;
|
||||
xf86XvMCCreateContextProcPtr CreateContext;
|
||||
xf86XvMCDestroyContextProcPtr DestroyContext;
|
||||
xf86XvMCCreateSurfaceProcPtr CreateSurface;
|
||||
xf86XvMCDestroySurfaceProcPtr DestroySurface;
|
||||
xf86XvMCCreateSubpictureProcPtr CreateSubpicture;
|
||||
xf86XvMCDestroySubpictureProcPtr DestroySubpicture;
|
||||
} XF86MCAdaptorRec, *XF86MCAdaptorPtr;
|
||||
|
||||
/*
|
||||
xf86XvMCScreenInit
|
||||
|
||||
Unlike Xv, the adaptor data is not copied from this structure.
|
||||
This structure's data is used so it must stick around for the
|
||||
life of the server. Note that it's an array of pointers not
|
||||
an array of structures.
|
||||
*/
|
||||
|
||||
extern _X_EXPORT Bool xf86XvMCScreenInit(ScreenPtr pScreen,
|
||||
int num_adaptors,
|
||||
XF86MCAdaptorPtr * adaptors);
|
||||
|
||||
extern _X_EXPORT XF86MCAdaptorPtr xf86XvMCCreateAdaptorRec(void);
|
||||
extern _X_EXPORT void xf86XvMCDestroyAdaptorRec(XF86MCAdaptorPtr adaptor);
|
||||
|
||||
#endif /* _XF86XVMC_H */
|
||||
@@ -33,7 +33,7 @@
|
||||
#define DRI3 1
|
||||
|
||||
/* Build GLX extension */
|
||||
#undef GLXEXT
|
||||
#define GLXEXT 1
|
||||
|
||||
/* Support XDM-AUTH*-1 */
|
||||
#define HASXDMAUTH 1
|
||||
@@ -122,7 +122,7 @@
|
||||
#define XORG_VERSION_CURRENT 12502000
|
||||
|
||||
/* Build Xv Extension */
|
||||
#undef XvExtension
|
||||
#define XvExtension 1
|
||||
|
||||
/* Build XvMC Extension */
|
||||
#undef XvMCExtension
|
||||
@@ -134,7 +134,7 @@
|
||||
#define XTEST 1
|
||||
|
||||
/* Support Xv Extension */
|
||||
#undef XV
|
||||
#define XV 1
|
||||
|
||||
/* BSD-compliant source */
|
||||
/* #undef _BSD_SOURCE */
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#define DRI3 1
|
||||
|
||||
/* Build GLX extension */
|
||||
#undef GLXEXT
|
||||
#define GLXEXT 1
|
||||
|
||||
/* Support XDM-AUTH*-1 */
|
||||
#define HASXDMAUTH 1
|
||||
@@ -122,7 +122,7 @@
|
||||
#define XORG_VERSION_CURRENT 12502000
|
||||
|
||||
/* Build Xv Extension */
|
||||
#undef XvExtension
|
||||
#define XvExtension 1
|
||||
|
||||
/* Build XvMC Extension */
|
||||
#undef XvMCExtension
|
||||
@@ -134,7 +134,7 @@
|
||||
#define XTEST 1
|
||||
|
||||
/* Support Xv Extension */
|
||||
#undef XV
|
||||
#define XV 1
|
||||
|
||||
/* BSD-compliant source */
|
||||
/* #undef _BSD_SOURCE */
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -51,11 +51,17 @@ chmod 640 "$TARGET_ROOTFS/etc/doas.d/50-sxmo.conf" 2>/dev/null || true
|
||||
chown 0:0 "$TARGET_ROOTFS/usr/bin/sudo" "$TARGET_ROOTFS/usr/bin/doas" "$TARGET_ROOTFS/bin/su" 2>/dev/null || true
|
||||
chmod 4755 "$TARGET_ROOTFS/usr/bin/sudo" "$TARGET_ROOTFS/usr/bin/doas" "$TARGET_ROOTFS/bin/su" 2>/dev/null || true
|
||||
|
||||
echo "[2/4] Installing prebuilt QDSP6/Q6Voice kernel modules, torch LED module, camera module, and DTBs..."
|
||||
echo "[2/4] Installing prebuilt QDSP6/Q6Voice kernel modules, Adreno 304 DRM module, torch LED module, camera module, and DTBs..."
|
||||
if [ -d "$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/sound/soc/qcom/qdsp6" ]; then
|
||||
cp -af "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/qdsp6/"*.ko* \
|
||||
"$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/sound/soc/qcom/qdsp6/"
|
||||
fi
|
||||
if [ -d "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm" ] && \
|
||||
[ -d "$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/msm" ]; then
|
||||
rm -f "$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/msm/msm.ko"
|
||||
cp -af "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/msm.ko.zst" \
|
||||
"$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/gpu/drm/msm/msm.ko.zst"
|
||||
fi
|
||||
if [ -d "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/leds" ] && \
|
||||
[ -d "$TARGET_ROOTFS/lib/modules/6.12.1-msm8916/kernel/drivers/leds" ]; then
|
||||
cp -af "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/leds/"*.ko* \
|
||||
@@ -86,6 +92,31 @@ fi
|
||||
cp -af "$BASE_DIR/prebuilt/fcitx5-t9/usr/." "$TARGET_ROOTFS/usr/"
|
||||
cp -af "$BASE_DIR/prebuilt/bantam/bantam" "$TARGET_ROOTFS/usr/bin/bantam"
|
||||
cp -af "$BASE_DIR/prebuilt/bantam/bantam" "$TARGET_ROOTFS/usr/local/bin/bantam"
|
||||
python3 - "$TARGET_ROOTFS" <<'PYEOF'
|
||||
import glob, os, struct, sys
|
||||
|
||||
rootfs = sys.argv[1]
|
||||
for path in glob.glob(os.path.join(rootfs, "usr/lib/libgallium-*.so")):
|
||||
if os.path.islink(path):
|
||||
continue
|
||||
with open(path, "rb") as f:
|
||||
data = bytearray(f.read())
|
||||
changed = False
|
||||
str_off = data.find(b"FD305B\x00")
|
||||
if str_off != -1:
|
||||
data[str_off:str_off + 7] = b"FD304\x00\x00"
|
||||
changed = True
|
||||
rec_old = struct.pack("<IIQ", 0, 0, 0x03000512)
|
||||
rec_new = struct.pack("<IIQ", 304, 0, 0x030004ff)
|
||||
rec_off = data.find(rec_old)
|
||||
if rec_off != -1:
|
||||
data[rec_off:rec_off + 16] = rec_new
|
||||
changed = True
|
||||
if changed:
|
||||
with open(path, "wb") as f:
|
||||
f.write(data)
|
||||
print(f"Patched {os.path.basename(path)} with Adreno 304 (FD304) device descriptor.")
|
||||
PYEOF
|
||||
rm -rf \
|
||||
"$TARGET_ROOTFS/usr/bin/sxmo_swayinitconf.sh" \
|
||||
"$TARGET_ROOTFS/usr/bin/sxmo_swayinit.sh" \
|
||||
|
||||
@@ -62,6 +62,10 @@ EOF
|
||||
echo "[2/5] Applying Bananarchy QDSP6/Q6Voice and MSM8905/MSM8909 DTS patches..."
|
||||
patch -p1 < /bananarchy/patches/kernel/0001-msm8909-qdsp6-voice-sound-nokia-argon-6.12.patch
|
||||
fi
|
||||
if ! grep -q "adreno_is_a304" drivers/gpu/drm/msm/adreno/adreno_gpu.h 2>/dev/null; then
|
||||
echo "[2b/5] Applying Adreno 304 GPU and MSM8909 IOMMU/GPU DT patch..."
|
||||
patch -p1 < /bananarchy/patches/kernel/0003-msm8909-adreno-304-gpu-support.patch
|
||||
fi
|
||||
if [ ! -f include/config/auto.conf ]; then
|
||||
echo "[3/5] Preparing kernel configuration..."
|
||||
cp /bananarchy/patches/kernel/config-bananarchy-msm8909.armv7 .config
|
||||
@@ -85,6 +89,7 @@ EOF
|
||||
|
||||
echo "[2/5] Applying Bananarchy QDSP6/Q6Voice and MSM8905/MSM8909 DTS patches..."
|
||||
patch -p1 < /bananarchy/patches/kernel/0001-msm8909-qdsp6-voice-sound-nokia-argon-6.12.patch
|
||||
patch -p1 < /bananarchy/patches/kernel/0003-msm8909-adreno-304-gpu-support.patch
|
||||
|
||||
echo "[3/5] Preparing kernel configuration and Module.symvers..."
|
||||
cp /bananarchy/patches/kernel/config-bananarchy-msm8909.armv7 .config
|
||||
@@ -92,9 +97,11 @@ EOF
|
||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- modules_prepare
|
||||
fi
|
||||
|
||||
echo "[4/5] Building QDSP6/Q6Voice sound modules, torch LED module, camera module, and Nokia MSM8905/MSM8909 DTBs..."
|
||||
echo "[4/5] Building QDSP6/Q6Voice sound modules, Adreno 304 DRM module, torch LED module, camera module, and Nokia MSM8905/MSM8909 DTBs..."
|
||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||
KBUILD_MODPOST_WARN=1 M=sound/soc/qcom/qdsp6 modules
|
||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||
KBUILD_MODPOST_WARN=1 M=drivers/gpu/drm/msm modules
|
||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||
KBUILD_MODPOST_WARN=1 M=/bananarchy/src/leds-msm8905-torch modules
|
||||
make ARCH=arm CROSS_COMPILE=armv7-alpine-linux-musleabihf- -j"$(nproc)" \
|
||||
@@ -106,20 +113,24 @@ EOF
|
||||
|
||||
echo "[5/5] Exporting built modules and DTBs to prebuilt/kernel-6.12.1-msm8916..."
|
||||
mkdir -p /bananarchy/prebuilt/kernel-6.12.1-msm8916/qdsp6 \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/drm \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/leds \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/camera \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/dtbs
|
||||
cp -a sound/soc/qcom/qdsp6/*.ko /bananarchy/prebuilt/kernel-6.12.1-msm8916/qdsp6/
|
||||
cp -a drivers/gpu/drm/msm/msm.ko /bananarchy/prebuilt/kernel-6.12.1-msm8916/drm/
|
||||
cp -a /bananarchy/src/leds-msm8905-torch/leds-msm8905-torch.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/leds/
|
||||
cp -a /bananarchy/src/msm8905-cam/msm8905-cam.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/camera/
|
||||
armv7-alpine-linux-musleabihf-strip --strip-unneeded \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/qdsp6/*.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/drm/*.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/leds/*.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/camera/*.ko
|
||||
for ko in \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/qdsp6/*.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/drm/*.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/leds/*.ko \
|
||||
/bananarchy/prebuilt/kernel-6.12.1-msm8916/camera/*.ko; do
|
||||
zstd -f -q -k "$ko" -o "${ko}.zst"
|
||||
|
||||
@@ -69,6 +69,7 @@ EOF
|
||||
libxau-dev \
|
||||
libxcvt-dev \
|
||||
libdrm-dev \
|
||||
libepoxy-dev \
|
||||
mesa-dev \
|
||||
eudev-dev \
|
||||
dbus-dev \
|
||||
@@ -103,7 +104,7 @@ endian = '\''little'\''
|
||||
EOF
|
||||
|
||||
ABI_MOD_DIR="/usr/lib/xorg/modules/xlibre-25"
|
||||
if [ "${FORCE_REBUILD:-0}" = "1" ] || [ ! -f /bananarchy/prebuilt/xlibre/usr/bin/Xorg ] || ! grep -q "continuing in shared VT mode" /bananarchy/prebuilt/xlibre/usr/bin/Xorg 2>/dev/null; then
|
||||
if [ "${FORCE_REBUILD:-0}" = "1" ] || [ ! -f /bananarchy/prebuilt/xlibre/usr/bin/Xorg ] || [ ! -f "/bananarchy/prebuilt/xlibre$ABI_MOD_DIR/extensions/libglx.so" ] || [ ! -f "/bananarchy/prebuilt/xlibre$ABI_MOD_DIR/libglamoregl.so" ] || ! grep -q "continuing in shared VT mode" /bananarchy/prebuilt/xlibre/usr/bin/Xorg 2>/dev/null; then
|
||||
echo "[3/5] Configuring and compiling Xlibre (X11Libre/xserver) for armv7..."
|
||||
rm -rf /tmp/build-xlibre
|
||||
meson setup /tmp/build-xlibre "$XLIBRE_SRC" \
|
||||
@@ -116,8 +117,8 @@ EOF
|
||||
--buildtype=release \
|
||||
-Dxorg=true \
|
||||
-Dxorg-sdk=true \
|
||||
-Dglamor=false \
|
||||
-Dglx=false \
|
||||
-Dglamor=true \
|
||||
-Dglx=true \
|
||||
-Ddri1=false \
|
||||
-Ddri2=true \
|
||||
-Ddri3=true \
|
||||
@@ -132,7 +133,7 @@ EOF
|
||||
-Dvgahw=false \
|
||||
-Dint10=false \
|
||||
-Ddga=false \
|
||||
-Dxv=false \
|
||||
-Dxv=true \
|
||||
-Dxvmc=false \
|
||||
-Dxephyr=false \
|
||||
-Dxnest=false \
|
||||
@@ -173,8 +174,8 @@ EOF
|
||||
--buildtype=release \
|
||||
-Dxorg=true \
|
||||
-Dxorg-sdk=true \
|
||||
-Dglamor=false \
|
||||
-Dglx=false \
|
||||
-Dglamor=true \
|
||||
-Dglx=true \
|
||||
-Ddri1=false \
|
||||
-Ddri2=true \
|
||||
-Ddri3=true \
|
||||
@@ -189,7 +190,7 @@ EOF
|
||||
-Dvgahw=false \
|
||||
-Dint10=false \
|
||||
-Ddga=false \
|
||||
-Dxv=false \
|
||||
-Dxv=true \
|
||||
-Dxvmc=false \
|
||||
-Dxephyr=false \
|
||||
-Dxnest=false \
|
||||
|
||||
Reference in new issue
Block a user