libera/#maemo-leste/ Wednesday, 2021-11-10

uvoshistoricly lots of exa implementations where slower than cpu only00:26
uvosmaybe the removed this because its perf was bad00:26
uvosjust wildly guesing here00:26
mighty17[m]freemangordon: with your mesa, i dont think hw accl works08:02
mighty17[m]logs -https://paste.debian.net/1218893/08:03
mighty17[m]`failed to load driver: omapdrm` i suppose something broke during packaging08:05
mighty17[m]https://github.com/xc-racer99/mesa-pvr/commit/0e47aea39d8afc868de1b405b11c47149b20cae4#diff-30d8f6be6320feeacf686be94f48c70869b52630e01ea625f0f15adc0d57c3e4 fmg, i suppose this commit should also be added?08:39
mighty17[m]yup, i clearly dont know how to build it correctly, any tips?08:44
freemangordonmighty17[m]: export MESA_LOADER_DRIVER_OVERRIDE=pvr08:49
freemangordonthis is an outstanding issue08:50
freemangordonpvr_dri is not being loaded when /dev/dri/card0 is omapdrm08:50
freemangordonI don;t know how this should be fixed08:51
freemangordonor rather - haven;t looked how to fix it08:51
freemangordonso, the patch you linked is not in 'my' mesa?08:53
freemangordonit seems like a hack to me though08:54
freemangordoncan we get xc-racer99 here somehow?08:54
mighty17[m]<freemangordon> "this is an outstanding issue" <- Outstanding??08:57
mighty17[m]freemangordon: Nope it's from xc racer's mesa08:57
mighty17[m]freemangordon: I suppose we can contact him from email, but afaik he doesn't have more time for this anymore08:57
freemangordonsorry, bad English :)09:06
freemangordonI meant пендинг09:06
freemangordonpending09:06
freemangordonanyway, I don;t feel symlinking everything to pvr driver a good solution09:07
freemangordonanyway, does it work with export MESA_LOADER_DRIVER_OVERRIDE=pvr ?09:08
freemangordonyeah, Tomi has replied :)09:10
mighty17[m]<freemangordon> "anyway, does it work with export..." <- yup, checked with kmscube, its working09:31
mighty17[m]but phosh still seems to be using sw rendering09:32
mighty17[m]or its just really slow compared to before09:33
mighty17[m]9fps with glxgears, ouch09:35
mighty17[m]yup phosh seems to be using llvm somehow, idk09:36
mighty17[m]`gbm: did not find extension DRI_Core version 1`09:37
mighty17[m]`gbm: did not find extension DRI_DRI2 version 1`09:37
mighty17[m]`failed to bind extensions`09:37
mighty17[m]`failed to load driver: omapdrm`09:37
freemangordonmaybe rename /dev/dri/card0<->/dev/dri/card109:37
mighty17[m]https://paste.debian.net/1218921/ it seems to want glamor now? lmao09:38
freemangordonwell, yes09:38
mighty17[m]on wayland?09:38
freemangordonno idea09:38
freemangordontry to rename the cards09:38
freemangordonor somehow provide /dev/dri/card1 to whatever wayland crap you use09:39
mighty17[m]freemangordon: no, /dev/dri/card0 is the correct one09:40
freemangordonmighty17[m]: well, I was able to run weston 6 here09:40
mighty17[m]else i get `Failed to take device '/dev/dri/card1': No such file or directory`09:40
freemangordonyou need to 'mv card0 card2','mv card1 card0','mv card2 card1'09:41
freemangordonso 'swap' not 'rename'09:41
mighty17[m]i only have card0 xD09:41
freemangordonmknod09:41
mighty17[m]`by-path     card0       renderD128  renderD129`09:41
freemangordonseems you already nuked card1 :)09:42
freemangordonsec09:42
mighty17[m]never had card1 xD09:42
freemangordonwhat?09:42
freemangordonwhat kernel is that?09:43
freemangordonand... what device is that?09:43
freemangordonyou should have 2 cards tehre09:43
mighty17[m]kernel is openpvrsgx 5.15-rc2 from tmlind09:43
freemangordonunless someone deletes one of them09:43
mighty17[m]and device is samsung-espresso09:43
freemangordonthe same here and I have 2 cards09:43
freemangordonare you sure you don;t have some init script that deletes the second card?09:44
freemangordon(not the device ofc)09:44
freemangordonbut I have 2 cards on d4 and n90009:44
mighty17[m]pretty sure nothing touches the cards09:44
freemangordonboth use the same kernel09:44
mighty17[m]oh wait09:44
mighty17[m]i now have two cards09:45
freemangordonsee09:45
freemangordonhmm, try now with export MESA_LOADER_DRIVER_OVERRIDE=pvr09:45
mighty17[m]still seems broken09:46
mighty17[m]yup pretty sure that didnt work09:47
freemangordonok, symlink pvr_dri.so to omapdrm_dri.so09:47
mighty17[m]only kmscube works xD09:47
freemangordonalso, which pvr_dri gets loaded?09:47
freemangordonare you sure you build mesa with WL enabled?09:47
mighty17[m]freemangordon: `-Dplatforms=x11,wayland \` ?09:49
mighty17[m]freemangordon: i already have omapdrm_dri.so09:49
freemangordonok, and what about pvr_dri.so?09:49
freemangordonwait. how?09:49
mighty17[m]uhh riight, about that09:49
freemangordonis it a symlink?09:49
mighty17[m]i used build instructions from xc-racer's mesa09:50
mighty17[m]which has that "hack"09:50
freemangordonso you cherry-picked that commit?09:50
mighty17[m]no, ugh i see09:50
mighty17[m]its a mess09:50
freemangordonyeah, it's a mess :D09:50
mighty17[m]`install -Dm644 output/src/mesa/drivers/dri/libmesa_dri_drivers.so "$pkgdir/$_dri_driverdir"/omapdrm_dri.so`09:51
mighty17[m]so this is what his mesa's build does09:51
freemangordonplease, pull my repo clean and built it as it is09:51
mighty17[m]actually, have a look here https://gitlab.com/postmarketOS/pmaports/-/blob/master/main/mesa-pvr-dri-classic/APKBUILD09:51
freemangordononce you have it working, start playing on top09:52
freemangordongitlab does nto liuke my browser (ff66)09:52
freemangordon*like09:52
mighty17[m]the issue is i'd like it packaged like in apkbuild09:52
freemangordonsore, but lets have it working as it is first09:53
freemangordonand then package it09:53
freemangordoncould you pastebin what you want me to see09:53
freemangordonI cannot open the link ^^^09:53
mighty17[m]https://paste.debian.net/1218928/09:53
mighty17[m]freemangordon: ah so the tradition of building mesa on omap4 must continue :P09:53
freemangordon_dri_drivers="exynos,tidss,tilcdc,omapdrm"09:54
freemangordonso pvr is renamed to omapdrm?09:54
freemangordonalso, why it is copyed 5 times instead of symlinks?09:54
mighty17[m]yeah09:54
freemangordonok, then MESA_LOADER_DRIVER_OVERRIDE=pvr should not be used09:55
mighty17[m]freemangordon: well idk xD09:55
mighty17[m]should be omapdrm?09:55
freemangordonyes09:55
freemangordontry with 'export MESA_LOADER_DRIVER_OVERRIDE=omapdrm'09:56
freemangordonor, symlink omapdrm_dri.so to pvr_dri.so09:56
freemangordonand then 'export MESA_LOADER_DRIVER_OVERRIDE=pvr'09:56
mighty17[m]i did the symlink, but that didnt work xD09:56
freemangordonhow exactly it doesn;t work?09:57
freemangordonalso, do you have the other blobs installed?09:57
mighty17[m]https://paste.debian.net/1218921/09:57
mighty17[m]yup all sgx blobs09:58
mighty17[m]freemangordon: `glamor: 'wl_drm' not supported`09:58
freemangordonwhat is "DRM universal planes unsupported " ?09:58
freemangordondo you have glmark?09:59
mighty17[m]yes09:59
freemangordoncould you run glmark-es2-drm?09:59
mighty17[m]freemangordon: tha comes everytime09:59
mighty17[m]freemangordon: that- uh works...10:00
mighty17[m]`[build] use-vbo=false: FPS: 89 FrameTime: 11.236 ms`10:00
freemangordoncool10:00
mighty17[m]`    GL_RENDERER:   PowerVR SGX 540`10:00
freemangordonok, seems glamor requires an extension not provided by the driver10:00
mighty17[m]so something wrong with phosh?10:00
freemangordonlooks like10:00
mighty17[m]freemangordon: ```... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/535e4357caf5b2a53a051eb487bfe66628e17ea7)10:01
freemangordondoes it work woth chomeoes mesa?10:01
freemangordon*with10:01
mighty17[m]it being phosh? yes it does10:01
freemangordonoh, I think I know the what happens10:04
freemangordonwhy it tries to use glamor? does it use glamor with chomeos mesa too?10:05
mighty17[m]I'll send a log with chromeos mesa shortly10:05
freemangordonthis mesa has x11 support, so I guess it tries to start xwayland10:05
freemangordonmighty17[m]: again, pull and build my tree as it is10:06
freemangordonthen export MESA_LOADER_DRIVER_OVERRIDE=pvr10:06
freemangordonthis is what I used for weston 6 and it worked10:06
mighty17[m]yeah, that seems to be the last resort10:07
freemangordonhttps://pastebin.com/4pWAB7JW10:07
freemangordonthis is weston.ini I used10:07
mighty17[m]https://paste.debian.net/1218937/ chromeos mesa10:09
freemangordonmighty17[m]: try to disable xwayland somehow10:09
mighty17[m]freemangordon: that shouldnt make a lot of diff, i have similar phoc.ini10:09
mighty17[m]freemangordon: build with just wayland support?10:09
freemangordonFailed to initialize glamor, falling back to sw10:09
freemangordonthe same10:09
mighty17[m]but hw accl works10:10
freemangordonwhat do you mean?10:10
mighty17[m]so something else is failing10:10
mighty17[m]ie, phosh with chromeos mesa does not use llvm10:10
freemangordonhow do you know it uses HW and not SW?10:11
mighty17[m]it, doesnt lag xD10:11
freemangordonit?10:11
freemangordonwhat is it?10:11
mighty17[m]it being the ui/phosh10:11
freemangordonah10:11
freemangordonwell, in both cases it says it does SW render10:12
mighty17[m]failed to bind extensions10:12
mighty17[m]failed to load driver: omapdrm10:12
mighty17[m]this seems to not come with chromeos mesa10:12
freemangordon'GL_OES_texture_border_clamp required' is required10:12
freemangordonwithout that extension you cannot start glamor10:13
freemangordonand this is not supported by PVR drivers10:13
mighty17[m]that extension is not supported by pvr anyways10:13
freemangordonso, no glamor for you10:13
mighty17[m]also10:13
mighty17[m]```10:13
mighty17[m]gbm: did not find extension DRI_Core version 110:13
mighty17[m]gbm: did not find extension DRI_DRI2 version 110:13
freemangordonno idea, I guess it tries to use wrong card10:14
mighty17[m]freemangordon: well in chromeos mesa, phosh purely uses wayland (x not supported at all)10:14
freemangordondid you try to swap the names?10:14
mighty17[m]yup10:14
freemangordonmighty17[m]: yes, that's why I said to disable xwayland in config10:14
mighty17[m]that made phosh refuse to start10:14
freemangordonwell...10:14
freemangordondo you have weston?10:14
mighty17[m]I'll have to download it, but yes i do10:15
freemangordonyou need v6, at least10:15
freemangordonso, please download10:15
freemangordonand start it with the config ^^^10:15
mighty17[m]its v5 :(10:15
freemangordonglmark-es2-wayland won;t work10:16
freemangordonbut well, at least it will tell you about the renderer10:16
freemangordoninstall it10:16
freemangordones2gears will wotk at least10:16
mighty17[m]Fmg, instead of this madness, I'll just clean compile your tree now10:29
mighty17[m]The ritual of compiling mesa on omap4 must happen :P10:29
freemangordonmhm10:32
freemangordon:D10:32
* bencoh mutters something about cross-compiling on pc and returns back to the shadow10:35
freemangordonI tried to do that in leste and failed miserably10:38
mighty17[m]<bencoh> "mutters something about cross-..." <- Nah the ritual must be done!10:46
bencohfreemangordon: right, but you haven't tried with my scratchbox-like wrappers! :)10:50
bencohactually lemme check that ... which devuan package would that be?10:50
Wizzupwell I guess this is fmg's mesa repo10:56
mighty17[m]<bencoh> "freemangordon: right, but you..." <- If give it a go then ;)10:57
mighty17[m]Eli5 pls10:57
bencohhmm, does it really need a newer meson than what is in leste/beowulf?11:10
bencohmeson (>= 0.52), but I have 0.4911:10
WizzupI am not sure if it does, please figure it our for us :)11:11
Wizzupwe also run into this when packaging it in CI11:11
bencohah :D11:11
bencohhow do you build it then?11:11
Wizzupbtw, did you document your way somewhere? it might be useful for parazyd11:11
Wizzupwe don't in CI yet11:11
Wizzupbut we'd love ti11:11
Wizzupto*11:11
bencohWizzup: I did back then, I even posted it here11:11
Wizzupwe're on some older mesa11:11
Wizzupbencoh: I recall the pastebin11:11
Wizzupmaybe it makes sense to have it on the wiki somewhere11:11
bencohyeah I mean, how do fmg and others build it?11:11
bencoh(mesa)11:12
WizzupI suspect they don't run into problems since they don't use dpkg-buidlpackage11:12
Wizzupiow probably the meson bump is not required for our usecase11:12
bencohalright, let's change the requirement then11:13
bencohmeson.build:21:0: ERROR:  Meson version is 0.49.2 but project requires >= 0.52.11:13
bencohduhduhduh ...11:13
Wizzupmaybe it is in backports or pip installable?11:14
Wizzupfreemangordon:11:14
freemangordonI installed newer meson11:23
freemangordonnot sure where from11:23
freemangordonmaybe from chimaera11:23
freemangordonVersion: 0.56.1-1~bpo10+111:24
freemangordonhttps://packages.debian.org/buster-backports/meson11:24
freemangordonbencoh: ^^^11:25
bencohlooks like meson 0.49 has trouble with proper function detection (it failed on popcount)11:25
bencohI just installed 0.56 as well11:25
freemangordonyeah11:25
bencohlooks like it started building (with dpkg-buildpackage) ... let's see if it works11:26
freemangordonit does11:26
freemangordonbut you may to tweak debain/rules11:26
freemangordonIIRC pvr is not enabled11:26
bencohmeson is python-based and it kinda grinds the cpu in a silly way apparently (since it's emulated in my setup)11:26
freemangordon-       DRI_DRIVERS += nouveau11:27
freemangordon+       DRI_DRIVERS += nouveau pvr11:27
bencohI replaced ninja with its amd64 counterpart, but not meson (I was afraid to break the detection system)11:27
bencohah11:27
bencohwell, we'll try that once it builds without pvr11:27
bencohsomething tells me I could remove nouveau/radeon as well actually, but meh11:28
freemangordonyeah11:28
freemangordonwas about to ask why do we need that11:28
bencohwe don't! :D11:28
bencohwell, except for the pc version of leste (:>)11:29
Wizzupbencoh: if this works, it would be great to see if it builds rebased on latest mesa release as well11:29
WizzupI guess 21.2.5 or so11:29
Wizzupthen we can also provide pinephone users with a newer lima11:30
Wizzupnewer X might help them, too, since that's released now11:30
bencohthis is 17.3, right?11:30
Wizzupno, it's pretty recent I think11:30
bencoh(git describe says mesa-17.3.1-1-39356-g5bd40a453e1)11:30
WizzupI think it's 21.something based11:30
bencohhmm11:30
bencohI'm currently trying to build mesa-pvr-ti11:30
WizzupI might be wrong, but 17.x is really really really old11:31
Wizzupseems more like a case of missing tags or something11:31
Wizzuphttps://github.com/freemangordon/mesa/commit/7b866d516a7dc0a36dc8ea7ce7733414294e26d911:31
Wizzupso it's 20.something11:32
freemangordon:nod:11:32
bencohis that mea-pvr-ti?11:32
freemangordonyes11:32
bencohah, got it11:32
bencohthey have annoted tags and unannoted tags11:32
bencohgit describe --tags origin/mesa-pvr-ti11:32
bencoh20.3.2-18-g5bd40a453e111:32
freemangordonmesa (20.3.2-2) UNRELEASED; urgency=medium11:32
bencohthat's better11:32
Wizzupand iirc it rebased on top of 21.2.5 without many problems according to uvos, so if this builds, maybe it's worth trying that11:32
bencoh21.x doesn't seem to be part of master though .... actually I don't understand how they manage their release tags11:33
bencohgit describe --tags origin/master11:33
bencoh20.3.0-4446-g288032a873111:33
bencohsounds silly to me11:33
freemangordonhmm, origin is?11:33
bencohyour tree11:34
bencohoh, I guess you didn't update master11:34
bencoh:)11:34
freemangordonmhm11:34
freemangordon:)11:34
bencoh(still building ...)11:34
freemangordontakes 2 hours on d4 :)11:34
bencohI hope it will take less :]11:34
Wizzupfreemangordon: still better than on n90011:34
Wizzup;)11:34
bencohcurrently building freedreno I think11:35
freemangordonwell, I guess it will not be able to build it on n90011:35
freemangordonbecause of the lack of RAM11:35
bencohhuhu11:35
bencohnow running tests ...11:37
bencoh(that part if freaking slow, obviously)11:37
bencohnote to self: replace dwz (dwarf optimization, wtf) with amd64 counterpart11:44
bencohhttp://pastebin.notk.org/pastebin.php?show=d5378577f11:49
bencohI'll probably replace dwz then retry with pvr enabled11:50
bencohfreemangordon: do I need any external lib for pvr?11:50
bencohor is it self-contained?11:50
freemangordonbencoh: no external libs are needed for build11:54
freemangordonit dload() pvr_dri_support.so or somesuch11:55
freemangordonin runtime that is11:55
bencohalright, let's see then11:56
freemangordonhave to run, ttyl11:56
bencohlooks like it worked for pvr as well12:39
Wizzupneat12:41
Wizzupjust wondering, did that also build lima and such?12:41
bencohanyone wanna try the result? :]12:41
bencohI think so, lemme check12:42
bencoh$ dpkg-deb -c ../libgl1-mesa-dri_20.3.2-2_armhf.deb |grep lima12:42
bencohhrw-r--r-- root/root         0 2021-01-04 07:07 ./usr/lib/arm-linux-gnueabihf/dri/lima_dri.so link to ./usr/lib/arm-linux-gnueabihf/dri/armada-drm_dri.so12:42
bencohfunnily enough, pvr_dri points to nouveau_vieux.so btw12:42
Wizzupthat seems quite weird/wrong (for both), but I am not sure12:42
bencohI thought so, then I had a look at pvr vs nouveau, and cmp on the files in debian/ says they're identical; and pvr stuff shows up in pvr_dri.so12:43
Wizzupaha12:45
Wizzupso maybe dpkg-deb -c is just confused12:46
Wizzupunless pvr stuff shows up in nouveau_vieux ;-)12:46
bencohwell, cmp says they're identical, so I'd expect so12:56
bencohunless I missed something12:56
bencoh(currently uploading for anyone willing to try)12:56
bencohhttp://muarf.org/~bencoh/maemo/leste/mesa-pvr-ti/13:07
bencoh(disclaimer: if it breaks, it means either that my build failed miserably, or that fmg forgot to remove some easteregg :>)13:08
Wizzup(plus: it also requires a lot of other things installed, so it can't just be installed on a d4 or n900 without all the other parts)13:08
mighty17[m]<freemangordon> "takes 2 hours on d4 :)" <- Only 2 hours?15:14
mighty17[m](but then I won't be able to uninstall it :()15:14
mighty17[m]freemangordon: what build commands needed for mesa? Like the cflags/env vars16:09
mighty17[m]Was the pastebin link I sent enough?16:09
mighty17[m]freemangordon: `MESA-LOADER: failed to open omapdrm: Error loading shared library /usr/lib/xorg/modules/dri/omapdrm_dri.so: No such file or directory (search paths /usr/lib/xorg/modules/dri, suffix _dri)` errmm what??17:57
bencohI guess you should keep omapdrm in the dri_drivers list17:58
mighty17[m]i forgot to add _dri xD17:59
mighty17[m]anyways now i get17:59
* mighty17[m] sent a code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/b13bb44b49a8a6c780e07f4bde79e8dd91d652b617:59
mighty17[m]back to the same square18:03
freemangordondid you try weston?18:08
mighty17[m]I only have Weston 5 packaged18:13
freemangordontry it18:13
freemangordonto see if mesa works correctly18:13
freemangordonor, build weston 618:14
mighty17[m]Will do that later, night for me18:15

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