alyssa changed the topic of #panfrost to: Panfrost - FLOSS Mali Midgard & Bifrost - https://gitlab.freedesktop.org/panfrost - Logs https://freenode.irclog.whitequark.org/panfrost - Transientification is terminating. Memory reductions in progress.
<cwabbott> oh, interesting, I can also get it to do the 64-bit thing if I have a stride big enough
<cwabbott> so loading/storing to something in an SSBO like ivec4 big[][100]; will trigger it
<cwabbott> cuz it has to do a 64-bit multiplication of the index and 100*16 to get the byte offset
<Lyude> What's the asm look like for that?
<cwabbott> pretty similar
<cwabbott> a single ope40xx in a clause type 15
<cwabbott> but I bet I can make it do multiple if both indices are non-constant
<cwabbott> I only did something like big[i][0]
<cwabbott> maybe big[i][j] is more interesting...
_whitelogger has joined #panfrost
<alyssa> hanetzer: Packaged the mainline kernel same way as any other depthcharge armbook
<alyssa> cwabbott: If you could figure it out, that'd be great so we stop drifting :P
stikonas has quit [Remote host closed the connection]
cwabbott has quit [Remote host closed the connection]
cwabbott has joined #panfrost
_whitelogger has joined #panfrost
<alyssa> Oh!
<alyssa> ...oh? :/
<Lyude> Oh?
<alyssa> Lyude: I'm wondering if the black-rectangles-in-Weston bug is a cache issue
<Lyude> Could be!
<alyssa> We're not asking for anything to be cached,
<alyssa> but we're also not explicitly flushing any caches
<Lyude> Try flushing? There are ioctls for that iirc
<alyssa> Mm
* alyssa blinks
<alyssa> I've tried disabling all driver parallelism, setting both COHERENT flags, flushing immediately always, and including a sync of the whole framebuffer
<alyssa> No dice.
<Lyude> Is it the whole output with black rectangles btw?
<alyssa> Lyude: No, they some renders right, others are black
<alyssa> Visually, it would appear to be along tile lines
<Lyude> Ahh
<alyssa> Based on past history
<alyssa> I'm guessing a race condition between tile writeback and framebuffer sync
<alyssa> But I've tried minimising cache bugs from the latter a million ways now :V
<Lyude> Huh :S
<alyssa> Indeed
* alyssa feels like this is going to be something super dumb
<alyssa> Great, we're dealing with two different bugs..
<alyssa> For the main-weston/kodi one anyway
<alyssa> The missing tiles are _black_
<alyssa> NOT the clear color
<alyssa> But they're still getting cleared from last frame
<alyssa> What?!
<alyssa> I wonder if this is an FBO issue
<alyssa> Might be a good time to work on -bdesktop which I recall was broken for FBO reasons as well
_whitelogger has joined #panfrost
BenG83 has quit [Quit: Leaving]
MoeIcenowy has quit [Ping timeout: 252 seconds]
MoeIcenowy has joined #panfrost
chewitt has quit [Quit: Zzz..]
hanetzer has joined #panfrost
stikonas has joined #panfrost
AntonioND has joined #panfrost
TheCycoONE has quit [Quit: ZNC 1.7.1 - https://znc.in]
TheCycoONE has joined #panfrost
adjtm has quit [Ping timeout: 250 seconds]
chewitt has joined #panfrost
adjtm has joined #panfrost
BenG83 has joined #panfrost
chewitt has quit [Remote host closed the connection]
chewitt has joined #panfrost
chewitt has quit [Client Quit]
hanetzer has quit [Ping timeout: 268 seconds]
hanetzer has joined #panfrost
TheCycoONE has quit [Quit: ZNC 1.7.1 - https://znc.in]
TheCycoONE has joined #panfrost
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #panfrost
<alyssa> HdkR: Beep
* alyssa wonders if it's time to pay attention to cubemaps / mipmaps
<alyssa> Hm, cubemaps aren't used here
AntonioND has quit [Quit: Quit]
chewitt has joined #panfrost
chewitt has quit [Quit: Adios!]
<alyssa> Best use of time is probably working on memory handling stuff
<alyssa> Chucking cmdstream_persistent (which never gets freed) will go a long way for stability
<hanetzer> hey friendos :)
* alyssa waves
<hanetzer> did I mention I have my kevin now? :D
<alyssa> You did :)
<alyssa> "Did I mention I fell in love yet? :D" "17 times"
<hanetzer> currently booting archlinuxarm on sdcard while working on gentoo on emmc :)
<hanetzer> I intend to create a coreboot/depthcharge bootable petitboot kernel/initramfs :)
<ezequielg> alyssa: yuv format on mali?
<ezequielg> any hints about that?
<alyssa> ezequielg: Should be there for T760+ (IIRC?), but I don't know the format codes
<alyssa> Since I don't have a blob capable of running kmscube etc
<ezequielg> how did you find out the format for the current ones?
<alyssa> Trying a given OpenGL format for TexImage2D and seeing what format bits pop out
<ezequielg> right
<alyssa> But YUV isn't in core GL; you need to do some weird stuff with the EGLImage extension to pipe it through (see kmscube source)
<alyssa> And I never got around to trying that with the blob
<alyssa> Oh, apparently all GPUs supported by 'frost support native YUV
<ezequielg> i've been trying to follow the code to understand what's needed.
<ezequielg> i mean, aside from a format code
<alyssa> Not sure
<alyssa> If YUV images are "normal", then all we need is a format code
<alyssa> (Normal as in, nothing special compared to RGB)
<alyssa> We would just add a case to panfrost_find_format translating the Gallium YUV format to the Mali one and be on our way
<alyssa> If it's something fancier, who knows, I'd have to see a trace
<ezequielg> right, so we are on the same page.
<ezequielg> I am wondering if I can't just try and error it :-)
<alyssa> Hmm
<alyssa> Admittedly format codes are pretty tiny
<alyssa> ezequielg: Ready for an adventure? ^_^
<ezequielg> wha?
<alyssa> Mali format codes are 8-bit
<ezequielg> aha
<alyssa> But it gets better -- we can be pretty sure it'll be a SPECIAL format
<alyssa> Which means we know the top 3 bits
<alyssa> Leaving the lower 5-bits to brute force
<ezequielg> 20 minutes tops
<alyssa> 12 of those are already known
<alyssa> So we're left with 20 to try, theoretically
<ezequielg> yup
<alyssa> At least, this will work for the packed YUV formats (where it's a single image with all three planes, not two or three)
<alyssa> Happy hacking :P
<alyssa> ezequielg: See the mali_format enum in include/panfrost_job.h
<alyssa> s/_/-/
<ezequielg> somehow i bet it'll be 0x4, 0x6 or something
<alyssa> ezequielg: Nah, there seems to be some natural grouping
<alyssa> My bet is on 0x1a-0x1d maybe
<alyssa> If none of this works, it might be in MALI_FORMAT_SPECIAL2, but that may be Bifrost exclusive?
* alyssa will be impressed if this works :p
<ezequielg> ok, i will try.
<alyssa> Best of luck
<ezequielg> not today. i just came to my office to check my chromiumos build (which of course failed), and now that it's running i'm getting my ass out'a'here.
<alyssa> Fair enough :P
<ezequielg> i should have ssh, but that would not be good to my health
* alyssa pities anyone compiling browsers, let alone BrowserOSes :P
<stikonas> well, the worst compilation on Gentoo is icu
<alyssa> Bwa?
<stikonas> icu itself is quick, but icu ABI breaks force recompilation of all webengine/webkit/libreoffice/firefox/thunderbird
<alyssa> Dearie
<stikonas> I think boost is similar, so usually they stabilize boost and icu simultaneously
<alyssa> This is why we use Debian, kids
<stikonas> well, try updating icu on debian :P
<stikonas> ok, panfrost mesa finally compiled today
<stikonas> after those fixes were merged
<stikonas> should it just work, e.g. when I start weston?
<stikonas> or do I need to do anything extra
<alyssa> What kernel?
<stikonas> 4.20.1
<stikonas> mali-kbase out of tree module
<stikonas> that's rk3399 board
<alyssa> ninja install'd?
<stikonas> no
<stikonas> or maybe it is
<alyssa> Well, do that :P
<stikonas> let me see
<stikonas> actually it is installed, probably was pulled in by some other package
<stikonas> but I already have mesa and kernel, what do I need ninja for?
<alyssa> Hm?
<alyssa> ninja is the build syste,
<alyssa> Like
<stikonas> yes, I understand
<stikonas> but what else do I need to build
<alyssa> When you say panfrost compiled, was it then installed?
<stikonas> yes, by my package manager
<stikonas> it clones git repo, compiles and installs
<stikonas> I now have /usr/lib64/dri/panfrost_dri.so
<alyssa> Alright
<alyssa> In that case, yeah, weston ought to work
<alyssa> (Started from the console, not nested within a preexisting X/wayland session)
<stikonas> ok, I should unplug my external monitor from my laptop (which will crash my Wayland session on laptop) and go to rockpro64 :)
stikonas has quit [Remote host closed the connection]
stikonas has joined #panfrost
<stikonas> hmm, kmscube was saying llvmpipe :(
<alyssa> stikonas: Try setting LD_LIBRARY_PATH=/usr/lib64
<alyssa> (I didn't realise you also had llvmpipe installed)
<stikonas> I think I should get rid of llvmpipe then...
<alyssa> Might make things a little easier
<stikonas> it is also in /usr/lib64, so LD_LIBRARY_PATH wouldn't help
<alyssa> Ah
<stikonas> argh, now it went to softpipe... I actually see error "failed to load driver: rockchip"
<stikonas> so I don't think it even tries panfrost
* alyssa blinks
<alyssa> What is with it with these rockpro64
<stikonas> yeah, google found that raster had the same problem :( on 10 January
<stikonas> is this dmesg log alright? https://pastebin.com/zYkbbbTu
<stikonas> at least nothing suspicious in my opinion
<stikonas> /dev/mali0 has the following permissions: crw-rw-rw- 1 root root 10, 57 2019-01-13 20:19 /dev/mali0
<hanetzer> ah, that's 666 :P
<stikonas> oh, do I need 777?
<hanetzer> should use udev to turn it 666/root:video
<hanetzer> no, that' won't help :)
<hanetzer> if you chown it to root:video for now it should workish
<hanetzer> in theory ;)
<stikonas> ok, let's try as a test first
<stikonas> then I can play with udev
<hanetzer> yeah, if you check the archlinuxarm mali bin package you can find the udev rule
<stikonas> hmm, it sitll ssays failed to load driver :rockcip
<stikonas> I don't need rockchip_dri.so? do I?
<alyssa> You do..?
<stikonas> no, somehow I don't
<stikonas> but ./kmscube tries rockchip and then software drivers...
<stikonas> somehow panfrost is not attempted :(
<stikonas> well, I was just making sure that I'm not missing anything obvious
<alyssa> stikonas: Same issue as raster, aaa
<alyssa> Seems specific to rp64
<alyssa> What are we missing?!
BenG83 has quit [Read error: Connection reset by peer]
<stikonas> alyssa: no, I figured out what was wrong...
<stikonas> see above, missing rockchip
<stikonas> shouldn't have trusted packager :D
<stikonas> I added rockchip too in addition to panfrost, and I think it works now
<stikonas> oh, packager is actually hanetrzer :P
<hanetzer> stikonas: hello fello gentooist
<hanetzer> ah poop. someone found that? :P
<hanetzer> stikonas: gimme a sec, I was doing some work on it locally but have not pushed it.
<stikonas> well, with that line fixed, it works
<hanetzer> what change did you make?
<stikonas> well, staging -> master I changed some time ago
<stikonas> that second line is what fixed my problem
<hanetzer> oh you can pass more than one to gallium_enable? nice to know, thansks :)
<stikonas> yeah, weston is now definitely using panforst here
<stikonas> works much faster but with some graphical glitches
<stikonas> interesting, when I move weston-terminal, I see glitches, when I move konsole, it works fine
<alyssa> stikonas: :tada:
<stikonas> sddm on X11 is upside down :D
<alyssa> I
<alyssa> 'm well-aware :P
<hanetzer> haha
<stikonas> kwin_wayland works a bit better than X11 and sddm... I can actually see konsole window
<stikonas> although, sometimes it disappears
<hanetzer> stikonas: ebuild fixed, thanks :)
<stikonas> ok, thanks for fixing it :)
<alyssa> stikonas: kwin wayland works?
<alyssa> <-- not a KDE user
<alyssa> I am definitely a Krita user <3
<alyssa> Krita is my love <3
<stikonas> alyssa: well, works is a bit too much
<stikonas> it's not usable enough
<stikonas> but better than anything on X11
<alyssa> Fair enough :P
<alyssa> stikonas: sway is in the best shape right now
<stikonas> definitely much worse than weston at this stage
<alyssa> (Sway or Weston, anyway. Both have known bugs but different bugs so pick your poison)
<stikonas> and i haven't even tried plasma-shell, I just started konsole window
<alyssa> Dearie
<alyssa> :P
<stikonas> (obviously as wayland client... otherwise with xwayland, it would be the same X stuff)
<stikonas> well, maybe I'll try sway some other day...
<stikonas> should finish releasing KDE Partition Manager 4 beta :D
stikonas has quit [Remote host closed the connection]
stikonas has joined #panfrost