File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,19 @@ omap_plane_atomic_duplicate_state(struct drm_plane *plane)
348
348
return & state -> base ;
349
349
}
350
350
351
+ static void omap_plane_atomic_print_state (struct drm_printer * p ,
352
+ const struct drm_plane_state * state )
353
+ {
354
+ struct omap_plane_state * omap_state = to_omap_plane_state (state );
355
+
356
+ if (omap_state -> overlay )
357
+ drm_printf (p , "\toverlay=%s (caps=0x%x)\n" ,
358
+ omap_state -> overlay -> name ,
359
+ omap_state -> overlay -> caps );
360
+ else
361
+ drm_printf (p , "\toverlay=None\n" );
362
+ }
363
+
351
364
static int omap_plane_atomic_set_property (struct drm_plane * plane ,
352
365
struct drm_plane_state * state ,
353
366
struct drm_property * property ,
@@ -387,6 +400,7 @@ static const struct drm_plane_funcs omap_plane_funcs = {
387
400
.atomic_destroy_state = drm_atomic_helper_plane_destroy_state ,
388
401
.atomic_set_property = omap_plane_atomic_set_property ,
389
402
.atomic_get_property = omap_plane_atomic_get_property ,
403
+ .atomic_print_state = omap_plane_atomic_print_state ,
390
404
};
391
405
392
406
static bool omap_plane_supports_yuv (struct drm_plane * plane )
You can’t perform that action at this time.
0 commit comments