mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
that can be rendered to According to https://registry.khronos.org/EGL/extensions/EXT/EGL_EXT_image_dma_buf_import_modifiers.txt , there is an interface that allows us to detect if a given format modifier is supported. For example, nvidia uses this to report that pitch-linear images can't be rendered to. Since we are only interested in formats that we can actually render to, we should strip these formats from the modifier list. See: https://github.com/elFarto/nvidia-vaapi-driver/issues/15#issuecomment-1015827050 https://gitlab.freedesktop.org/xorg/xserver/-/issues/1444#note_2450902 v2: Faster and simpler filter thanks to @algrid Signed-off-by: stefan11111 <stefan11111@shitposting.expert>