Lines Matching refs:n_planes
57 static void test_init(data_t *data, enum pipe pipe, int n_planes, in test_init() argument
64 data->plane = calloc(n_planes, sizeof(*data->plane)); in test_init()
67 data->fb = calloc(n_planes, sizeof(struct igt_fb)); in test_init()
89 static void test_fini(data_t *data, enum pipe pipe, int n_planes, in test_fini() argument
94 for (i = 0; i < n_planes; i++) { in test_fini()
171 x = malloc(p->n_planes * sizeof(*x)); in prepare_planes()
172 …igt_assert_f(x, "Failed to allocate %ld bytes for variable x\n", (long int) (p->n_planes * sizeof(… in prepare_planes()
174 y = malloc(p->n_planes * sizeof(*y)); in prepare_planes()
175 …igt_assert_f(y, "Failed to allocate %ld bytes for variable y\n", (long int) (p->n_planes * sizeof(… in prepare_planes()
177 size = malloc(p->n_planes * sizeof(*size)); in prepare_planes()
178 …igt_assert_f(size, "Failed to allocate %ld bytes for variable size\n", (long int) (p->n_planes * s… in prepare_planes()
238 int max_planes = data->display.pipes[pipe].n_planes; in test_plane_position_with_output()
308 int n_planes = data->display.pipes[pipe].n_planes; in run_test() local
318 test_init(data, pipe, n_planes, output); in run_test()
328 test_fini(data, pipe, n_planes, output); in run_test()
345 igt_require(data->display.pipes[pipe].n_planes > 0); in run_tests_for_pipe()