From nobody Sun Nov 24 17:28:08 2024 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61B1E1E0DFD; Mon, 18 Nov 2024 18:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731954515; cv=none; b=nAxJJoy+MTDfpf5DUWWQiWkWuiVi+GD/YCJxOhmFeV1Dbz2tM/Hbw4mLKTQ1Nf21RxH2WER2E9lVsFqtdhLHaapB5pH1WO0FpW0tt5hBtZbQ46iG2uRsKUiyscOQT/Os2ElzJfRr/4YzkSIGVu+2QBxz4gZtLJdcZLJi0kUAhgw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731954515; c=relaxed/simple; bh=T4b2XViUHvvR4aWwH5u1KViQJmrbml7Z40DA74YpBVo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bQp59hfhqTwUMQh9PYoLNoj+kwY8I7WYHTJo3li113eq8Q4hS/E85LsTJomK+rqni+1rMac5vZ1vJ2ofEL622FB69MWieZ8ChK4boCWeR+RJ72Qe76cPdJBTajpeOJUv4OgrPj5yLELHl+oHT4fVhq6Te7w8Of+OrM+wPXZ3agc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=ePai41CX; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ePai41CX" Received: by mail.gandi.net (Postfix) with ESMTPSA id 56F68E000B; Mon, 18 Nov 2024 18:28:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1731954510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6P2Mfz9IGThFtsXlZmLSLzWykq8tqEnih/NIQDAUqUc=; b=ePai41CXaAeNPVsgN6srQyUPLiWHO6evtWHTiU8nZX8u9pFgvZXUSmTndMxVJP3UmZRnm9 Bh/bvpfqcfLlRLtAPnSQRaPWDtAquWmPeoj1gKHsFOpvr6grIr6L2HqCg8vT1gz/CUjJ0a PM7N3QOM+OjazQEpftK4JqW1IrjLS04wjFREOz712KoPQyN/YD0CJhgNuFPaFKmyuZOyhL T92+rm8fw7Pnw2nKx40ysYKiIiTcrBOdOJFBlLPjHkRuyns74Qs3IatCpR1XrIAwBn7jkU ft2aOedcVyyW55/gQDn08C6keObjcvbPo1rBSlTDP3Sl5ItfvYb9UJKsNQoxSQ== From: Louis Chauvet Date: Mon, 18 Nov 2024 19:28:18 +0100 Subject: [PATCH v14 3/9] drm/vkms: Add typedef and documentation for pixel_read and pixel_write functions Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241118-yuv-v14-3-2dbc2f1e222c@bootlin.com> References: <20241118-yuv-v14-0-2dbc2f1e222c@bootlin.com> In-Reply-To: <20241118-yuv-v14-0-2dbc2f1e222c@bootlin.com> To: Rodrigo Siqueira , Melissa Wen , =?utf-8?q?Ma=C3=ADra_Canal?= , Haneen Mohammed , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Jonathan Corbet , Louis Chauvet , Simona Vetter , Helen Koike , rdunlap@infradead.org, arthurgrillo@riseup.net, pekka.paalanen@haloniitty.fi, Simona Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, thomas.petazzoni@bootlin.com, jeremie.dautheribes@bootlin.com, miquel.raynal@bootlin.com, seanpaul@google.com, marcheu@google.com, nicolejadeyee@google.com, Pekka Paalanen , =?utf-8?q?Jos=C3=A9_Exp=C3=B3sito?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=13465; i=louis.chauvet@bootlin.com; h=from:subject:message-id; bh=T4b2XViUHvvR4aWwH5u1KViQJmrbml7Z40DA74YpBVo=; b=owEBbQKS/ZANAwAIASCtLsZbECziAcsmYgBnO4dFtirgwgL1++aZqqF7xZfjH4D27ceqK7y/n bnuan0/T7aJAjMEAAEIAB0WIQRPj7g/vng8MQxQWQQgrS7GWxAs4gUCZzuHRQAKCRAgrS7GWxAs 4vtQD/sFuaLLwxJtc85YPQbmi6KnDwRbsD92a+vyhT0FoxZusEyf8n+jX+766xm31dzuRnJ1TjY nxUrFqPYixQpH0zN9kE+CBcar4lYXhRNQnj14ZIFNa32tmLWcTN/JJlAuNV7o1svCFCkKfhnI+A hsOnhO1pq+U9p8yxdpQIJXknfsTW/dFdJJNbR6MP2Qdv3YoOX1IHgjhl1MSCz7Tn33BukUAMyjG oX9JJzEamSlfJAfsjGCxaqQ8AW2+mZkqBdYWYLtha7u8hmsXDJx8cIcAe15NRzpM2CZRgWfa1N+ zNdkXOKB8+rb5H5/eNZsXwKKqqNa0LJgoxHXRMCDQIFQd7hqqvu8Drn3Mje8xSWgJkUtDwhBF42 FNYxToPO7tZp+/TK75MQF8sRlwBzEIcmVRfvYFCS93nJyfb15m/kSh8HxriOQckR1YUy61H5kI7 G7Yahtenx2Ot7c4c79y0TDfI85i87S7HHT7aUOezBL6MLYLonQ4/wQpVtX3lTmRodRQbqSqJm+O wWVsBtuFw0fWeJ/bU/ygHyhPzr6myBcIIWsR5wyVKBZd44k8iv/jvszloX55j/y7xQXwTUHgge0 GUKagT1ujgVNbk1Lmzi6Ve4CNzMTnr1YP8zqRaMsnPi0Hz39YU0JjgMnQGdX7Nljm2pBvujM7PT VYvrk0BO9O9DAHg== X-Developer-Key: i=louis.chauvet@bootlin.com; a=openpgp; fpr=8B7104AE9A272D6693F527F2EC1883F55E0B40A5 X-GND-Sasl: louis.chauvet@bootlin.com Introduce two typedefs: pixel_read_t and pixel_write_t. It allows the compiler to check if the passed functions take the correct arguments. Such typedefs will help ensuring consistency across the code base in case of update of these prototypes. Rename input/output variable in a consistent way between read_line and write_line. A warn has been added in get_pixel_*_function to alert when an unsupported pixel format is requested. As those formats are checked before atomic_update callbacks, it should never happen. Document for those typedefs. Reviewed-by: Pekka Paalanen Reviewed-by: Jos=C3=A9 Exp=C3=B3sito Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_drv.h | 23 ++++++- drivers/gpu/drm/vkms/vkms_formats.c | 124 ++++++++++++++++++++------------= ---- drivers/gpu/drm/vkms/vkms_formats.h | 4 +- drivers/gpu/drm/vkms/vkms_plane.c | 2 +- 4 files changed, 94 insertions(+), 59 deletions(-) diff --git a/drivers/gpu/drm/vkms/vkms_drv.h b/drivers/gpu/drm/vkms/vkms_dr= v.h index fcb5a5ff7df7123073f027d4773f1a515480441a..e0d46defed835e5670dc1665da9= 917f807ad0c07 100644 --- a/drivers/gpu/drm/vkms/vkms_drv.h +++ b/drivers/gpu/drm/vkms/vkms_drv.h @@ -53,12 +53,31 @@ struct line_buffer { struct pixel_argb_u16 *pixels; }; =20 +/** + * typedef pixel_write_t - These functions are used to read a pixel from a + * &struct pixel_argb_u16, convert it in a specific format and write it in= the @out_pixel + * buffer. + * + * @out_pixel: destination address to write the pixel + * @in_pixel: pixel to write + */ +typedef void (*pixel_write_t)(u8 *out_pixel, struct pixel_argb_u16 *in_pix= el); + struct vkms_writeback_job { struct iosys_map data[DRM_FORMAT_MAX_PLANES]; struct vkms_frame_info wb_frame_info; - void (*pixel_write)(u8 *dst_pixels, struct pixel_argb_u16 *in_pixel); + pixel_write_t pixel_write; }; =20 +/** + * typedef pixel_read_t - These functions are used to read a pixel in the = source frame, + * convert it to `struct pixel_argb_u16` and write it to @out_pixel. + * + * @in_pixel: pointer to the pixel to read + * @out_pixel: pointer to write the converted pixel + */ +typedef void (*pixel_read_t)(u8 *in_pixel, struct pixel_argb_u16 *out_pixe= l); + /** * struct vkms_plane_state - Driver specific plane state * @base: base plane state @@ -69,7 +88,7 @@ struct vkms_writeback_job { struct vkms_plane_state { struct drm_shadow_plane_state base; struct vkms_frame_info *frame_info; - void (*pixel_read)(u8 *src_buffer, struct pixel_argb_u16 *out_pixel); + pixel_read_t pixel_read; }; =20 struct vkms_plane { diff --git a/drivers/gpu/drm/vkms/vkms_formats.c b/drivers/gpu/drm/vkms/vkm= s_formats.c index 2a0fbe27d8b28e7e9e8a12ad08a2cac4ba7277e7..b9544e67cd4fad7fdd4707527a6= ff8ea8f2c35be 100644 --- a/drivers/gpu/drm/vkms/vkms_formats.c +++ b/drivers/gpu/drm/vkms/vkms_formats.c @@ -75,7 +75,7 @@ static int get_x_position(const struct vkms_frame_info *f= rame_info, int limit, i * They are used in the vkms_compose_row() function to handle multiple for= mats. */ =20 -static void ARGB8888_to_argb_u16(u8 *src_pixels, struct pixel_argb_u16 *ou= t_pixel) +static void ARGB8888_to_argb_u16(u8 *in_pixel, struct pixel_argb_u16 *out_= pixel) { /* * The 257 is the "conversion ratio". This number is obtained by the @@ -83,48 +83,48 @@ static void ARGB8888_to_argb_u16(u8 *src_pixels, struct= pixel_argb_u16 *out_pixe * the best color value in a pixel format with more possibilities. * A similar idea applies to others RGB color conversions. */ - out_pixel->a =3D (u16)src_pixels[3] * 257; - out_pixel->r =3D (u16)src_pixels[2] * 257; - out_pixel->g =3D (u16)src_pixels[1] * 257; - out_pixel->b =3D (u16)src_pixels[0] * 257; + out_pixel->a =3D (u16)in_pixel[3] * 257; + out_pixel->r =3D (u16)in_pixel[2] * 257; + out_pixel->g =3D (u16)in_pixel[1] * 257; + out_pixel->b =3D (u16)in_pixel[0] * 257; } =20 -static void XRGB8888_to_argb_u16(u8 *src_pixels, struct pixel_argb_u16 *ou= t_pixel) +static void XRGB8888_to_argb_u16(u8 *in_pixel, struct pixel_argb_u16 *out_= pixel) { out_pixel->a =3D (u16)0xffff; - out_pixel->r =3D (u16)src_pixels[2] * 257; - out_pixel->g =3D (u16)src_pixels[1] * 257; - out_pixel->b =3D (u16)src_pixels[0] * 257; + out_pixel->r =3D (u16)in_pixel[2] * 257; + out_pixel->g =3D (u16)in_pixel[1] * 257; + out_pixel->b =3D (u16)in_pixel[0] * 257; } =20 -static void ARGB16161616_to_argb_u16(u8 *src_pixels, struct pixel_argb_u16= *out_pixel) +static void ARGB16161616_to_argb_u16(u8 *in_pixel, struct pixel_argb_u16 *= out_pixel) { - __le16 *pixels =3D (__force __le16 *)src_pixels; + __le16 *pixel =3D (__le16 *)in_pixel; =20 - out_pixel->a =3D le16_to_cpu(pixels[3]); - out_pixel->r =3D le16_to_cpu(pixels[2]); - out_pixel->g =3D le16_to_cpu(pixels[1]); - out_pixel->b =3D le16_to_cpu(pixels[0]); + out_pixel->a =3D le16_to_cpu(pixel[3]); + out_pixel->r =3D le16_to_cpu(pixel[2]); + out_pixel->g =3D le16_to_cpu(pixel[1]); + out_pixel->b =3D le16_to_cpu(pixel[0]); } =20 -static void XRGB16161616_to_argb_u16(u8 *src_pixels, struct pixel_argb_u16= *out_pixel) +static void XRGB16161616_to_argb_u16(u8 *in_pixel, struct pixel_argb_u16 *= out_pixel) { - __le16 *pixels =3D (__force __le16 *)src_pixels; + __le16 *pixel =3D (__le16 *)in_pixel; =20 out_pixel->a =3D (u16)0xffff; - out_pixel->r =3D le16_to_cpu(pixels[2]); - out_pixel->g =3D le16_to_cpu(pixels[1]); - out_pixel->b =3D le16_to_cpu(pixels[0]); + out_pixel->r =3D le16_to_cpu(pixel[2]); + out_pixel->g =3D le16_to_cpu(pixel[1]); + out_pixel->b =3D le16_to_cpu(pixel[0]); } =20 -static void RGB565_to_argb_u16(u8 *src_pixels, struct pixel_argb_u16 *out_= pixel) +static void RGB565_to_argb_u16(u8 *in_pixel, struct pixel_argb_u16 *out_pi= xel) { - __le16 *pixels =3D (__force __le16 *)src_pixels; + __le16 *pixel =3D (__le16 *)in_pixel; =20 s64 fp_rb_ratio =3D drm_fixp_div(drm_int2fixp(65535), drm_int2fixp(31)); s64 fp_g_ratio =3D drm_fixp_div(drm_int2fixp(65535), drm_int2fixp(63)); =20 - u16 rgb_565 =3D le16_to_cpu(*pixels); + u16 rgb_565 =3D le16_to_cpu(*pixel); s64 fp_r =3D drm_int2fixp((rgb_565 >> 11) & 0x1f); s64 fp_g =3D drm_int2fixp((rgb_565 >> 5) & 0x3f); s64 fp_b =3D drm_int2fixp(rgb_565 & 0x1f); @@ -168,12 +168,12 @@ void vkms_compose_row(struct line_buffer *stage_buffe= r, struct vkms_plane_state =20 /* * The following functions take one &struct pixel_argb_u16 and convert it = to a specific format. - * The result is stored in @dst_pixels. + * The result is stored in @out_pixel. * * They are used in vkms_writeback_row() to convert and store a pixel from= the src_buffer to * the writeback buffer. */ -static void argb_u16_to_ARGB8888(u8 *dst_pixels, struct pixel_argb_u16 *in= _pixel) +static void argb_u16_to_ARGB8888(u8 *out_pixel, struct pixel_argb_u16 *in_= pixel) { /* * This sequence below is important because the format's byte order is @@ -185,43 +185,43 @@ static void argb_u16_to_ARGB8888(u8 *dst_pixels, stru= ct pixel_argb_u16 *in_pixel * | Addr + 2 | =3D Red channel * | Addr + 3 | =3D Alpha channel */ - dst_pixels[3] =3D DIV_ROUND_CLOSEST(in_pixel->a, 257); - dst_pixels[2] =3D DIV_ROUND_CLOSEST(in_pixel->r, 257); - dst_pixels[1] =3D DIV_ROUND_CLOSEST(in_pixel->g, 257); - dst_pixels[0] =3D DIV_ROUND_CLOSEST(in_pixel->b, 257); + out_pixel[3] =3D DIV_ROUND_CLOSEST(in_pixel->a, 257); + out_pixel[2] =3D DIV_ROUND_CLOSEST(in_pixel->r, 257); + out_pixel[1] =3D DIV_ROUND_CLOSEST(in_pixel->g, 257); + out_pixel[0] =3D DIV_ROUND_CLOSEST(in_pixel->b, 257); } =20 -static void argb_u16_to_XRGB8888(u8 *dst_pixels, struct pixel_argb_u16 *in= _pixel) +static void argb_u16_to_XRGB8888(u8 *out_pixel, struct pixel_argb_u16 *in_= pixel) { - dst_pixels[3] =3D 0xff; - dst_pixels[2] =3D DIV_ROUND_CLOSEST(in_pixel->r, 257); - dst_pixels[1] =3D DIV_ROUND_CLOSEST(in_pixel->g, 257); - dst_pixels[0] =3D DIV_ROUND_CLOSEST(in_pixel->b, 257); + out_pixel[3] =3D 0xff; + out_pixel[2] =3D DIV_ROUND_CLOSEST(in_pixel->r, 257); + out_pixel[1] =3D DIV_ROUND_CLOSEST(in_pixel->g, 257); + out_pixel[0] =3D DIV_ROUND_CLOSEST(in_pixel->b, 257); } =20 -static void argb_u16_to_ARGB16161616(u8 *dst_pixels, struct pixel_argb_u16= *in_pixel) +static void argb_u16_to_ARGB16161616(u8 *out_pixel, struct pixel_argb_u16 = *in_pixel) { - __le16 *pixels =3D (__force __le16 *)dst_pixels; + __le16 *pixel =3D (__le16 *)out_pixel; =20 - pixels[3] =3D cpu_to_le16(in_pixel->a); - pixels[2] =3D cpu_to_le16(in_pixel->r); - pixels[1] =3D cpu_to_le16(in_pixel->g); - pixels[0] =3D cpu_to_le16(in_pixel->b); + pixel[3] =3D cpu_to_le16(in_pixel->a); + pixel[2] =3D cpu_to_le16(in_pixel->r); + pixel[1] =3D cpu_to_le16(in_pixel->g); + pixel[0] =3D cpu_to_le16(in_pixel->b); } =20 -static void argb_u16_to_XRGB16161616(u8 *dst_pixels, struct pixel_argb_u16= *in_pixel) +static void argb_u16_to_XRGB16161616(u8 *out_pixel, struct pixel_argb_u16 = *in_pixel) { - __le16 *pixels =3D (__force __le16 *)dst_pixels; + __le16 *pixel =3D (__le16 *)out_pixel; =20 - pixels[3] =3D cpu_to_le16(0xffff); - pixels[2] =3D cpu_to_le16(in_pixel->r); - pixels[1] =3D cpu_to_le16(in_pixel->g); - pixels[0] =3D cpu_to_le16(in_pixel->b); + pixel[3] =3D cpu_to_le16(0xffff); + pixel[2] =3D cpu_to_le16(in_pixel->r); + pixel[1] =3D cpu_to_le16(in_pixel->g); + pixel[0] =3D cpu_to_le16(in_pixel->b); } =20 -static void argb_u16_to_RGB565(u8 *dst_pixels, struct pixel_argb_u16 *in_p= ixel) +static void argb_u16_to_RGB565(u8 *out_pixel, struct pixel_argb_u16 *in_pi= xel) { - __le16 *pixels =3D (__force __le16 *)dst_pixels; + __le16 *pixel =3D (__le16 *)out_pixel; =20 s64 fp_rb_ratio =3D drm_fixp_div(drm_int2fixp(65535), drm_int2fixp(31)); s64 fp_g_ratio =3D drm_fixp_div(drm_int2fixp(65535), drm_int2fixp(63)); @@ -234,7 +234,7 @@ static void argb_u16_to_RGB565(u8 *dst_pixels, struct p= ixel_argb_u16 *in_pixel) u16 g =3D drm_fixp2int(drm_fixp_div(fp_g, fp_g_ratio)); u16 b =3D drm_fixp2int(drm_fixp_div(fp_b, fp_rb_ratio)); =20 - *pixels =3D cpu_to_le16(r << 11 | g << 5 | b); + *pixel =3D cpu_to_le16(r << 11 | g << 5 | b); } =20 /** @@ -259,13 +259,13 @@ void vkms_writeback_row(struct vkms_writeback_job *wb, } =20 /** - * get_pixel_conversion_function() - Retrieve the correct read_pixel funct= ion for a specific + * get_pixel_read_function() - Retrieve the correct read_pixel function fo= r a specific * format. The returned pointer is NULL for unsupported pixel formats. The= caller must ensure that * the pointer is valid before using it in a vkms_plane_state. * * @format: DRM_FORMAT_* value for which to obtain a conversion function (= see [drm_fourcc.h]) */ -void *get_pixel_conversion_function(u32 format) +pixel_read_t get_pixel_read_function(u32 format) { switch (format) { case DRM_FORMAT_ARGB8888: @@ -279,7 +279,15 @@ void *get_pixel_conversion_function(u32 format) case DRM_FORMAT_RGB565: return &RGB565_to_argb_u16; default: - return NULL; + /* + * This is a bug in vkms_plane_atomic_check(). All the supported + * format must: + * - Be listed in vkms_formats in vkms_plane.c + * - Have a pixel_read callback defined here + */ + pr_err("Pixel format %p4cc is not supported by VKMS planes. This is a ke= rnel bug, atomic check must forbid this configuration.\n", + &format); + BUG(); } } =20 @@ -290,7 +298,7 @@ void *get_pixel_conversion_function(u32 format) * * @format: DRM_FORMAT_* value for which to obtain a conversion function (= see [drm_fourcc.h]) */ -void *get_pixel_write_function(u32 format) +pixel_write_t get_pixel_write_function(u32 format) { switch (format) { case DRM_FORMAT_ARGB8888: @@ -304,6 +312,14 @@ void *get_pixel_write_function(u32 format) case DRM_FORMAT_RGB565: return &argb_u16_to_RGB565; default: - return NULL; + /* + * This is a bug in vkms_writeback_atomic_check. All the supported + * format must: + * - Be listed in vkms_wb_formats in vkms_writeback.c + * - Have a pixel_write callback defined here + */ + pr_err("Pixel format %p4cc is not supported by VKMS writeback. This is a= kernel bug, atomic check must forbid this configuration.\n", + &format); + BUG(); } } diff --git a/drivers/gpu/drm/vkms/vkms_formats.h b/drivers/gpu/drm/vkms/vkm= s_formats.h index cf59c2ed8e9af06c9838635e3f7819a9169494b5..3ecea456325490f41fecf35ba2d= b2676252013a6 100644 --- a/drivers/gpu/drm/vkms/vkms_formats.h +++ b/drivers/gpu/drm/vkms/vkms_formats.h @@ -5,8 +5,8 @@ =20 #include "vkms_drv.h" =20 -void *get_pixel_conversion_function(u32 format); +pixel_read_t get_pixel_read_function(u32 format); =20 -void *get_pixel_write_function(u32 format); +pixel_write_t get_pixel_write_function(u32 format); =20 #endif /* _VKMS_FORMATS_H_ */ diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkms_= plane.c index 21b5adfb44aa584e1acd6697954aabeb4e905c3c..10e9b23dab28359235ee0375aa1= 95fc2a4abda73 100644 --- a/drivers/gpu/drm/vkms/vkms_plane.c +++ b/drivers/gpu/drm/vkms/vkms_plane.c @@ -125,7 +125,7 @@ static void vkms_plane_atomic_update(struct drm_plane *= plane, drm_rect_rotate(&frame_info->rotated, drm_rect_width(&frame_info->rotated= ), drm_rect_height(&frame_info->rotated), frame_info->rotation); =20 - vkms_plane_state->pixel_read =3D get_pixel_conversion_function(fmt); + vkms_plane_state->pixel_read =3D get_pixel_read_function(fmt); } =20 static int vkms_plane_atomic_check(struct drm_plane *plane, --=20 2.47.0