ascent12 / drm_info

Moved to https://gitlab.freedesktop.org/emersion/drm_info
MIT License
63 stars 13 forks source link

Add support for GENERIC modifiers #68

Open emersion opened 3 years ago

emersion commented 3 years ago

Latest drm_fourcc.h has:

#define DRM_FORMAT_MOD_GENERIC_16_16_TILE DRM_FORMAT_MOD_SAMSUNG_16_16_TILE

We can't just include GENERIC in our list of vendors, because that fails with:

tables.c: In function ‘basic_modifier_str’:
tables.c:249:2: error: duplicate case value
  249 |  case DRM_FORMAT_MOD_SAMSUNG_16_16_TILE:
      |  ^~~~
tables.c:241:2: note: previously used here
  241 |  case DRM_FORMAT_MOD_GENERIC_16_16_TILE:
      |  ^~~~