XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions
drm_damage_helper.h File Reference
#include <drm/drm_atomic_helper.h>
Include dependency graph for drm_damage_helper.h:

Go to the source code of this file.

Classes

struct  drm_atomic_helper_damage_iter
 

Macros

#define drm_atomic_for_each_plane_damage(iter, rect)    while (drm_atomic_helper_damage_iter_next(iter, rect))
 

Functions

void drm_atomic_helper_check_plane_damage (struct drm_atomic_commit *state, struct drm_plane_state *plane_state)
 
int drm_atomic_helper_dirtyfb (struct drm_framebuffer *fb, struct drm_file *file_priv, unsigned int flags, unsigned int color, struct drm_clip_rect *clips, unsigned int num_clips)
 
void drm_atomic_helper_damage_iter_init (struct drm_atomic_helper_damage_iter *iter, const struct drm_plane_state *old_state, const struct drm_plane_state *new_state)
 
bool drm_atomic_helper_damage_iter_next (struct drm_atomic_helper_damage_iter *iter, struct drm_rect *rect)
 
bool drm_atomic_helper_damage_merged (const struct drm_plane_state *old_state, const struct drm_plane_state *state, struct drm_rect *rect)
 

Macro Definition Documentation

◆ drm_atomic_for_each_plane_damage

#define drm_atomic_for_each_plane_damage (   iter,
  rect 
)     while (drm_atomic_helper_damage_iter_next(iter, rect))

drm_atomic_for_each_plane_damage - Iterator macro for plane damage. @iter: The iterator to advance. @rect: Return a rectangle in fb coordinate clipped to plane src.

Note that if the first call to iterator macro return false then no need to do plane update. Iterator will return full plane src when damage is not passed by user-space.

Function Documentation

◆ drm_atomic_helper_check_plane_damage()

void drm_atomic_helper_check_plane_damage ( struct drm_atomic_commit *  state,
struct drm_plane_state *  plane_state 
)

◆ drm_atomic_helper_damage_iter_init()

void drm_atomic_helper_damage_iter_init ( struct drm_atomic_helper_damage_iter *  iter,
const struct drm_plane_state *  old_state,
const struct drm_plane_state *  new_state 
)

◆ drm_atomic_helper_damage_iter_next()

bool drm_atomic_helper_damage_iter_next ( struct drm_atomic_helper_damage_iter *  iter,
struct drm_rect *  rect 
)

◆ drm_atomic_helper_damage_merged()

bool drm_atomic_helper_damage_merged ( const struct drm_plane_state *  old_state,
const struct drm_plane_state *  state,
struct drm_rect *  rect 
)

◆ drm_atomic_helper_dirtyfb()

int drm_atomic_helper_dirtyfb ( struct drm_framebuffer *  fb,
struct drm_file *  file_priv,
unsigned int  flags,
unsigned int  color,
struct drm_clip_rect *  clips,
unsigned int  num_clips 
)