You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contains a definition of HDMI_STATIC_METADATA_TYPE1 = 1. This is copied from libdrm, and libdrm's version is copied from Linux kernel headers. It turns out this definition is wrong in kernel/libdrm, and should be HDMI_STATIC_METADATA_TYPE1 = 0 instead.
The kernel doesn't validate this, and many HDR monitors have insufficient validation in their firmware, so despite being wrong, it may have worked on specific HDR monitors.
See the ongoing discussion wrt. a kernel patch which should fix this for reference:
Thanks for pointing this out. We only hardcode the definitions because they were written in combination with testing kodi with HDR. I really think these hardcoded values can be removed from Kodi or guarded with an ifdef.
I don't know. Normally libdrm or the kernel would be a good reference. Or the official standards.
Wrt. HDR or similar, AMD's amdvlk driver source code could be another reference, e.g.:
Hello xbmc developers! As a little heads up:
xbmc/xbmc/cores/VideoPlayer/Buffers/VideoBufferDRMPRIME.h
Line 27 in 7f6938d
contains a definition of HDMI_STATIC_METADATA_TYPE1 = 1. This is copied from libdrm, and libdrm's version is copied from Linux kernel headers. It turns out this definition is wrong in kernel/libdrm, and should be HDMI_STATIC_METADATA_TYPE1 = 0 instead.
The kernel doesn't validate this, and many HDR monitors have insufficient validation in their firmware, so despite being wrong, it may have worked on specific HDR monitors.
See the ongoing discussion wrt. a kernel patch which should fix this for reference:
https://lists.freedesktop.org/archives/dri-devel/2021-January/295187.html
The text was updated successfully, but these errors were encountered: