Revert "xf86drmMode: set FB_MODIFIERS flag when modifiers are supplied"

This reverts commit b362850689.

This breaks when the kernel driver does not support modifiers and the
application properly zeroes the modifiers.

Acked-by: Simon Ser <contact@emersion.fr>
main
Bas Nieuwenhuizen 2021-04-21 21:31:06 +02:00
parent c7dc0465cf
commit 40f73d0b0b
1 changed files with 1 additions and 3 deletions

View File

@ -289,10 +289,8 @@ drm_public int drmModeAddFB2WithModifiers(int fd, uint32_t width,
memcpy(f.handles, bo_handles, 4 * sizeof(bo_handles[0]));
memcpy(f.pitches, pitches, 4 * sizeof(pitches[0]));
memcpy(f.offsets, offsets, 4 * sizeof(offsets[0]));
if (modifier) {
f.flags |= DRM_MODE_FB_MODIFIERS;
if (modifier)
memcpy(f.modifier, modifier, 4 * sizeof(modifier[0]));
}
if ((ret = DRM_IOCTL(fd, DRM_IOCTL_MODE_ADDFB2, &f)))
return ret;