gen_table_fourcc: strip _MODIFIER suffix for INVALID
authorSimon Ser <contact@emersion.fr>
Mon, 2 May 2022 17:24:43 +0000 (19:24 +0200)
committerSimon Ser <contact@emersion.fr>
Wed, 8 Jun 2022 12:02:48 +0000 (14:02 +0200)
This is the only modifier printed with a "_MODIFIER" suffix. It
looks inconsistent when callers already print this word (e.g.
"modifier: INVALID_MODIFIER").

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Marius Vlad <marius.vlad@collabora.com>
gen_table_fourcc.py

index 4236fd7..1473d43 100644 (file)
@@ -56,7 +56,7 @@ with open(towrite, "w") as f:
    that script instead of adding here entries manually! */
 static const struct drmFormatModifierInfo drm_format_modifier_table[] = {
 ''')
-    f.write('    { DRM_MODIFIER_INVALID(NONE, INVALID_MODIFIER) },\n')
+    f.write('    { DRM_MODIFIER_INVALID(NONE, INVALID) },\n')
     f.write('    { DRM_MODIFIER_LINEAR(NONE, LINEAR) },\n')
 
     for entry in fm_re['intel']: