termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
1.96k stars 301 forks source link

Output glitch when running xfce4-session with zink+turnip on Termux-x11 #397

Closed hansm629 closed 1 year ago

hansm629 commented 1 year ago

Host Device : Galaxy S23 Ultra, Galaxy Tab S8+ 5G, Galaxy S20 Termux : PRoot-Distro Ubuntu 22.04 LTS Xwayland XFCE4-SESSION 4.18

XFCE4 with GALLIUM_DRIVER=virpipe on virglender-android, it will show fine If run XFCE4 with zink+turnip, there is an output glitch. :(

The command to execute virglender-android is as follows.

$ virgl_test_server_android & 
$ XDG_RUNTIME_DIR=${TMPDIR} termux-x11 :0 -ac & 
$ proot-distro login ubuntu --user id --shared-tmp --no-sysvipc
$ export DISPLAY=:0 GALLIUM_DRIVER=virpipe MESA_GL_VERSION_OVERRIDE=4.6COMPAT MESA_GLES_VERSION_OVERRIDE=3.2
$ dbus-launch --exit-with-session startxfce4 &

스크린샷_2023-07-27_14-45-57 스크린샷_2023-07-27_14-45-57_2 스크린샷_2023-07-27_14-45-57_1

It is well represented by virgl in XFCE4 GPU info.

Also, it is written as virgl even if it is executed without glmark2 environment variable in the terminal.

https://gitlab.freedesktop.org/Danil/mesa mesa-turnip-feature-a7xx-basic-support

at Branches

I have compiled and built the Freedreno turnip kgls driver.

When running a program with environment variables in a terminal zink+turnip is applied well and vkcube is running well

but Problem occurs when running XFCE4-SESSION.

The command to execute zink+turnip is as follows.

$ XDG_RUNTIME_DIR=${TMPDIR} termux-x11 :0 -ac & 
$ proot-distro login ubuntu --user id --shared-tmp --no-sysvipc
$ export DISPLAY=:0 MESA_LOADER_DRIVER_OVERRIDE=zink TU_DEBUG=noconform MESA_VK_WSI_DEBUG=sw VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/freedreno_icd.aarch64.json
$ dbus-launch --exit-with-session startxfce4 &

스크린샷_2023-07-27_15-02-04 스크린샷_2023-07-27_15-00-46 스크린샷_2023-07-27_15-02-32 스크린샷_2023-07-27_14-59-49 스크린샷_2023-07-27_15-02-04_2 스크린샷_2023-07-27_14-59-49_3 스크린샷_2023-07-27_14-59-49_4

Issues that occurred in XFCE4-SESSION executed with zink+turnip are

**1. Top UI not displayed

  1. Bottom panel UI is broken and displayed
  2. Application does not display title UI**

GPU information is displayed well by turnip.

glxgears, glmark2, vkcube, etc. also run well in the terminal. Is there a way to fix the XFCE4 output glitch?

Adreno650, Adreno730 and Adreno740 all have the same symptoms.

twaik commented 1 year ago

Xwayland

Not used in termux-x11 since ee2224e474ce0c184de7a2c9c454c658f8afe249

If run XFCE4 with zink+turnip, there is an output glitch. :(

Probably a problem of zink or turnip. X server can not affect this, only mesa or its components can.

Also, it is written as virgl even if it is executed without glmark2 environment variable in the terminal.

Probably some problem of your environment. X server has no ways to enforce using virpipe.

When running a program with environment variables in a terminal zink+turnip is applied well and vkcube is running well

but Problem occurs when running XFCE4-SESSION.

Issues that occurred in XFCE4-SESSION executed with zink+turnip are

**1. Top UI not displayed

  1. Bottom panel UI is broken and displayed
  2. Application does not display title UI**

I am pretty sure with vncserver you will have the same result, not a problem of termux-x11.

Is there a way to fix the XFCE4 output glitch?

You should ask this question in mesa support forum.