diff options
author | Alexander Kanavin <alex@linutronix.de> | 2022-08-08 20:22:39 +0200 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2022-09-02 13:37:11 +0000 |
commit | 23e3ab9b32258bfffd302769fdd290008da8277e (patch) | |
tree | c495478e0f4a4f14f19d6e330cf14b522302aeec | |
parent | 0d3ac81be223190c616947bd84749aebb73a7d2b (diff) | |
download | kmscube-23e3ab9b32258bfffd302769fdd290008da8277e.tar.gz |
drm-common.c: do not use invalid modifier
Prior to kernel 5.19 this was a soft failure, but 5.19
adds checks that result in a hard syscall fail.
-rw-r--r-- | drm-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drm-common.c b/drm-common.c index eb5ac20..e736922 100644 --- a/drm-common.c +++ b/drm-common.c @@ -92,7 +92,7 @@ struct drm_fb * drm_fb_get_from_bo(struct gbm_bo *bo) modifiers[i] = modifiers[0]; } - if (modifiers[0]) { + if (modifiers[0] && modifiers[0] != DRM_FORMAT_MOD_INVALID) { flags = DRM_MODE_FB_MODIFIERS; printf("Using modifier %" PRIx64 "\n", modifiers[0]); } |