[PATCH i-g-t 4/4] lib/intel: Documnent gem_can_store_dword()

Ville Syrjala ville.syrjala at linux.intel.com
Wed Oct 2 10:45:15 UTC 2024


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

Add basic docs for gem_class_can_store_dword() and
gem_can_store_dword().

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 lib/igt_gt.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/lib/igt_gt.c b/lib/igt_gt.c
index b8faf2b7bd09..a8f7f4431d1c 100644
--- a/lib/igt_gt.c
+++ b/lib/igt_gt.c
@@ -667,6 +667,13 @@ static bool gem_store_dword_needs_physical(const struct intel_device_info *info)
 	}
 }
 
+/**
+ * gem_class_can_store_dword:
+ * @fd: open i915 drm file descriptor
+ * @class: engine class
+ *
+ * Is the MI_STORE_DWORD instruction actually usable?
+ */
 bool gem_class_can_store_dword(int fd, int class)
 {
 	uint16_t devid = intel_get_drm_devid(fd);
@@ -685,6 +692,13 @@ bool gem_class_can_store_dword(int fd, int class)
 	return true;
 }
 
+/**
+ * gem_can_store_dword:
+ * @fd: open i915 drm file descriptor
+ * @engine: engine
+ *
+ * Is the MI_STORE_DWORD instruction actually usable?
+ */
 bool gem_can_store_dword(int fd, unsigned int engine)
 {
 	return gem_class_can_store_dword(fd,
-- 
2.45.2



More information about the igt-dev mailing list