ChanServ changed the topic of #panfrost to: Panfrost - FLOSS Mali Midgard & Bifrost - Logs https://oftc.irclog.whitequark.org/panfrost - <macc24> i have been here before it was popular
<alyssa> steev: remind me the context?
<steev> alyssa: invalid enc
<steev> on g31
<alyssa> on which workload?
<steev> anything
<steev> running alacritty gives garbage, chrome just crashes
<alyssa> alright..
<alyssa> you know how to do a `git bisect`?
<steev> on the kernel yeah, i'm just trying to find something closer to main's main before starting
<robclark> bisecting is easier w/ mesa because no merge commits.. also the branchpoint on main gets tagged, so you can start out by checking 21.2-branchpoint to decide if you need to bisect main or the release branch
<steev> yeah, that's what i'm doing here so far, finding the newest that "works" (in quotes because again, the black text in lightdm is white, for some reason)
WoC has joined #panfrost
WoC has quit [Remote host closed the connection]
WoC has joined #panfrost
cphealy has joined #panfrost
camus has joined #panfrost
bbrezillon has quit [Read error: Connection reset by peer]
bbrezillon has joined #panfrost
WoC has quit [Remote host closed the connection]
SolidHal8 has quit [Server closed connection]
SolidHal8 has joined #panfrost
WoC has joined #panfrost
WoC has quit [Remote host closed the connection]
WoC has joined #panfrost
remexre has quit [Server closed connection]
remexre has joined #panfrost
wicastC has quit [Server closed connection]
wicastC has joined #panfrost
robclark has quit [Server closed connection]
robclark has joined #panfrost
cyrozap has quit [Server closed connection]
cyrozap has joined #panfrost
spawacz has quit [Server closed connection]
spawacz has joined #panfrost
Bennett has quit [Remote host closed the connection]
robclark has quit [Remote host closed the connection]
WoC has quit [Remote host closed the connection]
WoC has joined #panfrost
WoC has quit [Read error: Connection reset by peer]
robclark has joined #panfrost
WoC has joined #panfrost
soreau has quit [Server closed connection]
soreau has joined #panfrost
spawacz has quit [Remote host closed the connection]
soreau has quit [Remote host closed the connection]
spawacz has joined #panfrost
soreau has joined #panfrost
cphealy has quit [synthon.oftc.net weber.oftc.net]
cphealy has joined #panfrost
suihkulo1ki is now known as suihkulokki
camus has quit [Ping timeout: 480 seconds]
robink has joined #panfrost
ckeepax has joined #panfrost
bluebugs has joined #panfrost
floof58_ has joined #panfrost
floof58_ has quit []
floof58_ has joined #panfrost
alyssa has joined #panfrost
rcf has joined #panfrost
anholt has joined #panfrost
Project579 has joined #panfrost
Project579 has quit []
soreau has quit [Read error: Connection reset by peer]
soreau has joined #panfrost
pjakobsson_ has joined #panfrost
<alyssa> From public Arm (Vulkan) docs, Valhall supports AFBC on all formats "up to and including 32 bits per pixel reardless of color [sic] channel arrangement or sRBG [sic]"
<alyssa> from Arm Tech Day i assume that is AFBC 1.3, though I could be wrong
<alyssa> apparently Valhall also does native FP16 render targets and layered rendering, ooh
<alyssa> and from Arm blog--
<alyssa> "new features in Valhall through AFBC 1.3. include... 2-plane YUV... front-buffer rendering... separate depth/stencil encoding... opacity/transparency hints"
<alyssa> except I can't actually get the blob to do that
<alyssa> oh, just needed to crank up the size
<alyssa> with a 2048x2048 render target...
<alyssa> hm, maybe not
<alyssa> cranking up the size does get it to switch on tiled headers
* alyssa doesn't remember why that's useful
<alyssa> mipmapping on valhall is the same as bifrost, afaict
<alyssa> there's a cute twist where they do AFBC tiled if rendering 128x128 or above, and do AFBC untiled below, and switch modes
<alyssa> within the miptree
<alyssa> They might also do that on Bifrost, though? never checked.
ezequielg has joined #panfrost
<alyssa> gl_FragCoord is more complicated than I thought
<alyssa> first they load the address:
<alyssa> unk:2C + ((r61 >> 16) & 0x3F) << 2
<alyssa> Then they convert the upper and lower halves to f32 from s16
<alyssa> And they convertthe upper and lower halves of r59 from u16 to f32
<alyssa> do some matrix math with a matrix from the uniforms to put it together
<alyssa> Given the spec definition, that other address is going to be a sample position
tlwoerner has joined #panfrost
<HdkR> There should have been a gl_iFragCoord in the spec, truncated of course :P
<alyssa> On both Bifrost and Valhall, the third byte of r61 is the sample ID, so you can read the address as
<alyssa> uint32_t *base = (uint32_t *) unk:2C;
<alyssa> uint32_t values = base[gl_SampleID];
<alyssa> for the math -- apparently I wrote exactly this out in Panfrost already
<alyssa> util/pan_lower_sample_position.c
<alyssa> so the moral is unk:2C on Valhall is BIR_FAU_SAMPLE_POSITIONS_ARRAY on Bifrost
<alyssa> decoding that is a pretty trivial addition to the disassembelr
<alyssa> yes, this means gl_FragCoord is completely broken on bifrost too.
kenzie35 has joined #panfrost
daniels has quit [Server closed connection]
daniels has joined #panfrost
hyrc has joined #panfrost