diff options
author | Rob Clark <robdclark@chromium.org> | 2020-03-07 09:34:40 -0800 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-03-07 09:34:40 -0800 |
commit | 38986c1401b378086b8951e52c65e648cdc85e1f (patch) | |
tree | cf77b21ef526ed044d6fabccd3edc8db85ad9474 /drm-common.h | |
parent | 301a556b8ece755bbf4f8ec3657e66e0a1dd327f (diff) | |
download | kmscube-38986c1401b378086b8951e52c65e648cdc85e1f.tar.gz |
kmscube: add option to run for specified # of frames
Diffstat (limited to 'drm-common.h')
-rw-r--r-- | drm-common.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drm-common.h b/drm-common.h index c4eb886..32648b0 100644 --- a/drm-common.h +++ b/drm-common.h @@ -63,6 +63,9 @@ struct drm { uint32_t crtc_id; uint32_t connector_id; + /* number of frames to run for: */ + unsigned int count; + int (*run)(const struct gbm *gbm, const struct egl *egl); }; @@ -73,8 +76,8 @@ struct drm_fb { struct drm_fb * drm_fb_get_from_bo(struct gbm_bo *bo); -int init_drm(struct drm *drm, const char *device, const char *mode_str, unsigned int vrefresh); -const struct drm * init_drm_legacy(const char *device, const char *mode_str, unsigned int vrefresh); -const struct drm * init_drm_atomic(const char *device, const char *mode_str, unsigned int vrefresh); +int init_drm(struct drm *drm, const char *device, const char *mode_str, unsigned int vrefresh, unsigned int count); +const struct drm * init_drm_legacy(const char *device, const char *mode_str, unsigned int vrefresh, unsigned int count); +const struct drm * init_drm_atomic(const char *device, const char *mode_str, unsigned int vrefresh, unsigned int count); #endif /* _DRM_COMMON_H */ |