gen_table_fourcc: strip _MODIFIER suffix for INVALID

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>
main
Simon Ser 2022-05-02 19:24:43 +02:00
parent f801b07a60
commit 3bede5dbbc
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ with open(towrite, "w") as f:
that script instead of adding here entries manually! */ that script instead of adding here entries manually! */
static const struct drmFormatModifierInfo drm_format_modifier_table[] = { 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') f.write(' { DRM_MODIFIER_LINEAR(NONE, LINEAR) },\n')
for entry in fm_re['intel']: for entry in fm_re['intel']: