drm/vc4: hdmi: Rework the CSC matrices organization
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 6 Mar 2023 10:46:47 +0000 (11:46 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 25 Apr 2023 07:33:16 +0000 (09:33 +0200)
commit1d239901770ef8c31ed4ab7c45d6e8f5715783b6
tree085a82e1d13d8f5ee21fdd3182637a65f1d41070
parente3337aea097ffac21ccebd18114656eb88937517
drm/vc4: hdmi: Rework the CSC matrices organization

The CSC matrices were stored as separate matrix for each colorspace, and
if we wanted a limited or full RGB output.

This created some gaps in our support and we would not always pick the
relevant matrix.

Let's rework our data structure to store one per colorspace, and then a
matrix for limited range and one for full range. This makes us add a new
matrix to support full range BT709 YUV output.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-6-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c