[plasma/kwin] src/backends/drm: backends/drm: Set LUT1D_INTERPOLATION and LUT3D_INTERPOLATION

Vlad Zahorodnii <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 6b333f48e524713d7ec7370c8904a4028a0b8651 by Vlad Zahorodnii.
Committed on 23/07/2026 at 08:27.
Pushed by vladz into branch 'master'.

backends/drm: Set LUT1D_INTERPOLATION and LUT3D_INTERPOLATION

It fixes unused member compilation warnings with clang.

M  +9    -0    src/backends/drm/drm_colorop.cpp

https://invent.kde.org/plasma/kwin/-/commit/6b333f48e524713d7ec7370c8904a4028a0b8651

diff --git a/src/backends/drm/drm_colorop.cpp b/src/backends/drm/drm_colorop.cpp
index d32822275e3..3d09b3d6112 100644
--- a/src/backends/drm/drm_colorop.cpp
+++ b/src/backends/drm/drm_colorop.cpp
@@ -348,6 +348,9 @@ void DrmLutColorOp16::program(DrmAtomicCommit *commit, const std::deque<ColorOp:
         };
     }
     commit->addBlob(*m_prop, DrmBlob::create(m_prop->drmObject()->gpu(), m_components.data(), sizeof(drm_color_lut) * m_maxSize));
+    if (m_interpolationMode) {
+        commit->addEnum(*m_interpolationMode, Lut1DInterpolation::Linear);
+    }
     if (m_bypass) {
         commit->addProperty(*m_bypass, 0);
     }
@@ -483,6 +486,9 @@ void DrmLutColorOp32::program(DrmAtomicCommit *commit, const std::deque<ColorOp:
         };
     }
     commit->addBlob(*m_prop, DrmBlob::create(m_prop->drmObject()->gpu(), m_components.data(), sizeof(LutComponent32) * m_maxSize));
+    if (m_interpolationMode) {
+        commit->addEnum(*m_interpolationMode, Lut1DInterpolation::Linear);
+    }
     if (m_bypass) {
         commit->addProperty(*m_bypass, 0);
     }
@@ -761,6 +767,9 @@ void DrmLut3DColorOp::program(DrmAtomicCommit *commit, const std::deque<ColorOp:
         }
     }
     commit->addBlob(*m_value, DrmBlob::create(m_value->drmObject()->gpu(), m_components.data(), m_components.size() * sizeof(LutComponent32)));
+    if (m_interpolation) {
+        commit->addEnum(*m_interpolation, Lut3DInterpolation::Tetrahedal);
+    }
     if (m_bypass) {
         commit->addProperty(*m_bypass, 0);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.