This change adds support for BT709 and BT2020 colorspace to the YUV lowering pass. The default remains BT601.
This change also fixes minor imprecision in the last digits of the BT601 offsets due to computation from rounded values when the math was simplified.
d8fdb8dab46 nir: Add colorspace support to YUV lowering pass
src/compiler/nir/nir.h | 2 ++
src/compiler/nir/nir_lower_tex.c | 74 +++++++++++++++++++++++++++++++++-------
2 files changed, 63 insertions(+), 13 deletions(-)