JeffyCN / xorg-xserver

X server with glamor hacks for gles2 and rga based exa
Other
15 stars 22 forks source link

Graphical glitch with glamor on 1.20.8-2ubuntu2 #4

Closed lichforever1995 closed 3 years ago

lichforever1995 commented 3 years ago

Hello! I run in to some graphical glitches when using glamor

Windows and texts looks distorted, and Xorg.0.log is flooded with errors like

...
[  5670.324] (EE) modeset(0): Failed to make 1x21x8bpp GBM bo
[  5670.326] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo
[  5670.328] (EE) modeset(0): Failed to make 19x19x8bpp GBM bo
[  5670.336] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo
[  5670.337] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo
...

I can screenshot this effect so it's not a hardware issue, and if I switch to exa accel, it works just fine. This seems to happen only when I use xfce, it dissappears when I switch to gnome.

I'd like to know what might have caused it and if there is any way to fix it or work around it?

Stuff I use:

Here is the screenshot, notice the jagged window frame and blurry text. Screenshot_2020-11-27_03-14-29

modesetting.conf ```conf Section "Device" Identifier "Rockchip Graphics" Driver "modesetting" # Option "AccelMethod" "exa" Option "AccelMethod" "glamor" Option "DRI" "2" # Option "FlipFB" "always" Option "PageFlip" "false" Option "FlipFB" "none" Option "NoEDID" "true" EndSection Section "Screen" Identifier "Default Screen" Device "Rockchip Graphics" Monitor "Default Monitor" EndSection ### Valid values for rotation are "normal", "left", "right" Section "Monitor" Identifier "Default Monitor" Option "Rotate" "normal" EndSection ``` PageFlip option has to be set to false when I use exa, otherwise I can't log into the system
Xorg.0.log ```log [ 7502.851] X.Org X Server 1.20.8 X Protocol Version 11, Revision 0 [ 7502.852] Build Operating System: Linux 4.4.194 armv7l Ubuntu [ 7502.852] Current Operating System: Linux localhost.localdomain 4.4.194 #290 SMP Tue Nov 24 10:17:13 CST 2020 armv7l [ 7502.852] Kernel command line: storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal androidboot.slot_suffix= androidboot.serialno=T8P9XUT0OO earlyprintk rw rootwait console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=ext4 [ 7502.852] Build Date: 06 April 2020 09:39:29AM [ 7502.852] xorg-server 2:1.20.8-2ubuntu2 (For technical support please see http://www.ubuntu.com/support) [ 7502.852] Current version of pixman: 0.38.4 [ 7502.852] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 7502.852] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 7502.852] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Nov 27 03:36:47 2020 [ 7502.853] (==) Using config directory: "/etc/X11/xorg.conf.d" [ 7502.853] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 7502.853] (==) No Layout section. Using the first Screen section. [ 7502.853] (**) |-->Screen "Default Screen" (0) [ 7502.853] (**) | |-->Monitor "Default Monitor" [ 7502.854] (**) | |-->Device "Rockchip Graphics" [ 7502.854] (==) Automatically adding devices [ 7502.854] (==) Automatically enabling devices [ 7502.854] (==) Automatically adding GPU devices [ 7502.854] (==) Automatically binding GPU devices [ 7502.854] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 7502.854] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. [ 7502.854] Entry deleted from font path. [ 7502.854] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist. [ 7502.854] Entry deleted from font path. [ 7502.854] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist. [ 7502.854] Entry deleted from font path. [ 7502.854] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist. [ 7502.854] Entry deleted from font path. [ 7502.854] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist. [ 7502.854] Entry deleted from font path. [ 7502.854] (==) FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/Type1, built-ins [ 7502.854] (==) ModulePath set to "/usr/lib/xorg/modules" [ 7502.854] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 7502.855] (II) Loader magic: 0x7f767008 [ 7502.855] (II) Module ABI versions: [ 7502.855] X.Org ANSI C Emulation: 0.4 [ 7502.855] X.Org Video Driver: 24.1 [ 7502.855] X.Org XInput driver : 24.1 [ 7502.855] X.Org Server Extension : 10.0 [ 7502.857] (++) using VT number 7 [ 7502.858] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration [ 7502.859] (II) xfree86: Adding drm device (/dev/dri/card0) [ 7502.859] (II) no primary bus or device found [ 7502.859] falling back to /sys/devices/platform/display-subsystem/drm/card0 [ 7502.859] (II) LoadModule: "glx" [ 7502.860] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [ 7502.861] (II) Module glx: vendor="X.Org Foundation" [ 7502.862] compiled for 1.20.8, module version = 1.0.0 [ 7502.862] ABI class: X.Org Server Extension, version 10.0 [ 7502.862] (II) LoadModule: "modesetting" [ 7502.862] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so [ 7502.869] (II) Module modesetting: vendor="X.Org Foundation" [ 7502.869] compiled for 1.20.8, module version = 1.20.8 [ 7502.869] Module class: X.Org Video Driver [ 7502.869] ABI class: X.Org Video Driver, version 24.1 [ 7502.869] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 7502.870] (II) modeset(0): using drv /dev/dri/card0 [ 7502.870] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 7502.870] (II) modeset(0): Creating default Display subsection in Screen section "Default Screen" for depth/fbbpp 24/32 [ 7502.870] (==) modeset(0): Depth 24, (==) framebuffer bpp 32 [ 7502.870] (**) modeset(0): Option "AccelMethod" "glamor" [ 7502.870] (**) modeset(0): Option "PageFlip" "false" [ 7502.870] (**) modeset(0): Option "FlipFB" "none" [ 7502.870] (**) modeset(0): Option "NoEDID" "true" [ 7502.870] (==) modeset(0): RGB weight 888 [ 7502.870] (==) modeset(0): Default visual is TrueColor [ 7502.870] (II) Loading sub module "glamoregl" [ 7502.870] (II) LoadModule: "glamoregl" [ 7502.871] (II) Loading /usr/lib/xorg/modules/libglamoregl.so [ 7502.888] (II) Module glamoregl: vendor="X.Org Foundation" [ 7502.888] compiled for 1.20.8, module version = 1.0.1 [ 7502.888] ABI class: X.Org ANSI C Emulation, version 0.4 [ 7502.895] (II) modeset(0): glamor X acceleration enabled on Mali-T760 [ 7502.895] (II) modeset(0): glamor initialized [ 7502.895] (II) modeset(0): Output HDMI-1 using monitor section Default Monitor [ 7502.895] (**) modeset(0): Option "Rotate" "normal" [ 7502.911] (II) modeset(0): Output VGA-1 has no monitor section [ 7502.911] (II) modeset(0): EDID for output HDMI-1 [ 7502.926] (II) modeset(0): EDID for output VGA-1 [ 7502.927] (II) modeset(0): Printing probed modes for output VGA-1 [ 7502.927] (II) modeset(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP) [ 7502.927] (II) modeset(0): Modeline "1680x1050"x60.0 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync (65.3 kHz e) [ 7502.927] (II) modeset(0): Modeline "1280x1024"x75.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e) [ 7502.927] (II) modeset(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e) [ 7502.927] (II) modeset(0): Modeline "1440x900"x59.9 106.50 1440 1520 1672 1904 900 903 909 934 -hsync +vsync (55.9 kHz e) [ 7502.927] (II) modeset(0): Modeline "1280x800"x59.8 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync (49.7 kHz e) [ 7502.927] (II) modeset(0): Modeline "1280x720"x60.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e) [ 7502.927] (II) modeset(0): Modeline "1024x768"x75.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e) [ 7502.927] (II) modeset(0): Modeline "1024x768"x70.1 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync (56.5 kHz e) [ 7502.927] (II) modeset(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e) [ 7502.927] (II) modeset(0): Modeline "800x600"x72.2 50.00 800 856 976 1040 600 637 643 666 +hsync +vsync (48.1 kHz e) [ 7502.927] (II) modeset(0): Modeline "800x600"x75.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e) [ 7502.927] (II) modeset(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e) [ 7502.927] (II) modeset(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e) [ 7502.927] (II) modeset(0): Modeline "640x480"x75.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e) [ 7502.927] (II) modeset(0): Modeline "640x480"x72.8 31.50 640 664 704 832 480 489 492 520 -hsync -vsync (37.9 kHz e) [ 7502.927] (II) modeset(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e) [ 7502.927] (II) modeset(0): Modeline "720x400"x70.1 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e) [ 7502.927] (II) modeset(0): Output HDMI-1 disconnected [ 7502.927] (II) modeset(0): Output VGA-1 connected [ 7502.927] (II) modeset(0): Using exact sizes for initial modes [ 7502.927] (II) modeset(0): Output VGA-1 using initial mode 1920x1080 +0+0 [ 7502.927] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0) [ 7502.927] (==) modeset(0): DPI set to (96, 96) [ 7502.927] (II) Loading sub module "fb" [ 7502.928] (II) LoadModule: "fb" [ 7502.928] (II) Loading /usr/lib/xorg/modules/libfb.so [ 7502.928] (II) Module fb: vendor="X.Org Foundation" [ 7502.928] compiled for 1.20.8, module version = 1.0.0 [ 7502.928] ABI class: X.Org ANSI C Emulation, version 0.4 [ 7503.025] (==) modeset(0): Backing store enabled [ 7503.025] (==) modeset(0): Silken mouse enabled [ 7503.026] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc. [ 7503.026] (==) modeset(0): DPMS enabled [ 7503.026] (WW) modeset(0): Option "DRI" is not used [ 7503.026] (WW) modeset(0): Option "Rotate" is not used [ 7503.027] (II) modeset(0): [DRI2] Setup complete [ 7503.027] (II) modeset(0): [DRI2] DRI driver: rockchip [ 7503.027] (II) modeset(0): [DRI2] VDPAU driver: rockchip [ 7503.027] (II) Initializing extension Generic Event Extension [ 7503.028] (II) Initializing extension SHAPE [ 7503.028] (II) Initializing extension MIT-SHM [ 7503.029] (II) Initializing extension XInputExtension [ 7503.029] (II) Initializing extension XTEST [ 7503.029] (II) Initializing extension BIG-REQUESTS [ 7503.030] (II) Initializing extension SYNC [ 7503.030] (II) Initializing extension XKEYBOARD [ 7503.031] (II) Initializing extension XC-MISC [ 7503.031] (II) Initializing extension SECURITY [ 7503.031] (II) Initializing extension XFIXES [ 7503.032] (II) Initializing extension RENDER [ 7503.032] (II) Initializing extension RANDR [ 7503.033] (II) Initializing extension COMPOSITE [ 7503.033] (II) Initializing extension DAMAGE [ 7503.034] (II) Initializing extension MIT-SCREEN-SAVER [ 7503.034] (II) Initializing extension DOUBLE-BUFFER [ 7503.034] (II) Initializing extension RECORD [ 7503.035] (II) Initializing extension DPMS [ 7503.035] (II) Initializing extension Present [ 7503.036] (II) Initializing extension DRI3 [ 7503.036] (II) Initializing extension X-Resource [ 7503.036] (II) Initializing extension XVideo [ 7503.037] (II) Initializing extension XVideo-MotionCompensation [ 7503.037] (II) Initializing extension SELinux [ 7503.037] (II) SELinux: Disabled on system [ 7503.037] (II) Initializing extension GLX [ 7503.557] (EE) AIGLX error: Calling driver entry point failed [ 7503.569] (II) IGLX: Loaded and initialized swrast [ 7503.569] (II) GLX: Initialized DRISWRAST GL provider for screen 0 [ 7503.569] (II) Initializing extension XFree86-VidModeExtension [ 7503.569] (II) Initializing extension XFree86-DGA [ 7503.570] (II) Initializing extension XFree86-DRI [ 7503.570] (II) Initializing extension DRI2 [ 7503.571] (II) modeset(0): Damage tracking initialized [ 7503.571] (II) modeset(0): Setting screen physical size to 508 x 285 [ 7503.658] (II) config/udev: Adding input device MOSART Semi. 2.4G Keyboard Mouse (/dev/input/event0) [ 7503.658] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "libinput keyboard catchall" [ 7503.658] (II) LoadModule: "libinput" [ 7503.658] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so [ 7503.662] (II) Module libinput: vendor="X.Org Foundation" [ 7503.662] compiled for 1.20.4, module version = 0.29.0 [ 7503.662] Module class: X.Org XInput Driver [ 7503.662] ABI class: X.Org XInput driver, version 24.1 [ 7503.662] (II) Using input driver 'libinput' for 'MOSART Semi. 2.4G Keyboard Mouse' [ 7503.662] (**) MOSART Semi. 2.4G Keyboard Mouse: always reports core events [ 7503.662] (**) Option "Device" "/dev/input/event0" [ 7503.662] (**) Option "_source" "server/udev" [ 7503.669] (II) event0 - MOSART Semi. 2.4G Keyboard Mouse: is tagged by udev as: Keyboard [ 7503.669] (II) event0 - MOSART Semi. 2.4G Keyboard Mouse: device is a keyboard [ 7503.670] (II) event0 - MOSART Semi. 2.4G Keyboard Mouse: device removed [ 7503.720] (**) Option "config_info" "udev:/sys/devices/platform/ff540000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:062A:4101.0001/input/input1/event0" [ 7503.720] (II) XINPUT: Adding extended input device "MOSART Semi. 2.4G Keyboard Mouse" (type: KEYBOARD, id 6) [ 7503.720] (**) Option "xkb_model" "pc105" [ 7503.720] (**) Option "xkb_layout" "us" [ 7503.724] (II) event0 - MOSART Semi. 2.4G Keyboard Mouse: is tagged by udev as: Keyboard [ 7503.725] (II) event0 - MOSART Semi. 2.4G Keyboard Mouse: device is a keyboard [ 7503.727] (II) config/udev: Adding input device MOSART Semi. 2.4G Keyboard Mouse (/dev/input/event1) [ 7503.727] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "libinput pointer catchall" [ 7503.727] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "libinput keyboard catchall" [ 7503.728] (II) Using input driver 'libinput' for 'MOSART Semi. 2.4G Keyboard Mouse' [ 7503.728] (**) MOSART Semi. 2.4G Keyboard Mouse: always reports core events [ 7503.728] (**) Option "Device" "/dev/input/event1" [ 7503.728] (**) Option "_source" "server/udev" [ 7503.732] (II) event1 - MOSART Semi. 2.4G Keyboard Mouse: is tagged by udev as: Keyboard Mouse [ 7503.732] (II) event1 - MOSART Semi. 2.4G Keyboard Mouse: device is a pointer [ 7503.732] (II) event1 - MOSART Semi. 2.4G Keyboard Mouse: device is a keyboard [ 7503.733] (II) event1 - MOSART Semi. 2.4G Keyboard Mouse: device removed [ 7503.780] (II) libinput: MOSART Semi. 2.4G Keyboard Mouse: needs a virtual subdevice [ 7503.780] (**) Option "config_info" "udev:/sys/devices/platform/ff540000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:062A:4101.0002/input/input2/event1" [ 7503.780] (II) XINPUT: Adding extended input device "MOSART Semi. 2.4G Keyboard Mouse" (type: MOUSE, id 7) [ 7503.780] (**) Option "AccelerationScheme" "none" [ 7503.780] (**) MOSART Semi. 2.4G Keyboard Mouse: (accel) selected scheme none/0 [ 7503.780] (**) MOSART Semi. 2.4G Keyboard Mouse: (accel) acceleration factor: 2.000 [ 7503.780] (**) MOSART Semi. 2.4G Keyboard Mouse: (accel) acceleration threshold: 4 [ 7503.785] (II) event1 - MOSART Semi. 2.4G Keyboard Mouse: is tagged by udev as: Keyboard Mouse [ 7503.785] (II) event1 - MOSART Semi. 2.4G Keyboard Mouse: device is a pointer [ 7503.785] (II) event1 - MOSART Semi. 2.4G Keyboard Mouse: device is a keyboard [ 7503.787] (II) config/udev: Adding input device rk29-keypad (/dev/input/event2) [ 7503.787] (**) rk29-keypad: Applying InputClass "libinput keyboard catchall" [ 7503.787] (II) Using input driver 'libinput' for 'rk29-keypad' [ 7503.787] (**) rk29-keypad: always reports core events [ 7503.787] (**) Option "Device" "/dev/input/event2" [ 7503.787] (**) Option "_source" "server/udev" [ 7503.788] (II) event2 - rk29-keypad: is tagged by udev as: Keyboard [ 7503.788] (II) event2 - rk29-keypad: device is a keyboard [ 7503.789] (II) event2 - rk29-keypad: device removed [ 7503.810] (**) Option "config_info" "udev:/sys/devices/platform/rockchip-key/input/input3/event2" [ 7503.810] (II) XINPUT: Adding extended input device "rk29-keypad" (type: KEYBOARD, id 8) [ 7503.810] (**) Option "xkb_model" "pc105" [ 7503.810] (**) Option "xkb_layout" "us" [ 7503.812] (II) event2 - rk29-keypad: is tagged by udev as: Keyboard [ 7503.812] (II) event2 - rk29-keypad: device is a keyboard [ 7503.824] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "libinput pointer catchall" [ 7503.824] (**) MOSART Semi. 2.4G Keyboard Mouse: Applying InputClass "libinput keyboard catchall" [ 7503.824] (II) Using input driver 'libinput' for 'MOSART Semi. 2.4G Keyboard Mouse' [ 7503.824] (**) MOSART Semi. 2.4G Keyboard Mouse: always reports core events [ 7503.824] (**) Option "Device" "/dev/input/event1" [ 7503.824] (**) Option "_source" "_driver/libinput" [ 7503.824] (II) libinput: MOSART Semi. 2.4G Keyboard Mouse: is a virtual subdevice [ 7503.825] (**) Option "config_info" "udev:/sys/devices/platform/ff540000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:062A:4101.0002/input/input2/event1" [ 7503.825] (II) XINPUT: Adding extended input device "MOSART Semi. 2.4G Keyboard Mouse" (type: KEYBOARD, id 9) [ 7503.825] (**) Option "xkb_model" "pc105" [ 7503.825] (**) Option "xkb_layout" "us" [ 7506.568] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7506.570] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7506.571] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7506.572] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7506.606] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7506.607] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7506.608] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7506.609] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7506.630] (II) modeset(0): Disabling kernel dirty updates, not required. [ 7506.671] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7506.672] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7506.673] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7506.674] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.158] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.159] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.160] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.161] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.174] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.175] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.176] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.177] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.303] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.304] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.306] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.307] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.319] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.320] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.321] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.322] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.435] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.436] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.437] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.437] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.448] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.449] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.450] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.451] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.564] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.566] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.567] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.568] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.578] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.579] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.580] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.581] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.648] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.650] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.651] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.652] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.664] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.665] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.666] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.667] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7507.912] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.914] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7507.915] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7507.916] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7508.711] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7508.713] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7508.713] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7508.714] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7509.110] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7509.112] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7509.112] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7509.113] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7509.915] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7509.916] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7509.917] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7509.918] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7510.313] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7510.315] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7510.315] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7510.316] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7511.114] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7511.115] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7511.116] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7511.117] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7511.515] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7511.551] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7511.552] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7511.553] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7512.315] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7512.317] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7512.318] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7512.318] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7512.714] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7512.716] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7512.716] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7512.718] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7513.515] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7513.517] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7513.518] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7513.519] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7513.919] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7513.920] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7513.921] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7513.922] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7514.721] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7514.722] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7514.723] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7514.724] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7515.118] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7515.119] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7515.120] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7515.121] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7515.921] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7515.923] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7515.924] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7515.925] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7516.112] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7516.113] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7516.115] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7516.115] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7516.125] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7516.126] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7516.127] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7516.127] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7516.321] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7516.323] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7516.323] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7516.324] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7517.120] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7517.122] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7517.122] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7517.123] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo [ 7517.522] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7517.523] (EE) modeset(0): Failed to make 18x1x8bpp GBM bo [ 7517.524] (EE) modeset(0): Failed to make 1x24x8bpp GBM bo [ 7517.525] (EE) modeset(0): Failed to make 24x1x8bpp GBM bo ... ```
JeffyCN commented 3 years ago

