From: kernel test robot <lkp@intel.com>
To: Robert Mader <robert.mader@collabora.com>,
dri-devel@lists.freedesktop.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Pekka Paalanen <pekka.paalanen@collabora.com>,
Harry Wentland <harry.wentland@amd.com>,
Melissa Wen <mwen@igalia.com>,
Sebastian Wick <sebastian.wick@redhat.com>,
Robert Mader <robert.mader@collabora.com>,
Louis Chauvet <louis.chauvet@bootlin.com>,
Haneen Mohammed <hamohammed.sa@gmail.com>,
Simona Vetter <simona@ffwll.ch>,
Oarora Etimis <oaroraetimis@gmail.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>,
Leandro Ribeiro <leandro.ribeiro@collabora.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/4] drm/vkms: Add support for DRM_COLOROP_1D_CURVE_GAMMA24
Date: Sat, 5 Dec 2026 17:55:26 +0800 [thread overview]
Message-ID: <20261205052018.UwTod31F-lkp@intel.com> (raw)
In-Reply-To: <20261204145427.221618-5-robert.mader@collabora.com>
Hi Robert,
kernel test robot noticed the following build errors:
[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on drm/drm-next drm-tip/drm-tip next-20261203]
[cannot apply to linus/master v7.4-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Robert-Mader/drm-vkms-Fix-inverse-lut-naming-scheme-in-script/20261204-155340
base: https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next
patch link: https://lore.kernel.org/r/20261204145427.221618-5-robert.mader%40collabora.com
patch subject: [PATCH v2 4/4] drm/vkms: Add support for DRM_COLOROP_1D_CURVE_GAMMA24
config: powerpc64-randconfig-1001-20261205 (https://download.01.org/0day-ci/archive/20261205/20261205052018.UwTod31F-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261205/20261205052018.UwTod31F-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261205052018.UwTod31F-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/vkms/vkms_composer.c:280:8: error: use of undeclared identifier 'DRM_COLOROP_1D_CURVE_GAMMA24'; did you mean 'DRM_COLOROP_1D_CURVE_GAMMA22'?
280 | case DRM_COLOROP_1D_CURVE_GAMMA24:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| DRM_COLOROP_1D_CURVE_GAMMA22
include/drm/drm_colorop.h:119:2: note: 'DRM_COLOROP_1D_CURVE_GAMMA22' declared here
119 | DRM_COLOROP_1D_CURVE_GAMMA22,
| ^
>> drivers/gpu/drm/vkms/vkms_composer.c:285:8: error: use of undeclared identifier 'DRM_COLOROP_1D_CURVE_GAMMA24_INV'; did you mean 'DRM_COLOROP_1D_CURVE_GAMMA22_INV'?
285 | case DRM_COLOROP_1D_CURVE_GAMMA24_INV:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| DRM_COLOROP_1D_CURVE_GAMMA22_INV
include/drm/drm_colorop.h:128:2: note: 'DRM_COLOROP_1D_CURVE_GAMMA22_INV' declared here
128 | DRM_COLOROP_1D_CURVE_GAMMA22_INV,
| ^
>> drivers/gpu/drm/vkms/vkms_composer.c:280:8: error: duplicate case value 'DRM_COLOROP_1D_CURVE_GAMMA22'
280 | case DRM_COLOROP_1D_CURVE_GAMMA24:
| ^
drivers/gpu/drm/vkms/vkms_composer.c:267:8: note: previous case defined here
267 | case DRM_COLOROP_1D_CURVE_GAMMA22:
| ^
>> drivers/gpu/drm/vkms/vkms_composer.c:285:8: error: duplicate case value 'DRM_COLOROP_1D_CURVE_GAMMA22_INV'
285 | case DRM_COLOROP_1D_CURVE_GAMMA24_INV:
| ^
drivers/gpu/drm/vkms/vkms_composer.c:272:8: note: previous case defined here
272 | case DRM_COLOROP_1D_CURVE_GAMMA22_INV:
| ^
4 errors generated.
--
>> drivers/gpu/drm/vkms/vkms_colorop.c:16:6: error: use of undeclared identifier 'DRM_COLOROP_1D_CURVE_GAMMA24'; did you mean 'DRM_COLOROP_1D_CURVE_GAMMA22'?
16 | BIT(DRM_COLOROP_1D_CURVE_GAMMA24) |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| DRM_COLOROP_1D_CURVE_GAMMA22
include/vdso/bits.h:7:30: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^
include/drm/drm_colorop.h:119:2: note: 'DRM_COLOROP_1D_CURVE_GAMMA22' declared here
119 | DRM_COLOROP_1D_CURVE_GAMMA22,
| ^
>> drivers/gpu/drm/vkms/vkms_colorop.c:17:6: error: use of undeclared identifier 'DRM_COLOROP_1D_CURVE_GAMMA24_INV'; did you mean 'DRM_COLOROP_1D_CURVE_GAMMA22_INV'?
17 | BIT(DRM_COLOROP_1D_CURVE_GAMMA24_INV);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| DRM_COLOROP_1D_CURVE_GAMMA22_INV
include/vdso/bits.h:7:30: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^
include/drm/drm_colorop.h:128:2: note: 'DRM_COLOROP_1D_CURVE_GAMMA22_INV' declared here
128 | DRM_COLOROP_1D_CURVE_GAMMA22_INV,
| ^
2 errors generated.
vim +280 drivers/gpu/drm/vkms/vkms_composer.c
249
250 static void apply_colorop(struct pixel_argb_s32 *pixel, struct drm_colorop *colorop)
251 {
252 struct drm_colorop_state *colorop_state = colorop->state;
253 struct drm_device *dev = colorop->dev;
254
255 if (colorop->type == DRM_COLOROP_1D_CURVE) {
256 switch (colorop_state->curve_1d_type) {
257 case DRM_COLOROP_1D_CURVE_SRGB_INV_EOTF:
258 pixel->r = apply_lut_to_channel_value(&srgb_inv_eotf, pixel->r, LUT_RED);
259 pixel->g = apply_lut_to_channel_value(&srgb_inv_eotf, pixel->g, LUT_GREEN);
260 pixel->b = apply_lut_to_channel_value(&srgb_inv_eotf, pixel->b, LUT_BLUE);
261 break;
262 case DRM_COLOROP_1D_CURVE_SRGB_EOTF:
263 pixel->r = apply_lut_to_channel_value(&srgb_eotf, pixel->r, LUT_RED);
264 pixel->g = apply_lut_to_channel_value(&srgb_eotf, pixel->g, LUT_GREEN);
265 pixel->b = apply_lut_to_channel_value(&srgb_eotf, pixel->b, LUT_BLUE);
266 break;
267 case DRM_COLOROP_1D_CURVE_GAMMA22:
268 pixel->r = apply_lut_to_channel_value(&gamma22_eotf, pixel->r, LUT_RED);
269 pixel->g = apply_lut_to_channel_value(&gamma22_eotf, pixel->g, LUT_GREEN);
270 pixel->b = apply_lut_to_channel_value(&gamma22_eotf, pixel->b, LUT_BLUE);
271 break;
272 case DRM_COLOROP_1D_CURVE_GAMMA22_INV:
273 pixel->r = apply_lut_to_channel_value(&gamma22_inv_eotf, pixel->r,
274 LUT_RED);
275 pixel->g = apply_lut_to_channel_value(&gamma22_inv_eotf, pixel->g,
276 LUT_GREEN);
277 pixel->b = apply_lut_to_channel_value(&gamma22_inv_eotf, pixel->b,
278 LUT_BLUE);
279 break;
> 280 case DRM_COLOROP_1D_CURVE_GAMMA24:
281 pixel->r = apply_lut_to_channel_value(&gamma24_eotf, pixel->r, LUT_RED);
282 pixel->g = apply_lut_to_channel_value(&gamma24_eotf, pixel->g, LUT_GREEN);
283 pixel->b = apply_lut_to_channel_value(&gamma24_eotf, pixel->b, LUT_BLUE);
284 break;
> 285 case DRM_COLOROP_1D_CURVE_GAMMA24_INV:
286 pixel->r = apply_lut_to_channel_value(&gamma24_inv_eotf, pixel->r,
287 LUT_RED);
288 pixel->g = apply_lut_to_channel_value(&gamma24_inv_eotf, pixel->g,
289 LUT_GREEN);
290 pixel->b = apply_lut_to_channel_value(&gamma24_inv_eotf, pixel->b,
291 LUT_BLUE);
292 break;
293 default:
294 drm_WARN_ONCE(dev, true,
295 "unknown colorop 1D curve type %d\n",
296 colorop_state->curve_1d_type);
297 break;
298 }
299 } else if (colorop->type == DRM_COLOROP_CTM_3X4) {
300 if (colorop_state->data)
301 apply_3x4_matrix(pixel,
302 (struct drm_color_ctm_3x4 *)colorop_state->data->data);
303 } else if (colorop->type == DRM_COLOROP_FIXED_MATRIX) {
304 /*
305 * Fixed Matrix is a no-op here. YUV-to-RGB conversion
306 * is handled at format read time via the
307 * conversion_matrix set in vkms_plane_atomic_update().
308 */
309 }
310 }
311
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
parent reply other threads:[~2026-12-05 9:56 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20261204145427.221618-5-robert.mader@collabora.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261205052018.UwTod31F-lkp@intel.com \
--to=lkp@intel.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=hamohammed.sa@gmail.com \
--cc=harry.wentland@amd.com \
--cc=leandro.ribeiro@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=louis.chauvet@bootlin.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=mwen@igalia.com \
--cc=oaroraetimis@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pekka.paalanen@collabora.com \
--cc=robert.mader@collabora.com \
--cc=sebastian.wick@redhat.com \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox