ChanServ changed the topic of #panfrost to: Panfrost - FLOSS Mali Midgard + Bifrost + Valhall - Logs https://oftc.irclog.whitequark.org/panfrost
qpla has quit [Read error: Connection reset by peer]
Consolatis has quit [Server closed connection]
Consolatis has joined #panfrost
CME_ has quit [Server closed connection]
CME has joined #panfrost
pbsds has quit [Server closed connection]
pbsds has joined #panfrost
stepri01 has quit [Server closed connection]
stepri01 has joined #panfrost
indy has quit [Server closed connection]
indy has joined #panfrost
Danct12 has quit [Server closed connection]
Danct12 has joined #panfrost
<mriesch> i seem to be running into stride alignment issues on the g52. are the alignment requirements documented somewhere?
anarsoul has joined #panfrost
anarsoul|2 has quit [Read error: Connection reset by peer]
pjakobsson_ has quit [Remote host closed the connection]
mav has quit [Server closed connection]
mav has joined #panfrost
DVulgaris has quit [Server closed connection]
DVulgaris has joined #panfrost
marcan has quit [Server closed connection]
marcan has joined #panfrost
pjakobsson has joined #panfrost
warpme has joined #panfrost
rellla has quit [Server closed connection]
rellla has joined #panfrost
sergi has quit [Server closed connection]
sergi has joined #panfrost
warpme has quit []
<mriesch> alyssa maybe? i found this related merge request: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19620
Foxtrotinette has joined #panfrost
Foxtrotinette has quit [Remote host closed the connection]
DPA has quit [Server closed connection]
DPA has joined #panfrost
warpme has joined #panfrost
<daniels> mriesch: what are you seeing exactly?
<daniels> are you seeing imports being rejected for not being sufficiently aligned, or mis-sampling, or misrendering, or?
<mriesch> daniels: "MESA: error: panfrost: rejecting image due to unsupported offset or stride alignment.
<mriesch> gleglimage gsteglimage.c:683:gst_egl_image_from_dmabuf: eglCreateImage failed: EGL_BAD_ALLOC"
<mriesch> this is a 1400x1050x2 image and we figure that the 2800 bytes per line are not divisible by 64
<daniels> assuming that means you're a YUV format, the alignment requirement on G52 is 16 bytes (it's still 64 for RGB)
<daniels> that's a hardware requirement that we can't work around
<daniels> so you need to make sure whatever's allocating is doing so with sufficient padding, not just w*bpp
<mriesch> daniels: yes, that's a yuv format. nv61, to be precise
<daniels> yep, stride needs to be aligned to 16b then
<mriesch> ok, 2800 is divisible by 16. does this mean we can relax the rejection condition a bit?
warpme has quit []
<daniels> mriesch: I guess you must have a downstream tree, since there's no NV61 support in upstream Mesa, but it's probably missing the check for PIPE_FORMAT_R8_G8B8_422_UNORM in src/panfrost/lib/pan_layout.c:format_minimum_alignment()
<mriesch> daniels: it's mainline, actually. however, i think the gstreamer glupload element handles nv61 as two textures
warpme has joined #panfrost
<daniels> mriesch: ah, well in that case the hardware does require 64-byte alignment for each ...
<mriesch> daniels: ah ok. are those requirements documented somewhere or did you folks RE them?
<daniels> mriesch: they're documented, but the docs aren't public
<mriesch> daniels: ok, thanks for the information then
<mriesch> daniels: now fortunately we are able to add padding in our source hardware block. but what is the way to negotiate such constraints?
<mriesch> daniels: so we get to decide between implementing nv61 support in mesa and implementing a generic allocator infrastructure? tough call.
<mriesch> could there be a workaround solution around this? what do people usually do in such situations?
tanty has quit [Server closed connection]
tanty has joined #panfrost
warpme has quit []
warpme has joined #panfrost
warpme has quit []
alpernebbi has quit [Server closed connection]
alpernebbi has joined #panfrost
alyssa has left #panfrost [#panfrost]
simon-perretta-img__ has quit [Server closed connection]
simon-perretta-img__ has joined #panfrost
f_ is now known as funderscore
<robclark> bbrezillon: thx and a-b (I can rely on MR later)
simon-perretta-img__ has quit [Ping timeout: 480 seconds]
warpme has joined #panfrost
simon-perretta-img has joined #panfrost
simon-perretta-img_ has joined #panfrost
funderscore is now known as f_
simon-perretta-img has quit [Ping timeout: 480 seconds]
alyssa has joined #panfrost
warpme has quit [Remote host closed the connection]
warpme has joined #panfrost
rz_ has joined #panfrost
rz has quit [Ping timeout: 480 seconds]
warpme has quit []
rasterman has joined #panfrost
warpme has joined #panfrost
rasterman has quit [Quit: Gettin' stinky!]
warpme has quit []
tanty has quit [Ping timeout: 480 seconds]
tanty has joined #panfrost