diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-16 15:09:22 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-17 09:47:50 +0100 |
commit | f2e5dc0114f0045e28d7a562cec9daf23e978841 (patch) | |
tree | 2c13487e73f4553adcd14b978d91cb09d3abaf1c /lib | |
parent | dcf947aa4f2de2f3aa4766e0e3d31d2a992d3d84 (diff) |
lib/igt_debugfs: s/igt_pipe_crc_check/igt_require_pipe_crc/
Functions which provide feature checks through igt_skip should be of
the form <prefix>_require_<feature>.
Otoh feature checks which return in a boolean whether the feature is
available should be of the form <prefix>_has_<feature>, e.g.
gem_has_blt.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_debugfs.c | 4 | ||||
-rw-r--r-- | lib/igt_debugfs.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index b109a170..05aed156 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -321,13 +321,13 @@ static void pipe_crc_exit_handler(int sig) } /** - * igt_pipe_crc_check: + * igt_require_pipe_crc: * * Convenience helper to check whether pipe CRC capturing is supported by the * kernel. Uses igt_skip to automatically skip the test/subtest if this isn't * the case. */ -void igt_pipe_crc_check(void) +void igt_require_pipe_crc(void) { const char *cmd = "pipe A none"; FILE *ctl; diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h index 1618d8e4..d3d23896 100644 --- a/lib/igt_debugfs.h +++ b/lib/igt_debugfs.h @@ -89,7 +89,7 @@ bool igt_crc_is_null(igt_crc_t *crc); bool igt_crc_equal(igt_crc_t *a, igt_crc_t *b); char *igt_crc_to_string(igt_crc_t *crc); -void igt_pipe_crc_check(void); +void igt_require_pipe_crc(void); igt_pipe_crc_t * igt_pipe_crc_new(enum pipe pipe, enum intel_pipe_crc_source source); void igt_pipe_crc_free(igt_pipe_crc_t *pipe_crc); |