diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-05-14 16:00:25 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-05-14 17:00:40 +0100 |
commit | 6141aa2dad814ba8e1254c8e8213f1ba3ae6835a (patch) | |
tree | 201599dcd8d2c595f61c8defe434625fe1fc6b75 /lib | |
parent | 1f6f6c07bd5bed8540dd309c3f5eac9270955f72 (diff) |
docs: various documentation fixes
Fix various typos, add missing parameter documentation, include the
igt_draw section and update the list of ignored headers.
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_draw.c | 12 | ||||
-rw-r--r-- | lib/igt_draw.h | 4 | ||||
-rw-r--r-- | lib/igt_kms.c | 8 |
3 files changed, 19 insertions, 5 deletions
diff --git a/lib/igt_draw.c b/lib/igt_draw.c index 14e470f4..51dce4b6 100644 --- a/lib/igt_draw.c +++ b/lib/igt_draw.c @@ -68,6 +68,7 @@ struct rect { /** * igt_draw_get_method_name: + * @method: draw method * * Simple function to transform the enum into a string. Useful when naming * subtests and printing debug messages. @@ -533,6 +534,17 @@ void igt_draw_rect(int fd, drm_intel_bufmgr *bufmgr, drm_intel_context *context, /** * igt_draw_rect_fb: + * @fd: the DRM file descriptor + * @bufmgr: the libdrm bufmgr, only required for IGT_DRAW_BLT and + * IGT_DRAW_RENDER + * @context: the context, can be NULL if you don't want to think about it + * @fb: framebuffer + * @method: method you're going to use to write to the buffer + * @rect_x: horizontal position on the buffer where your rectangle starts + * @rect_y: vertical position on the buffer where your rectangle starts + * @rect_w: width of the rectangle + * @rect_h: height of the rectangle + * @color: color of the rectangle * * This is exactly the same as igt_draw_rect, but you can pass an igt_fb instead * of manually providing its details. See igt_draw_rect. diff --git a/lib/igt_draw.h b/lib/igt_draw.h index 61ffad5c..9d8413a4 100644 --- a/lib/igt_draw.h +++ b/lib/igt_draw.h @@ -29,10 +29,10 @@ #include "igt_fb.h" /** - *igt_draw_method: + * igt_draw_method: * @IGT_DRAW_MMAP_CPU: draw using a CPU mmap. * @IGT_DRAW_MMAP_GTT: draw using a GTT mmap. - * @IGT-DRAW_MMAP_WC: draw using the WC mmap. + * @IGT_DRAW_MMAP_WC: draw using the WC mmap. * @IGT_DRAW_PWRITE: draw using the pwrite ioctl. * @IGT_DRAW_BLT: draw using the BLT ring. * @IGT_DRAW_RENDER: draw using the render ring. diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 0665d707..f5670e06 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -1824,11 +1824,12 @@ void igt_plane_set_size(igt_plane_t *plane, int w, int h) /** * igt_fb_set_position: * @fb: framebuffer pointer + * @plane: plane * @x: X position * @y: Y position * * This function sets position for requested framebuffer as src to plane. - * New position will be commited at plane commit time via drmModeSetPlane(). + * New position will be committed at plane commit time via drmModeSetPlane(). */ void igt_fb_set_position(struct igt_fb *fb, igt_plane_t *plane, uint32_t x, uint32_t y) @@ -1846,13 +1847,14 @@ void igt_fb_set_position(struct igt_fb *fb, igt_plane_t *plane, } /** - * igt_fb_set_position: + * igt_fb_set_size: * @fb: framebuffer pointer + * @plane: plane * @w: width * @h: height * * This function sets fetch rect size from requested framebuffer as src - * to plane. New size will be commited at plane commit time via + * to plane. New size will be committed at plane commit time via * drmModeSetPlane(). */ void igt_fb_set_size(struct igt_fb *fb, igt_plane_t *plane, |