<marex>
austriancoder: something similar will be needed for NIR
<marex>
austriancoder: the idea is that if points are used, hardware only replaces X,Y inputs to PS with the point coord, but Z,W=0,0 ; and we need W=1 in PS
pcercuei has quit [Read error: Connection reset by peer]
pcercuei_ has joined #etnaviv
pcercuei_ has quit [Read error: Connection reset by peer]
JohnnyonF has joined #etnaviv
JohnnyonFlame has quit [Ping timeout: 256 seconds]
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #etnaviv
<marex>
flto: is there any documentation for the etnaviv nir implementation at all ?
<marex>
I am trying to implement the above ^ for nir, but the rewriting makes zero sense
<austriancoder>
marex: will have a look tomorrow.. bed time here
<austriancoder>
marex: maybe a simple nir pass is all you need to write. Look at nir_lower_xxx.c examples
<marex>
austriancoder: sounds simple ... I spent last four or so hours looking for a simple example of just that, or documentation, or anything that would be helpful
<austriancoder>
marex: the code is the documentation.. ;)
<marex>
austriancoder: and a pretty bad one at that
<austriancoder>
marex: I am not sure how I can help you. If can provide you with the final lowering but I think that's not what you want.
<marex>
austriancoder: I am still even trying to validate this approach to setting W=1
<austriancoder>
marex: the nir docs are not great, but that's a Mesa problem
<austriancoder>
marex: you did piglit and deqp runs to validate that there are no regressions and that it even could fix some fails?
<austriancoder>
marex: from a quick look your approach looks okay.. but yeah.. bed time .. really now
<marex>
austriancoder: good night
<flto>
marex: isn't gl_PointCoord supposed to be a vec2? so maybe this a problem with the gles1 (this is about neverball gles1 right?) lowering in mesa and not a etnaviv problem?
<marex>
flto: it is vec4 and imirkin says that's correct, since the vec4 is st01