alyssa changed the topic of #panfrost to: Panfrost - FLOSS Mali Midgard & Bifrost - https://gitlab.freedesktop.org/panfrost - Logs https://freenode.irclog.whitequark.org/panfrost - Discord Discard
_whitelogger has joined #panfrost
<alyssa> I wonder why sway isn't working with Panfrost
<alyssa> It's doing really simple GL, no faults, the panwrap trace looks reasonable..
<alyssa> Maybe viewport is wacked
<alyssa> Now that smells like progress!
* alyssa smiles
<alyssa> With an ugly workaround (and a stack of bugs which I'll have to get to), sway works. I command you to celebrate! :p
<alyssa> ("...Where is everyone?" "It's Christmas Eve. The real question is why are _you_ working on Panfrost?" "Have you met me?!")
<urjaman> i'm here, there and everywhere
<urjaman> anyhows, o/
<alyssa> urjaman: \o/
<HdkR> Nice. Haven't used Sway yet, probably will be worthwhile once I start using Wayland on this laptop
<alyssa> HdkR: I'm an i3 addict so it seems like a good target :)
<alyssa> Maybe once it's working better and tomeu's winsys stuff is merged in, it'll be really usable as a Panfrost desktop
<alyssa> Seems like a good goal to work towards anywho
<HdkR> I was looking at the latest sway changelog and I think there are a few issues remaining that will still effect my experience
<HdkR> Things like multimonitor and some mouse features
<alyssa> HdkR: My daily driver is an ARM Chromebook that I run without graphics acceleration
<alyssa> Video out is broken since I don't use the blob
<alyssa> I somehow feel like "multimonitor" is the least of my issues ^^
<HdkR> haha. I've been using multimonitor recently since my laptop setup synergizes with my desktop arrangement
<urjaman> hey, something my C201 does better then :P (well it's HDMI and I spent time to make it work so ehh lol)
<alyssa> urjaman: I have a veyron, too, you don't have moral high ground :P
<alyssa> ...Speaking of, I don't suppose UPS delivers on Christmas? :P
<urjaman> ehh unlikely (and yeah as a nordic where christmas basically is the 24th this sounds weird to talk about it in future sense now...)
<urjaman> what did you order?
<HdkR> Speaking of doing things. I'm on vacation until sometime next year. So I'm going to be doing more on this Dvalin board
<alyssa> \o/
<HdkR> :D
<alyssa> Right half of the screen is a Panfrost render of stock sway/weston-terminal/weston-smoke
<alyssa> I'm like 2 small(?) bugfixes away from parity with Weston, then
<alyssa> Well 12 if you count the crashes :p
* urjaman spent the last week twiddling with a 3D printer kit tbh...
<alyssa> I'm not sure why it says it's llvmpipe... it's definitely Panfrost, llvmppipe would render better :P
<HdkR> Lyude: cwabbott: I'm not going to steal Bifrost/Dvalin codegen from you that you really wanted to do I hope? :P
<alyssa> HdkR: Ooo!
<alyssa> ....Please tell me it's going to be NIR not LLVM
<alyssa> ("It's BiOpen. What do you think?")
<HdkR> Yea, I'm not going to create a Bifrost backend in LLVM
<alyssa> Oh, cool, okay :)
<alyssa> I approve
<alyssa> Oh, also all the colours are worng. So make it 3 bugfixes to parity.
<alyssa> Might be blending issue?
<HdkR> A fully working code emitter in that time takes too much effort and I'm a bit burned out working on LLVM backends that nobody wants :P
<alyssa> NIR it is then!
<urjaman> apparently i read enough on space cameras and such to read that as "near infrared"
<alyssa> Oh, cool, Xwayland does the right thing
<alyssa> Interesting OpenGL apps still work. They're going through llvmpipe by default (now we know why screenfetch said that), but they.. work
<urjaman> Xwayland doing something right? no way lol :P
<alyssa> :D
<HdkR> :D
<alyssa> Okay, time to figure out bug #1
<alyssa> Namely, we're writing the wrong depth
<Ashy> woah sway working?
<alyssa> Ashy: :)
<alyssa> (Sort of.)
<alyssa> Working enough that I know where to direct efforts to get it working properly
* HdkR can't wait for Dvalin to become the new Mali scourge
<HdkR> Just like Utgard
<alyssa> Hm?
<alyssa> (What exactly is Dvalin?)
<HdkR> Utgard is everywhere and has been everywhere for a decade. Dvalin is the replacement to do the same thing :P
<alyssa> Gotchu
<HdkR> But you know, Bifrost based and supporting the latest API features :>
<alyssa> :V
<alyssa> Oh, I wonder if it's using nonstandard depth near/far
<alyssa> That would explain a lot
<HdkR> I'm guessing UI elements don't use reversed depth ranges at all
<alyssa> Hm
<HdkR> <3 when far < near
<alyssa> nonstandard meaning anything but 0.0/1.0 :P
<HdkR> :)
<alyssa> But... it seems to be using that? What?!
<alyssa> Yeah, I don't see any calls to glDepthRangef or anything
<alyssa> So.. what gives..
<HdkR> Does each window only change by something like 1 ulp of FP32 and ou're hitting some precision issue?
<alyssa> Dunno
<alyssa> I'm guessing it'll be something a lot dumber than that :P
<HdkR> Maybe
<alyssa> And the plot thickens~
<alyssa> Something about the way we're passing attributes does not agree with it
<HdkR> :D
<alyssa> Namely, we're submitting vec2's... but the shader is reading vec4's... uh-oh
<alyssa> I forgot that was in-spec?
<alyssa> :P
<alyssa> How's this supposed to work again?
<HdkR> hm?
<alyssa> Oh uh I wonder if you're supposed to fake it in the shader
<alyssa> Or something
<alyssa> Um
<alyssa> Why am I still awake
<HdkR> Christmas excitement?
<Ashy> so is there some build steps somewhere for panfrost?
<Ashy> do i want the 'mesa' repo or the 'panfrost' repo?
<alyssa> mesa
<alyssa> Ashy: See link in topic.
<Ashy> sweet, thanks
<alyssa> Don't get your expectations too high.. :P
<Ashy> i'm on the ayufan ubuntu build on the rockpro64
<Ashy> is that what you're mostly testing/deving on?
<alyssa> I mean, I'm using my kevin
<alyssa> But it should work on that ubuntu image
<alyssa> (At least, that's what we presented on for XDC iirc)
<alyssa> Making progress..... maybe
<alyssa> Okay yes this defn progress
_whitelogger has joined #panfrost
<alyssa> ....Huh?
<alyssa> Oh I wonder if I uh
<urjaman> umm k
<alyssa> urjaman: Sorry I forgot this isn't Mastodon :p
<urjaman> dont worry, my "k" was at me not exactly understanding "uh" as a verb :P
<alyssa> :P
<alyssa> to uh: to um, to er
stikonas has joined #panfrost
<thefloweringash> what's this about video out not working on kevin without the blob? I tried it briefly and it seemed to work, but then I had to contend with both hidpi and non-hidpi on X and gave up on actually using it.
<Ashy> i still havent successfully built the mesa repo on ubuntu yet: https://dpaste.de/Ppay
<Ashy> meson.build:1313:4: ERROR: Native dependency 'wayland-egl-backend' not found
<Ashy> i thought libegl1-mesa-dev might pull in the required backend but that seems to have left apt in a broken state, heh
<Ashy> this is as far as i made it with dependencies at least: https://github.com/AshyIsMe/panfrost-testing/blob/master/RockPro64-Ubuntu1804.md
<thefloweringash> looks like your blob is fighting with your regular system packages?
BenG83 has quit [Quit: Leaving]
<Ashy> yeah i think so
<Ashy> although i'm not sure what's supposed to provide wayland-egl-backend
<Ashy> :qa
<Ashy> oops
BenG83 has joined #panfrost
<HdkR> :wqa!
stikonas has quit [Remote host closed the connection]
stikonas has joined #panfrost
stikonas has quit [Remote host closed the connection]
stikonas has joined #panfrost
<alyssa> thefloweringash: the DPTX blob, not the Mali blob
<alyssa> It's a really tiny firmware, arguably harmless, but it's still not FSF-free which is annoying
<alyssa> You can do HDMI without blobs, but there's no HDMI port on Kevin, just USB-C DisplayPort. So you'd have to do USB-C DisplayPort->HDMI, and that needs the DisplayPort training blob (DPTX)
<alyssa> There was some work REing that blob. I dunno what happened to that
<stikonas> Ashy: my rockpro64 testing was less successfull :(. While I successfully built mesa, I gave up after I couldn't find kernel patch. But I'm on much newer kernel (4.20.0)
<Lyude> HdkR: i wouyld reallllllly like to do that :)
<Lyude> also hi! sorry i've been gone for a while, holidays and all that
<Lyude> HdkR: but yeah, i've just been focusing on cleaning stuff up for upstream
<Lyude> not sure if we would want to do that before bifros
<Lyude> HdkR: let me know if you get started, I'd /love/ to help out :)
NeuroScr has joined #panfrost
NeuroScr has quit [Ping timeout: 245 seconds]
NeuroScr has joined #panfrost
NeuroScr has quit [Ping timeout: 272 seconds]
NeuroScr has joined #panfrost
NeuroScr has quit [Ping timeout: 250 seconds]
<alyssa> ^ I feel like something is wrong with that descriptor (it's causing some weird swizzling issues, I think? The colour channels are swapped I think)
<alyssa> #FF0000 shows up as #0000FF
<alyssa> #00FF00 is alright
<alyssa> #0000FF is #FF0000
<alyssa> So it's just flipping BGR to RGB (or maybe the other way around)
NeuroScr has joined #panfrost
<alyssa> As a sanity check, if I manually change the swizzle in the texture descriptor (swapping red and blue channels), rendering is okay
<alyssa> Oh, pipe_format has a swizzle attached that I need to respect
NeuroScr has quit [Ping timeout: 250 seconds]
<Lyude> alyssa: hav you had a chance to try the new mali uapi stuff?
<alyssa> Not yet! Any day now
NeuroScr has joined #panfrost
<alyssa> Okay, composing the swizzle and now sway renders correctly :)
NeuroScr has quit [Ping timeout: 250 seconds]
BenG83 has quit [Quit: Leaving]
NeuroScr has joined #panfrost
NeuroScr has quit [Ping timeout: 240 seconds]
<alyssa> Wonder what's going on here
NeuroScr has joined #panfrost
<alyssa> Oh I have an idea
NeuroScr has quit [Ping timeout: 250 seconds]
NeuroScr has joined #panfrost
NeuroScr has quit [Ping timeout: 246 seconds]
NeuroScr has joined #panfrost
NeuroScr has quit [Ping timeout: 250 seconds]
NeuroScr has joined #panfrost
NeuroScr has quit [Ping timeout: 268 seconds]
NeuroScr has joined #panfrost
<Lyude> HdkR: also: how similar is the newest mali gen to bifrost
<alyssa> Lyude: I think it -is- a marketing name for certain Bifrost models
<Lyude> ahh
NeuroScr has quit [Quit: NeuroScr]
anarsoul|2 has quit [Ping timeout: 272 seconds]
<HdkR> Lyude: alyssa: Codename for the G5x series. It's quite similar so the code should end up being identical
<alyssa> Woop
<alyssa> HdkR: BTW, can I rope you into code review? :angel:
<HdkR> Probably :P
<alyssa> e
<HdkR> "That's a lot of fish!"
anarsoul|2 has joined #panfrost
BenG83 has joined #panfrost
<HdkR> alyssa: Do we have anywhere to write down investigation tasks for the future?
<HdkR> That way it'll be further managed outside of code to figure out what that unknown region is for example
<alyssa> Er
<HdkR> :D
<HdkR> Got distracted by changing my profile image
<alyssa> lol
<alyssa> Next, I think I'll see what can be done about the viewport
<HdkR> Do you typically let gitlab remove the source branch or who's discretion is that?
<alyssa> We don't typically do anything
phh has quit [Remote host closed the connection]
<alyssa> Typically I push bad code to master and that's it ;)
<alyssa> Trying to change that
<HdkR> Wham
phh has joined #panfrost
<alyssa> HdkR: (There's another MR there if you're feeling nice :P)
<HdkR> I'll look at it after I toss this souffle in to the oven
<alyssa> :+1:
<alyssa> Oh, neat, it looks like the big-framebuffer-bug might've resolved itself at some point
<alyssa> Why does mesa take so loooong to compile
<alyssa> And nondeterministically at that
<alyssa> Or maybe not
anarsoul|2 has quit [Ping timeout: 268 seconds]
NeuroScr has joined #panfrost
NeuroScr has quit [Quit: NeuroScr]