austriancoder changed the topic of #etnaviv to: #etnaviv - the home of the reverse-engineered Vivante GPU driver - Logs https://freenode.irclog.whitequark.org/etnaviv
<mntmn> how do i know which version of GCABI is in use on an imx8mq image?
<flto> its part of the driver version string
<mntmn> flto: what binary do i feed to build_json.sh to make a new .json?
<mntmn> this image has > Galcore version 6.2.4.150331
<mntmn> according to boundary it is > 6.2.4p1.8
<mntmn> i made a headers package and built libvivhook and made an fdr trace
<mntmn> but i cannot decode the trace because i don't have a fitting json. how do i generate it?
<mntmn> oh yeah this works... this should be included in etna_viv repo and documented
<mntmn> > RA.EARLY_DEPTH := 0x50000031
<mntmn> weird
<flto> mntmn: I did this process only once, I don't remember what binary I passed to it.. but I don't remember having to build something like that gcabi.c, anyway if it works thats good
<mntmn> yeah i finally have a blob tracing setup now
<mntmn> ah, seeing some new things now, like RA.EARLY_DEPTH := 0x11000031
<flto> mntmn: I should mention: I am assuming you are always trying with ETNA_MESA_DEBUG=no_early_z etnaviv does not try to disable early z with discard (for disabling based on shader, it only checks if fragdepth is written) - possibly that was fine on pre-GC7000 because it does not early-write depth
<mntmn> flto: yes, i have that, but also it doesn't seem to make a difference (yet)
<mntmn> it could be that that bit is somewhere else now?
<mntmn> woah
<mntmn> i think i have it
<cphealy> mntmn: if you figure it out, do you pay yourself? ;-)
<mntmn> yes
<mntmn> i think i really figured it out
<cphealy> Wow, that's awesome!
<pcercuei> it works?
<mntmn> yes it works
<pcercuei> kudos
<mntmn> i think RA_EARLY_DEPTH bit 0x10000000 in combination with DISABLE_ZS=0 (which has another meaning now and is normally always forced to =1 when halti>5) does the trick. i also set SUPER_TILED=1 because i thought it might have a different meaning, need to double check that
<mntmn> i'll do some quick cross checks...
<flto> mntmn: DISABLE_ZS=0 makes sense, I actually had that disabled in that gles3 branch I mentioned earlier.. SUPER_TILED would be always 1 for depth anyway so you didn't change anything there
<mntmn> ok, bit 0x01000000 was also set here, but that doesn't seem to have an effect
<mntmn> sorry, in RA_EARLY_DEPTH
<mntmn> oh, actually has an effect
<mntmn> yeah 0x01000000 also needs to be set in RA_EARLY_DEPTH
<mntmn> ok 0x10000000 needs to be on if DISABLE_ZS=0, or depth freezes. the comment in the code about that bits says depth will freeze the GPU, the missing info is that it has to be used in conjunction with that bit in RA_EARLY_DEPTH
<mntmn> ok so to boil it down, the solution to switch of early z is: RA_EARLY_DEPTH=0x11000031 and PE_DEPTH_CONFIG &= ~VIVS_PE_DEPTH_CONFIG_DISABLE_ZS
pcercuei has quit [Quit: dodo]
<cphealy> Way to go mntmn!
<austriancoder> this could correlate to the feature bit RA_WRITE_DEPTH which is only set on gc7000l
rhyskidd has quit [Read error: Connection reset by peer]
lynxeye has joined #etnaviv
<Marex> mntmn: nice, now for the last step, patch
<mntmn> alright
kherbst is now known as karolherbst
embden has joined #etnaviv
pcercuei has joined #etnaviv
berton has joined #etnaviv
RzR has joined #etnaviv
rhyskidd has joined #etnaviv
cphealy has quit [Remote host closed the connection]
cphealy has joined #etnaviv
rhyskidd has quit [Quit: rhyskidd]
flto has quit [Read error: Connection reset by peer]
flto has joined #etnaviv
rhyskidd has joined #etnaviv
lynxeye has quit [Quit: lynxeye]
JohnnyonF has quit [Read error: Connection reset by peer]
mntmn has quit [Ping timeout: 256 seconds]
mntmn has joined #etnaviv
Chewi_ has joined #etnaviv
Chewi has quit [Ping timeout: 272 seconds]
Chewi_ is now known as Chewi
berton has quit [Quit: Leaving]
embden has quit [Quit: Leaving]
juanrubio_ has quit [Ping timeout: 272 seconds]