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!
yuq825 has joined #lima
jrmuizel has quit [Remote host closed the connection]
jrmuizel has joined #lima
jrmuizel has quit [Remote host closed the connection]
<anarsoul> CounterPillow: no vsync?
<anarsoul> you need something similar to 7b24eec754ba0f0f794ab09413dcde2585b4a84b("drm/sun4i: wait on implicit fence before display") for rockchip driver
<anarsoul> I mean drm driver
jrmuizel has joined #lima
jrmuizel has quit [Remote host closed the connection]
jrmuizel has joined #lima
jrmuizel has quit [Remote host closed the connection]
dddddd has quit [Remote host closed the connection]
chewitt has joined #lima
chewitt has quit [Quit: Adios!]
guillaume_g has joined #lima
guillaume_g has quit [Quit: Konversation terminated!]
guillaume_g has joined #lima
chewitt has joined #lima
chewitt has quit [Read error: Connection reset by peer]
yuq825 has quit [Remote host closed the connection]
dddddd has joined #lima
Elpaulo1 has joined #lima
Elpaulo has quit [Ping timeout: 245 seconds]
Elpaulo1 is now known as Elpaulo
monstr has joined #lima
jrmuizel has joined #lima
buzzmarshall has joined #lima
<CounterPillow> anarsoul: alright so I guess I need to write a patch, thanks for the hint! Will try to get around to doing that
jrmuizel has quit [Remote host closed the connection]
dddddd has quit [Remote host closed the connection]
yuq825 has joined #lima
adjtm has quit [Ping timeout: 245 seconds]
guillaume_g has left #lima ["Konversation terminated!"]
deesix has quit [Ping timeout: 248 seconds]
yuq825 has quit [Remote host closed the connection]
jrmuizel has joined #lima
yuq825 has joined #lima
<rellla> the description of the vec4 add/mul alu's write mask is misleading in https://github.com/cwabbott0/mali-isa-docs/blob/master/Utgard-PP.md
<rellla> it is linked to Varying Fetch -> "m - Mask, (0001 = float, 0011 = vec2, 0111 = vec3, 1111 = vec4)"
<rellla> which is not right imho. it should be mmmm -> wzyx !? so 0010 only writes to .y for example
yuq825 has quit [Remote host closed the connection]
<cwabbott> rellla: I think you don't understand what the "mmmm" means... it just means that those 4 bits form a bitfield called "m", and below that when it says "m - Mask" it means that m is short for Mask
<rellla> cwabbott: https://pastebin.com/9x6VRbey so let's see the vec addition alu description. we have the mmmm which is the placeholder for a 4 bit field, right?
<rellla> line 26 in the pastebin leads me to the conclusion, that only "0001 = float, 0011 = vec2, 0111 = vec3, 1111 = vec4" as values are possible
<rellla> which is not right, isn't it?
<cwabbott> no, that description is indeed a little lacking
<cwabbott> there's a better description earlier up
<rellla> for me it is like 0001 is .x, 0011 is .xy and 1010 is .yw , right?
<cwabbott> When writing to a vector register, you can specify a "write mask" or "output mask". Conceptually, all 4 components of the result are calculated, but only the components specified by the write mask are actually written to the register"
<cwabbott> yeah, that's right
<rellla> ok, fine :)
<rellla> so we have some bugs with the write mask in pp. for example:
<cwabbott> what's tricky is that the swizzle is "expanded" so that e.g. mov r1.y r2.xyzw actually moves r2.y to r1.y
<rellla> load.u 0.x, mul.s0 $1.x ^uniform.x ^const0.x, const0 0.159180 0.000000 0.000000 0.000000
<rellla> sin.s2 $0.y $1.y
<rellla> either mul.s0 should go to .y or sin.s2 should use .x !
<cwabbott> correct :)
<rellla> the problem imho is caused by https://gitlab.freedesktop.org/mesa/mesa/blob/master/src/gallium/drivers/lima/ir/pp/lower.c#L329 when we have to deal with exactly 1 component. then the write mask always gets "0001" which in turn always writes to .x - even if .y is needed...
<rellla> we need some swizzle_to_writemask() ...
monstr has quit [Remote host closed the connection]
adjtm has joined #lima
<rellla> and https://gitlab.freedesktop.org/mesa/mesa/blob/master/src/gallium/drivers/lima/ir/pp/lower.c#L334 also seems a bit wacky, doesn't it? it does hardcode the swizzle to .yyyy ?! I can't believe that is wanted ...
<rellla> sorry. my fault.
<rellla> it indeed is .wzyx ;)
<rellla> too much swizzles and mask for now :)
chewitt has joined #lima
adjtm has quit [Ping timeout: 268 seconds]
buzzmarshall has quit [Quit: Leaving]
dddddd has joined #lima
deesix has joined #lima
k0ga has joined #lima
k0ga has left #lima [#lima]
chewitt has quit [Quit: Zzz..]
cwabbott has quit [Read error: Connection reset by peer]
cwabbott has joined #lima
Wizzup has quit [Remote host closed the connection]
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #lima
jrmuizel has quit [Remote host closed the connection]