diff options
author | 2021-06-08 10:35:52 +0300 | |
---|---|---|
committer | 2021-06-23 15:29:15 +0300 | |
commit | 439ebf9ef1997eb39da2a11048216a40ebc0ad99 (patch) | |
tree | 2608f05c2c6d3542611a2bbb98d5b31e4b10d936 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915: Wrap the buf trans tables into a struct (diff) | |
download | linux-dev-439ebf9ef1997eb39da2a11048216a40ebc0ad99.tar.xz linux-dev-439ebf9ef1997eb39da2a11048216a40ebc0ad99.zip |
drm/i915: Introduce intel_get_buf_trans()
Add a small helper to get the buf trans entris+num_entries
from the struct. Should avoid copy-paste errors in the
platform specific get_buf_trans() functions.
@@
identifier T, N;
@@
- *N = T.num_entries;
- return T.entries;
+ return intel_get_buf_trans(&T, N);
@@
@@
is_hobl_buf_trans(...) { ... }
+
+ static const union intel_ddi_buf_trans_entry *
+ intel_get_buf_trans(const struct intel_ddi_buf_trans *ddi_translations, int *num_entries)
+ {
+ *num_entries = ddi_translations->num_entries;
+ return ddi_translations->entries;
+ }
v2: Handle adl-p
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210608073603.2408-7-ville.syrjala@linux.intel.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions