All of lore.kernel.org
 help / color / mirror / Atom feed
* per-plane LUTs and CSCs?
@ 2020-09-09 10:57 Laurentiu Palcu
  2020-09-10  7:25 ` Pekka Paalanen
  2020-09-10  7:50 ` Simon Ser
  0 siblings, 2 replies; 22+ messages in thread
From: Laurentiu Palcu @ 2020-09-09 10:57 UTC (permalink / raw)
  To: Ville Syrjälä, Daniel Vetter, Laurent Pinchart,
	Sam Ravnborg, Lucas Stach
  Cc: dri-devel

Hi all,

I was wondering whether you could give me an advise on how to proceed further
with the following issue as I'm preparing to upstream the next set of patches
for the iMX8MQ display controller(DCSS). The display controller has 3 planes,
each with 2 CSCs and one degamma LUT. The CSCs are in front and after the LUT
respectively. Then the output from those 3 pipes is blended together and then
gamma correction is applied using a linear-to-nonlinear LUT and another CSC, if
needed.

Currently, downstream, we have all those CSCs and LUTs hard-coded into a header
file. Based on the colorspace, range, gamut selected for the output and/or
plane input, we pick up the right CSCs and LUTs from that header file to
configure our pipes... I guess this solution does the job, userspace doesn't
need to care much about how to generate those tables. But, it's also not very
flexible in case there is an app smart enough to know and actually generate
their own custom tables. :/

Looking through the dri-devel archives, I've seen that there was a tentative to
implement a more or less generic per-plane LUT/CSC solution but it didn't make
it in due to lack of userspace consumers...

Adding CSC and degamma LUT properties for each plane as well as a gamma
LUT and CSC for CRTC, would help get rid of the LUT/CSC header and rely
entirely on userspace to fill in those tables. But userspace has to know
how to generate those LUTs and colorspace conversion matrices in the
first place...

So, how should I continue with this one? Any pointers?

Thanks,
Laurentiu
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2020-09-14 15:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-09 10:57 per-plane LUTs and CSCs? Laurentiu Palcu
2020-09-10  7:25 ` Pekka Paalanen
2020-09-10  7:52   ` Daniel Vetter
2020-09-10  8:50     ` Pekka Paalanen
2020-09-10  9:30       ` Laurentiu Palcu
2020-09-10 10:28         ` Pekka Paalanen
2020-09-10 10:39           ` Laurentiu Palcu
2020-09-10 10:56           ` Laurent Pinchart
2020-09-10 17:09             ` Vitaly Prosyak
2020-09-10 17:51               ` Laurent Pinchart
2020-09-10 18:07                 ` Vitaly Prosyak
2020-09-10 19:39                   ` Vitaly Prosyak
2020-09-11 12:57                     ` Pekka Paalanen
2020-09-10 10:53       ` Laurent Pinchart
2020-09-10  7:50 ` Simon Ser
2020-09-10  8:18   ` Daniel Vetter
2020-09-10  8:29     ` Simon Ser
2020-09-14  6:13       ` Alex Deucher
2020-09-14 13:32         ` Ville Syrjälä
2020-09-14 14:38           ` Alex Deucher
2020-09-14 15:07             ` Ville Syrjälä
2020-09-10 11:38     ` Ville Syrjälä

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.