summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_qp_tables.h
diff options
context:
space:
mode:
authorVandita Kulkarni <vandita.kulkarni@intel.com>2021-05-18 17:06:10 -0700
committerLucas De Marchi <lucas.demarchi@intel.com>2021-05-19 23:59:12 -0700
commitc33ebdb717e9ffa0e5cae3f75c5f5795102bdc3b (patch)
treed8abe4cb0a194ba12ffc1330b2f13df0baf3cf7f /drivers/gpu/drm/i915/display/intel_qp_tables.h
parentdb514cac08fd4861a3b221bed5f21b441a1242c3 (diff)
downloadlinux-c33ebdb717e9ffa0e5cae3f75c5f5795102bdc3b.tar.bz2
drm/i915/xelpd: Add rc_qp_table for rcparams calculation
Add the qp table for 444 formats, for 8bpc, 10bpc and 12bpc, as given by the VESA C model for DSC 1.1 v2: - Add include guard to header (Jani) - Move the big tables to a .c file (Chris, Jani, Lucas) v3: - Make tables 'static const' and add lookup functions to index into them. (Jani) v3.1: - Include missing .h file. Cc: Manasi Navare <manasi.d.navare@intel.com> Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210519000625.3184321-3-lucas.demarchi@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_qp_tables.h')
-rw-r--r--drivers/gpu/drm/i915/display/intel_qp_tables.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_qp_tables.h b/drivers/gpu/drm/i915/display/intel_qp_tables.h
new file mode 100644
index 000000000000..9fb3c36bd7c6
--- /dev/null
+++ b/drivers/gpu/drm/i915/display/intel_qp_tables.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2021 Intel Corporation
+ */
+
+#ifndef _INTEL_QP_TABLES_H_
+#define _INTEL_QP_TABLES_H_
+
+#include <linux/types.h>
+
+u8 intel_lookup_range_min_qp(int bpc, int buf_i, int bpp_i);
+u8 intel_lookup_range_max_qp(int bpc, int buf_i, int bpp_i);
+
+#endif