ChanServ changed the topic of #lima to: Development channel for open source lima driver for ARM Mali4** GPUs - Kernel has landed in mainline, userspace driver is part of mesa - Logs at https://people.freedesktop.org/~cbrill/dri-log/index.php?channel=lima and https://freenode.irclog.whitequark.org/lima - Contact ARM for binary driver support!
jrmuizel has joined #lima
yuq825 has joined #lima
libv_ has joined #lima
libv has quit [Ping timeout: 246 seconds]
<anarsoul> yuq825: hi
<yuq825> hi, here
<anarsoul> yuq825: I poked ppir a bit today and I think it would be nice to remodel it after nir
<anarsoul> I have strong suspicion that it was modelled after nir initially but then diverged :)
<yuq825> you mean refine ppir to be nir like?
<anarsoul> yeah, at least API
<anarsoul> currently we're managing successors/predecessors lists manually anywhere where we create ppir nodes
<anarsoul> it's quite cumbersome and error prone
<yuq825> Conner write ppir (in his stand alone compiler) first, then write nir, I get in the middle, they have some similarity indeed
<yuq825> same source
<yuq825> I'm also not satisfied with current ppir implementation
<yuq825> so refine it is welcome as can satisfy our needs
jrmuizel has quit [Remote host closed the connection]
_whitelogger has joined #lima
dddddd has quit [Remote host closed the connection]
libv_ is now known as libv
guillaume_g has joined #lima
libv_ has joined #lima
libv has quit [Ping timeout: 268 seconds]
libv_ is now known as libv
piggz has quit [Ping timeout: 248 seconds]
yuq825 has quit [Remote host closed the connection]
adjtm has quit [Quit: Leaving]
_whitelogger has joined #lima
ggardet has joined #lima
guillaume_g has quit [Ping timeout: 244 seconds]
ggardet has quit [Quit: Konversation terminated!]
ggardet has joined #lima
jrmuizel has joined #lima
adjtm has joined #lima
ggardet is now known as guillaume_g
guillaume_g has quit [Client Quit]
guillaume_g has joined #lima
cwabbott has quit [Quit: cwabbott]
cwabbott has joined #lima
dddddd has joined #lima
cwabbott has quit [Client Quit]
jbrown has quit [Remote host closed the connection]
cwabbott has joined #lima
jrmuizel has quit [Read error: Connection reset by peer]
jrmuizel has joined #lima
yuq825 has joined #lima
jrmuizel has quit [Remote host closed the connection]
yuq825 has quit [Read error: Connection reset by peer]
yuq825 has joined #lima
jbrown has joined #lima
jrmuizel has joined #lima
<rellla> enunes: https://gitlab.freedesktop.org/rellla/mesa/commits/ppir_fddxy_rebased is the branch with my actual code. the piglit result is the same - with and without the last commit which introduces the extra movs: http://imkreisrum.de/piglit/glsl-derivs/
<rellla> for now i have no clue, how to make the 2 tests pass.
<rellla> would be cool, if someone with a blob setup can check, if these 2 tests pass with the blob!?
Wizzup has quit [Ping timeout: 272 seconds]
<enunes> rellla: that piglit summary doesn't have the patch that introduces the movs, right?
<enunes> I don't see any movs inserted in glsl-derivs-abs-sign
guillaume_g has left #lima ["Konversation terminated!"]
<rellla> glsl-derivs is with the movs, glsl-derivs_wo is without
<rellla> there are 2 tests in the summary
<enunes> ah ok
<rellla> corresponding with HEAD and HEAD^1
Wizzup has joined #lima
<enunes> rellla: can't spot an obvious bug, two things that call my attention are why is it using .xy when we are only dealing with scalars (num_components should be 1 and write_mask 0x01?), and in the last dfdy the negative source switches from src 0 to src 1 as it is re-negated in the mov, does that work or is it mandatory to have the negative in dfdy?
<enunes> looking at glsl-derivs-abs-sign
<enunes> mandatory I mean, first src negative and second one positive
<enunes> if the second soruce is the one that must be negative then I think it is expected though
<rellla> enunes: it has to be the second, our codegen and disasm differs from what https://github.com/cwabbott0/mali-isa-docs/blob/master/Utgard-PP.md says because of the reversed numbering.
<rellla> changing the neg modifier makes all tests fail.
<rellla> regarding the write_mask i did many tests ended up with this version. we cannot hardcode it to 1 and 0x01, can't we?
<enunes> rellla: we shouldn't have to, and I think it's unlikely to be the reason for why it's failing, but it got me curious as to why it ended up with 2 components or that write mask
Wizzup has quit [Ping timeout: 272 seconds]
<rellla> i struggled with swizzles and write_mask and therefore added the commented ppir_debug's to see whats happening...
<enunes> for example that means that dfdx is arriving there with alu->src[0].ssa->num_components == 2? I wonder if that's correct
<rellla> wait a minute...
Wizzup has joined #lima
<rellla> testing it with debug enabled, but yes, num_components should be 2 because of the vec2 varying load.v $1.xy 0.xy
<rellla> cwabbott: thanks
<cwabbott> the optimal thing to do kinda depends, but if you want to do something simple, you can replicate the swizzle and writemask in the move, then set the derivative swizzle to the identity
<cwabbott> and then the temporary register has the same number of components as the destination register
<rellla> imho the implementation can be optimized, but the remaining difference in the values seems to be another issue for me...
<enunes> it's not only for optimization, I would try to hardcode those to 1 to see if it makes any difference if it's a quick test
yuq825 has quit [Remote host closed the connection]
jbrown has quit [Remote host closed the connection]
<rellla> enunes: hardcoding to 1 makes it more worse: http://imkreisrum.de/piglit/glsl-derivs7/glsl-derivs_4/shaders@glsl-derivs-abs-sign.html the last mov and dFdy is definitely wrong
<rellla> but i wonder, why the other tests also fail, though they shouldn't go through the if {}
<enunes> yeah with the hardcode some swizzle seems wrong because the mov writes to x and the last dfdy uses y
<rellla> time to make a break i guess :)
<rellla> if anybody has a hint in the meantime, you're welcome :p
eightdot_ has joined #lima
eightdot has quit [Ping timeout: 245 seconds]
drod has joined #lima
jbrown has joined #lima
adjtm has quit [Ping timeout: 245 seconds]
jrmuizel has quit [Remote host closed the connection]
adjtm has joined #lima
jrmuizel has joined #lima
eightdot_ has quit [Quit: Reconnecting]
eightdot has joined #lima
drod has quit [Ping timeout: 258 seconds]
drod has joined #lima
drod has quit [Remote host closed the connection]
jrmuizel has quit [Remote host closed the connection]
jrmuizel has joined #lima
jrmuizel has quit [Remote host closed the connection]