libera/#maemo-leste/ Sunday, 2021-10-31

freemangordonok, seems I lack the theory how a tear-free, zero-copy xorg driver shall be implemented, any hints appreciated07:33
Wizzupwell tearing is prevalent on many devices, so I am not sure if that's a big deal atm07:58
freemangordonbut, if I am going to do a driver from scratch, why not take it into consideration?07:59
Wizzupthat's true, I think there are a few X drivers that have tearless operation08:03
Wizzupone of the tearfree modsetting bug reports links to radeon drivers that solve this08:03
Wizzupand there's als the modesetting patch that makes modesetting tearless on non-rotated displays08:03
freemangordonhmm, seems xorg pvr_drv source code was available in the 4x versions of graphics sdk08:03
freemangordonbut not in 5x, for some reason08:04
Wizzupthis entire bug report might be interesting to read: https://gitlab.freedesktop.org/xorg/xserver/-/issues/24408:04
freemangordonmy browser is too old for gitlab :(08:05
freemangordon(ff 66)08:05
Wizzuptearfree on amdgpu also has a big perf cost btw08:05
freemangordonmyba they copy the front buffer on start of every operation08:06
freemangordon*maybe08:06
freemangordonI mean - I am thinking on it for the last couple of days08:06
freemangordonand still have no clear vision on how shall changes be copied between buffers :)08:07
Wizzupthe maybe check out this branch, but keep in mind that it doesn't reportedly work for everyone https://gitlab.freedesktop.org/vliaskov/xserver/-/commits/tearfree-1.20.908:08
Wizzupbut tearing being problematic is one of the reasons folks wanted to move to wayland08:13
WizzupI wonder if this is not something we want to tacke later08:13
Wizzuptackle*08:13
Wizzupthis https://unix.stackexchange.com/questions/182801/why-is-video-tearing-such-a-problem-in-linux suggests to read https://magcius.github.io/xplain/article/index.html08:15
Wizzup"After reading this (wonderful explanation) of how an Xorg server works I realized that X server paints window updates directly to the memory card at any random time unless you use a compositing enabled window manager." and below on the stackexchange link08:15
Wizzupbut yeah I don't have answers just pointers08:15
Wizzupmaybe you already read all this08:15
WizzupI'd be fine with tearing in place, if it's not artifacting and just tearing08:16
Wizzupoften with xorg is also seems to require special window manager workaround as well08:16
freemangordonWizzup: well, we are compositing (h-d)08:16
freemangordonbut, on d4 I see tearing when h-d scrolls08:17
Wizzupyes, but kwim with compositing still has problems in certain vsync modes it seems for example08:17
freemangordonso something is not quite right08:17
Wizzupkwin*08:17
Wizzupit could be related to opendrm, or when/how the x server syncs, how the exact page flip is timed, etc08:17
WizzupI think it'd be perhaps better to fix any hangs, get this stuff going, and then look at it again a bit later, but that's up to you of course08:18
Wizzupas in I don't think this will be simple at all08:18
freemangordonsure it is not08:18
freemangordonthe point is that I don;t see any point in fixing MS08:18
Wizzupin any case I might read this since it seems good https://magcius.github.io/xplain/article/index.html08:18
Wizzupwell others might fix tearing in MS, there are patches for some of it08:19
freemangordonit is not about the tearing08:19
Wizzupoh08:19
freemangordonI just don;t see it fit for our usecase08:19
freemangordonrotation being one of the major issues08:19
freemangordonolso, glamor is too slow even on d4, forget about n90008:20
Wizzupmhm08:20
freemangordonmy replacement is semi-useful, but it still does texture copy with a shader08:20
freemangordonmaybe this cannot be avoided, because of the compositing08:21
freemangordonbut in any case, I first want to see if I can get pvr_drv working08:21
freemangordonbecause if this works, we get HW accelerated EXA for free08:22
freemangordonand I will have to just add dri3/PRESENT on top, IIUC08:22
Wizzupok08:24
freemangordonyeah :D08:25
freemangordonXOrg-sources.tar.gz08:25
Wizzup?08:26
freemangordonpvr_drv should be there, hopefully08:26
freemangordonhmm, cannot find it08:32
freemangordonyeah, not available, will have to RE it :(08:46
Wizzupis it large?09:02
freemangordonno, but still09:04
freemangordon~50k09:04
freemangordonbut I have one with DWARF info, so not much of an issue09:04
Wizzupok09:04
freemangordonmy concern is if this will help, as API has changed09:05
freemangordonso, I will have to start porting it to 1.17 only after I have that REed09:06
Wizzupyeah09:06
freemangordonwithout even knowing if it is goingt o work09:06
freemangordonbut yeah09:06
Wizzupuvos: hm call hangup didn't work for me and it kept vibrating after call was hung up on remote side12:21
mighty17[m]hey is there any omap device with wm1811/wm8994 audio?15:09

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!