[igt-dev] [PATCH i-g-t 2/2] lib/igt_matrix: Fix up some docs

Ville Syrjala ville.syrjala at linux.intel.com
Thu Mar 7 21:42:16 UTC 2019


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Add some missing documentation.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 lib/igt_matrix.c | 8 ++++++++
 lib/igt_matrix.h | 2 ++
 2 files changed, 10 insertions(+)

diff --git a/lib/igt_matrix.c b/lib/igt_matrix.c
index 35a9c321defd..6ba59d47dc4b 100644
--- a/lib/igt_matrix.c
+++ b/lib/igt_matrix.c
@@ -71,6 +71,9 @@ struct igt_mat4 igt_matrix_identity(void)
 
 /**
  * igt_matrix_scale:
+ * @x: x scaling amount
+ * @y: y scaling amount
+ * @z: z scaling amount
  *
  * Returns:
  * An scaling matrix.
@@ -89,6 +92,9 @@ struct igt_mat4 igt_matrix_scale(float x, float y, float z)
 
 /**
  * igt_matrix_translate:
+ * @x: x translation amount
+ * @y: y translation amount
+ * @z: z translation amount
  *
  * Returns:
  * A translation matrix.
@@ -110,6 +116,8 @@ struct igt_mat4 igt_matrix_translate(float x, float y, float z)
 
 /**
  * igt_matrix_multiply:
+ * @a: Left matrix
+ * @b: Right matrix
  *
  * Multiply two matrices together. @a is on the left,
  * @b on the right.
diff --git a/lib/igt_matrix.h b/lib/igt_matrix.h
index 7a2b9ad8b573..a56170a20413 100644
--- a/lib/igt_matrix.h
+++ b/lib/igt_matrix.h
@@ -55,6 +55,8 @@ struct igt_mat4 igt_matrix_multiply(const struct igt_mat4 *a,
 
 /**
  * igt_matrix_transform:
+ * @m: The matrix
+ * @v: The vector
  *
  * Transform the vector @v by the matrix @m. @m is on the left,
  * @v on the right.
-- 
2.19.2



More information about the igt-dev mailing list