[PATCH 4/5] drm/panic: add a private pointer to drm_scanout_buffer

Jocelyn Falempe jfalempe at redhat.com
Thu May 23 13:00:37 UTC 2024


So you can pass a parameter to the set_pixel() callback.

Signed-off-by: Jocelyn Falempe <jfalempe at redhat.com>
---
 include/drm/drm_panic.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/drm/drm_panic.h b/include/drm/drm_panic.h
index 73bb3f3d9ed9..f7c32d64af5f 100644
--- a/include/drm/drm_panic.h
+++ b/include/drm/drm_panic.h
@@ -51,6 +51,12 @@ struct drm_scanout_buffer {
 	 */
 	unsigned int pitch[DRM_FORMAT_MAX_PLANES];
 
+	/**
+	 * @private: Optional pointer to some private data you want to pass to
+	 * the set_pixel() function.
+	 */
+	void *private;
+
 	/**
 	 * @set_pixel: Optional function, to set a pixel color on the
 	 * framebuffer. It allows to handle special tiling format inside the
-- 
2.45.0



More information about the dri-devel mailing list