Guessing the libmali's gbm doesn't like bpp 8(GBM_FORMAT_R8)...

Maybe try this: +++ b/glamor/glamor.c @@ -541,6 +541,7 @@ glamor_setup_formats(ScreenPtr screen) { glamor_screen_private *glamor_priv = glamor_get_screen_private(screen);

+#if 0 /* Prefer r8 textures since they're required by GLES3 and core,

lichforever1995 commented 3 years ago

No luck, looks like texts and shadows depend on these format to render. Not adding them makes all text and shadows become black chuncks...

Screenshot_2020-11-30_02-27-16

JeffyCN commented 3 years ago

I wrote a simple test and confirm the mali doesn't support creating bo for depth 8...

This might work: +++ b/glamor/glamor.c @@ -199,6 +199,7 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, w <= glamor_priv->glyph_max_dim && h <= glamor_priv->glyph_max_dim) || (w == 0 && h == 0)

lichforever1995 commented 3 years ago

Ha! Adding the line removes the Error Log. However the glitch persists. So I guess 8bpp is not the one to blame in this case.

JeffyCN commented 3 years ago

Any chance related to the "float precision"? Try https://github.com/JeffyCN/xorg-xserver/commit/e71abdcde5b3772126a3e1030141d89ec920bc4d

lichforever1995 commented 3 years ago

Any chance related to the "float precision"? Try e71abdc

Nice! Merged the commit and the glitches are gone! Thanks for the help!