<javier__>
memeka: can't you just use the v4l2 gscaler m2m driver? with dma-buf you should have zero-copy AFAIK
<memeka>
case DRM_FORMAT_NV12: {send to GScaler via IPP}
<memeka>
javier__: i am thinking of DRMPRIME
<ahajda>
gscaler has local path to fimd/decon/mixer, but according to some logs from android I have found it was too fragile to be usable
<memeka>
javier__: e.g. in gstreamer i can do MFC -> GSC -> DRM yes
<ahajda>
yes, at the moment you can use mem2mem solution, preferably ipp v2
<memeka>
but ideally DRM would advertise NV12 directly
<memeka>
and use gscaler under the hood
<javier__>
memeka: agreed, but there isn't support in the DRM driver and the m2m driver is there and AFAICT is quite stable
<memeka>
so you can do MFC -> DRM/KMS and call gscaler by itself
<ahajda>
or try to dig in android sources to implement local pipe
<memeka>
javier__: isn't it possible to pass buffers to gsc in drm driver, and display the result from gsc?
<ahajda>
gscaler under the hood was rejected if I remember correctly
<memeka>
ahajda: i have no idea where to dig, neither do i have the tech specs of the soc
<javier__>
memeka: AFAIK it is, my point is that a) that needs to be implemented and b) I'm not sure if there will be a lot of performance gain
<ahajda>
btw, which soc do you mean exactly?
<ahajda>
5250?
<memeka>
5422 (odroid xu4)
<javier__>
s/performance/latency
<memeka>
javier__: playing 1080p video to Gscaler -> DRM = 30% CPU, using mali shaders for conversion to RGB = 70% CPU
<memeka>
javier__: and it would be nice to make all the software using DRMPRIME working
<javier__>
memeka: in fact, I see a drivers/gpu/drm/exynos/exynos_drm_gsc.c
<javier__>
which seems to support DRM_FORMAT_NV21 / DRM_FORMAT_NV12
<memeka>
it's not that *i can't get gsc + drm working* .... is that *i can't get it working in existing software* :)
<javier__>
memeka: got it
<memeka>
javier__: yes, it supports -> but mixer does not support
<javier__>
memeka: ah, I see
<memeka>
so how to call use exynos_drm_gsc.c from mixer? :D
<javier__>
memeka: right, I see your problem now
<memeka>
if gsc could have a direct path to output, i could send the buffers from mixer to exynos_drm_gsc.c and that's it
<memeka>
i think
<memeka>
as in, create an overlay plane in mixer that supports NV12/21 and all it does is send stuff to GSC .... (if GSC could output)
<memeka>
IPP is supposed to be exposed to userspace, but there isn't any issue using it directly from kernelspace right?
<ahajda>
and this (direct path, which physically exists) is on my todo, I have failed to make it working on 5250, it works on 5433, so probably next step will be 5422
<memeka>
ahajda: can i see the code for 5433?
<ahajda>
memeka: I thnk mszyprowski proposed patches for it and it was rejected
<memeka>
ahajda: if you work on 5422 i am the first to test :)
<memeka>
ahajda: link?
<memeka>
i am ok with out of tree stuff :)
<memeka>
i wanna see stuff working more than i wanna see them mainlined :)
<ahajda>
At the moment I work on 5433, 5422 will be next
<ahajda>
If I will have some PoC I will send you patches
<memeka>
ahajda: is there anything on linux-samsung-soc ? (for 5433?)
<ahajda>
nope, but if you are interested in I can send it to you
<memeka>
ahajda: please do
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-exynos
aalm has quit [Ping timeout: 245 seconds]
nighty-- has joined #linux-exynos
Ultrasauce has quit [Ping timeout: 276 seconds]
genii has joined #linux-exynos
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-exynos
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-exynos
afaerber has quit [Quit: Leaving]
ahajda has quit [Ping timeout: 240 seconds]
aalm has joined #linux-exynos
ahajda has joined #linux-exynos
afaerber has joined #linux-exynos
<willmore>
memeka, you're over your 5 minutes. :)
Vasco_O is now known as Vasco
afaerber has quit [Quit: Leaving]
snawrocki has quit [Quit: Leaving]
LiquidAcid has joined #linux-exynos
Vasco is now known as Vasco_O
LiquidAcid has quit [Quit: Leaving]
Wizzup has quit [Quit: reboot]
Wizzup has joined #linux-exynos
<memeka>
willmore: am I?
Wizzup has quit [Quit: leaving]
Wizzup has joined #linux-exynos
afaerber has joined #linux-exynos
Ultrasauce has joined #linux-exynos
<willmore>
Way over. :)
nighty-- has quit [Quit: Disappears in a puff of smoke]