/**
* igt_pipe_crc_check:
- * @debugfs: debugfs access structure
*
* 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(igt_debugfs_t *debugfs)
+void igt_pipe_crc_check(void)
{
const char *cmd = "pipe A none";
FILE *ctl;
/**
* igt_pipe_crc_new:
- * @debugfs: debugfs access structure
* @pipe: display pipe to use as source
* @source: CRC tap point to use as source
*
* specific pipe CRC source to function properly.
*/
igt_pipe_crc_t *
-igt_pipe_crc_new(igt_debugfs_t *debugfs, enum pipe pipe,
- enum intel_pipe_crc_source source)
+igt_pipe_crc_new(enum pipe pipe, enum intel_pipe_crc_source source)
{
igt_pipe_crc_t *pipe_crc;
char buf[128];
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(igt_debugfs_t *debugfs);
+void igt_pipe_crc_check(void);
igt_pipe_crc_t *
-igt_pipe_crc_new(igt_debugfs_t *debugfs, enum pipe pipe,
- enum intel_pipe_crc_source source);
+igt_pipe_crc_new(enum pipe pipe, enum intel_pipe_crc_source source);
void igt_pipe_crc_free(igt_pipe_crc_t *pipe_crc);
void igt_pipe_crc_start(igt_pipe_crc_t *pipe_crc);
void igt_pipe_crc_stop(igt_pipe_crc_t *pipe_crc);
typedef struct {
int drm_fd;
- igt_debugfs_t debugfs;
igt_display_t display;
struct kmstest_fb primary_fb;
struct kmstest_fb fb[NUM_CURSOR_TYPES];
{
igt_pipe_crc_t *crc;
- crc = igt_pipe_crc_new(&data->debugfs, pipe,
- INTEL_PIPE_CRC_SOURCE_AUTO);
+ crc = igt_pipe_crc_new(pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
return crc;
}
igt_set_vt_graphics_mode();
- igt_debugfs_init(&data.debugfs);
- igt_pipe_crc_check(&data.debugfs);
+ igt_pipe_crc_check();
igt_display_init(&data.display, data.drm_fd);
data.pipe_crc = calloc(igt_display_get_n_pipes(&data.display),
typedef struct {
int drm_fd;
- igt_debugfs_t debugfs;
drmModeRes *resources;
igt_crc_t ref_crc[2];
igt_pipe_crc_t **pipe_crc;
igt_pipe_crc_free(data->pipe_crc[data->crtc_idx]);
data->pipe_crc[data->crtc_idx] = NULL;
- pipe_crc = igt_pipe_crc_new(&data->debugfs,
- data->crtc_idx,
+ pipe_crc = igt_pipe_crc_new(data->crtc_idx,
INTEL_PIPE_CRC_SOURCE_AUTO);
if (!pipe_crc) {
printf("auto crc not supported on this connector with crtc %i\n",
data.devid = intel_get_drm_devid(data.drm_fd);
- igt_debugfs_init(&data.debugfs);
- igt_pipe_crc_check(&data.debugfs);
+ igt_pipe_crc_check();
status = igt_debugfs_fopen("i915_fbc_status", "r");
igt_require_f(status, "No i915_fbc_status found\n");
typedef struct {
int drm_fd;
- igt_debugfs_t debugfs;
igt_display_t display;
struct kmstest_fb fb;
} data_t;
igt_display_commit(display);
- pipe_crc = igt_pipe_crc_new(&data->debugfs,
- pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
+ pipe_crc = igt_pipe_crc_new(pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
if (!pipe_crc)
continue;
igt_set_vt_graphics_mode();
- igt_debugfs_init(&data.debugfs);
- igt_pipe_crc_check(&data.debugfs);
+ igt_pipe_crc_check();
igt_display_init(&data.display, data.drm_fd);
}
typedef struct {
int drm_fd;
- igt_debugfs_t debugfs;
igt_display_t display;
} data_t;
drmModeModeInfo *mode;
igt_plane_t *primary;
- test->pipe_crc = igt_pipe_crc_new(&data->debugfs,
- pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
+ test->pipe_crc = igt_pipe_crc_new(pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
igt_output_set_pipe(output, pipe);
primary = igt_output_get_plane(output, 0);
igt_set_vt_graphics_mode();
- igt_debugfs_init(&data.debugfs);
- igt_pipe_crc_check(&data.debugfs);
+ igt_pipe_crc_check();
igt_display_init(&data.display, data.drm_fd);
}