Home
last modified time | relevance | path

Searched refs:igt_assert (Results 1 – 25 of 270) sorted by relevance

1234567891011

/external/igt-gpu-tools/tests/
Dprime_nv_api.c51 igt_assert(ret); in find_and_open_devices()
58 igt_assert(intel_fd); in find_and_open_devices()
60 igt_assert(intel_fd2); in find_and_open_devices()
63 igt_assert(nouveau_fd); in find_and_open_devices()
65 igt_assert(nouveau_fd2); in find_and_open_devices()
78 igt_assert(drm_intel_bo_gem_export_to_prime(test_intel_bo, &prime_fd) == 0); in test_i915_nv_import_twice()
80 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_nv_import_twice()
81 igt_assert(nouveau_bo_prime_handle_ref(ndev2, prime_fd, &nvbo2) == 0); in test_i915_nv_import_twice()
98 igt_assert(drm_intel_bo_gem_export_to_prime(test_intel_bo, &prime_fd) == 0); in test_i915_nv_import_twice_check_flink_name()
100 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_nv_import_twice_check_flink_name()
[all …]
Dprime_nv_test.c58 igt_assert(ret); in find_and_open_devices()
91 igt_assert(test_intel_bo); in test_i915_nv_sharing()
95 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_i915_nv_sharing()
116 igt_assert(nouveau_bo_new(ndev, NOUVEAU_BO_GART | NOUVEAU_BO_MAP, in test_nv_i915_sharing()
118 igt_assert(nouveau_bo_set_prime(nvbo, &prime_fd) == 0); in test_nv_i915_sharing()
122 igt_assert(test_intel_bo); in test_nv_i915_sharing()
143 igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); in test_nv_write_i915_cpu_mmap_read()
146 igt_assert(nouveau_bo_map(nvbo, NOUVEAU_BO_RDWR, nclient) == 0); in test_nv_write_i915_cpu_mmap_read()
152 igt_assert(ptr); in test_nv_write_i915_cpu_mmap_read()
154 igt_assert(*ptr == 0xdeadbeef); in test_nv_write_i915_cpu_mmap_read()
[all …]
Dkms_addfb_basic.c83 igt_assert(gem_bo); in invalid_tests()
86 igt_assert(gem_bo_small); in invalid_tests()
90 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f) == 0); in invalid_tests()
91 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_RMFB, &f.fb_id) == 0); in invalid_tests()
101 igt_assert(drmIoctl(fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f) == -1 && in invalid_tests()
110 igt_assert(drmIoctl(fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f) == -1 && in invalid_tests()
119 igt_assert(drmIoctl(fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f) == -1 && in invalid_tests()
128 igt_assert(drmIoctl(fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f) == -1 && in invalid_tests()
138 igt_assert(drmIoctl(fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f) == 0); in invalid_tests()
139 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_RMFB, &f.fb_id) == 0); in invalid_tests()
[all …]
Dion_fb.c38 igt_assert(heap_id != -1); in make_fb_with_fds()
40 igt_assert(!ion_alloc_one_fd( in make_fb_with_fds()
54 igt_assert(drm_fd >= 0); in test_make_fb()
57 igt_assert(ion_fd >= 0); in test_make_fb()
78 igt_assert(heap_id != -1); in clone_with_fds()
80 igt_assert(!ion_alloc_one_fd( in clone_with_fds()
88 igt_assert(!ion_clone_fd_via_gem(drm_fd, &clone_fd, ion_buffer_fd)); in clone_with_fds()
90 igt_assert(clone_fd >= 0); in clone_with_fds()
91 igt_assert(clone_fd != ion_buffer_fd); in clone_with_fds()
100 igt_assert(drm_fd >= 0); in test_clone()
[all …]
Dprime_mmap.c86 igt_assert(errno == 0); in test_correct()
91 igt_assert(ptr1 != MAP_FAILED); in test_correct()
92 igt_assert(ptr2 != MAP_FAILED); in test_correct()
93 igt_assert(memcmp(ptr1, ptr2, BO_SIZE) == 0); in test_correct()
96 igt_assert(memcmp(ptr2, pattern, sizeof(pattern)) == 0); in test_correct()
115 igt_assert(errno == 0); in test_map_unmap()
118 igt_assert(ptr != MAP_FAILED); in test_map_unmap()
119 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_map_unmap()
124 igt_assert(ptr != MAP_FAILED); in test_map_unmap()
125 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_map_unmap()
[all …]
Dcore_auth.c108 igt_assert(errno == EMFILE); in test_many_magics()
111 igt_assert(drmSetMaster(slave) < 0); in test_many_magics()
116 igt_assert(ns >= allocated); in test_many_magics()
122 igt_assert(magics); in test_many_magics()
125 igt_assert(fds); in test_many_magics()
131 igt_assert(drmGetMagic(slave, &magic) == 0); in test_many_magics()
132 igt_assert(magic > 0); in test_many_magics()
139 igt_assert(i > 128); in test_many_magics()
147 igt_assert(magics[j] != magics[j - 1]); in test_many_magics()
151 igt_assert(drmAuthMagic(master, magics[j]) == 0); in test_many_magics()
[all …]
Dvgem_basic.c169 igt_assert(ptr != MAP_FAILED); in test_dmabuf_mmap()
205 igt_assert(!prime_busy(dmabuf, false)); in test_dmabuf_fence()
206 igt_assert(prime_busy(dmabuf, true)); in test_dmabuf_fence()
209 igt_assert(!prime_busy(dmabuf, false)); in test_dmabuf_fence()
210 igt_assert(!prime_busy(dmabuf, true)); in test_dmabuf_fence()
213 igt_assert(prime_busy(dmabuf, false)); in test_dmabuf_fence()
214 igt_assert(prime_busy(dmabuf, true)); in test_dmabuf_fence()
217 igt_assert(!prime_busy(dmabuf, false)); in test_dmabuf_fence()
218 igt_assert(!prime_busy(dmabuf, true)); in test_dmabuf_fence()
238 igt_assert(!prime_busy(dmabuf, false)); in test_dmabuf_fence_before()
[all …]
Dprime_nv_pcopy.c103 igt_assert(nouveau_bo_new(ndev, dom, 4096, size, &cfg, bo) == 0); in nv_bo_alloc()
104 igt_assert(nouveau_bo_map(*bo, NOUVEAU_BO_RDWR, nclient) == 0); in nv_bo_alloc()
116 igt_assert(nouveau_bo_prime_handle_ref(ndev, handle, bo) == 0); in nv_bo_alloc()
201 igt_assert(intel_fd); in find_and_open_devices()
204 igt_assert(nouveau_fd); in find_and_open_devices()
219 igt_assert(nouveau_device_wrap(nouveau_fd, 0, &ndev) == 0); in init_nouveau()
221 igt_assert(nouveau_client_new(ndev, &nclient) == 0); in init_nouveau()
229 igt_assert(nouveau_bo_new(ndev, NOUVEAU_BO_GART | NOUVEAU_BO_MAP, in init_nouveau()
231 igt_assert(nouveau_bo_map(query_bo, NOUVEAU_BO_RDWR, nclient) == 0); in init_nouveau()
245 igt_assert(nouveau_object_new(&ndev->object, 0, NOUVEAU_FIFO_CHANNEL_CLASS, in init_nouveau()
[all …]
Dkms_chamelium.c81 igt_assert(kmstest_get_property(data->drm_fd, in get_connectors_link_status_failed()
117 igt_assert(connector); in reprobe_connector()
208 igt_assert(kmstest_get_property(data->drm_fd, connector->connector_id, in check_analog_bridge()
211 igt_assert(edid_blob = drmModeGetPropertyBlob(data->drm_fd, in check_analog_bridge()
310 igt_assert(kmstest_get_property(data->drm_fd, connector->connector_id, in test_edid_read()
313 igt_assert(edid_blob_id != 0); in test_edid_read()
314 igt_assert(edid_blob = drmModeGetPropertyBlob(data->drm_fd, in test_edid_read()
319 igt_assert(memcmp(raw_edid, edid_blob->data, raw_edid_size) == 0); in test_edid_read()
372 igt_assert(wait_for_hotplug(mon, &timeout)); in try_suspend_resume_hpd()
391 igt_assert(wait_for_hotplug(mon, &timeout)); in try_suspend_resume_hpd()
[all …]
Dkms_lease.c493 igt_assert(resources); in atomic_implicit_crtc()
507 igt_assert(props); in atomic_implicit_crtc()
521 igt_assert(crtc_id_prop); in atomic_implicit_crtc()
528 igt_assert(req); in atomic_implicit_crtc()
531 igt_assert(ret >= 0); in atomic_implicit_crtc()
535 igt_assert(ret == 0 || ret == -EINVAL); in atomic_implicit_crtc()
538 igt_assert(ret == -EACCES); in atomic_implicit_crtc()
543 igt_assert(req); in atomic_implicit_crtc()
546 igt_assert(ret >= 0); in atomic_implicit_crtc()
550 igt_assert(ret == 0 || ret == -EINVAL); in atomic_implicit_crtc()
[all …]
/external/igt-gpu-tools/runner/
Drunner_tests.c95 igt_assert(parse_options(ARRAY_SIZE(argv), (char**)argv, settings)); in job_list_filter_test()
239 igt_assert(parse_options(ARRAY_SIZE(argv), (char**)argv, settings));
242 igt_assert(!settings->test_list);
244 igt_assert(!settings->dry_run);
247 igt_assert(!settings->sync);
249 igt_assert(!settings->overwrite);
250 igt_assert(!settings->multiple_mode);
253 igt_assert(!settings->use_watchdog);
254 igt_assert(strstr(settings->test_root, "test-root-dir") != NULL);
255 igt_assert(strstr(settings->results_path, "path-to-results") != NULL);
[all …]
Drunner_json_tests.c43 igt_assert(json_object_object_get_ex(two, iter.key, &subobj)); in compare_objects()
85 igt_assert(!"Cannot be reached"); in compatible_types()
92 igt_assert(compatible_types(one, two)); in compare()
106 igt_assert(json_object_get_double(one) == json_object_get_double(two)); in compare()
109 igt_assert(!strcmp(json_object_get_string(one), json_object_get_string(two))); in compare()
122 igt_assert(!"Cannot be reached"); in compare()
134 igt_assert((resultsobj = generate_results_json(testdirfd)) != NULL); in run_results_and_compare()
142 igt_assert(referenceobj != NULL); in run_results_and_compare()
/external/igt-gpu-tools/tests/i915/
Di915_pm_rpm.c166 igt_assert(rc == sizeof(ret)); in get_residency()
192 igt_assert(n_read >= 0); in get_pc8_status()
242 igt_assert(wait_for_suspended()); \
255 igt_assert(wait_for_suspended()); \
328 igt_assert(set_mode_for_params(params)); \
329 igt_assert(wait_for_active()); \
348 igt_assert(0); in enable_one_screen_with_type()
365 igt_assert(wait_for_active()); \
381 igt_assert(prop->flags & DRM_MODE_PROP_BLOB); in get_connector_edid()
382 igt_assert(prop->count_blobs == 0); in get_connector_edid()
[all …]
Dgem_readwrite.c95 igt_assert(ret == 0);
97 igt_assert(memcmp(expected, buf, sizeof(expected)) == 0);
103 igt_assert(ret == -1 && errno == EINVAL);
112 igt_assert(ret == 0);
114 igt_assert(ret == 0);
115 igt_assert(memcmp(buf, expected, sizeof(buf)) == 0);
121 igt_assert(ret == 0);
123 igt_assert(ret == 0);
124 igt_assert(memcmp(buf, expected, sizeof(buf)) == 0);
128 igt_assert(ret == 0);
[all …]
Dgem_fence_thrash.c130 igt_assert(t->tiling >= 0 && t->tiling <= I915_TILING_Y); in _bo_write_verify()
134 igt_assert(s); in _bo_write_verify()
216 igt_assert(threads != NULL); in run_test()
227 igt_assert(func(&t) == (void *)0); in run_test()
240 igt_assert(run_test(0, bo_write_verify, I915_TILING_NONE, 80) == 0);
243 igt_assert(run_test(0, bo_write_verify, I915_TILING_X, 80) == 0);
246 igt_assert(run_test(0, bo_write_verify, I915_TILING_Y, 80) == 0);
249 igt_assert(run_test(5, bo_write_verify, I915_TILING_NONE, 2) == 0);
252 igt_assert(run_test(2, bo_write_verify, I915_TILING_X, 2) == 0);
253 igt_assert(run_test(5, bo_write_verify, I915_TILING_X, 2) == 0);
[all …]
Dgem_stolen.c78 igt_assert(!ret); in verify_copy_op()
87 igt_assert(!ret); in verify_copy_op()
117 igt_assert(!ret); in stolen_pwrite()
146 igt_assert(!ret); in stolen_pread()
177 igt_assert(src != NULL); in copy_test()
178 igt_assert(dest != NULL); in copy_test()
200 igt_assert(bo != NULL); in verify_object_clear()
203 igt_assert(!ret); in verify_object_clear()
208 igt_assert(!virt[i]); in verify_object_clear()
221 igt_assert(!handle); in stolen_large_obj_alloc()
[all …]
Di915_pm_lpsp.c52 igt_assert(lpsp_is_enabled(drm_fd)); in screens_disabled_subtest()
112 igt_assert(c->count_modes && in edp_subtest()
114 igt_assert(c->count_modes && in edp_subtest()
126 igt_assert(buffer_id); in edp_subtest()
127 igt_assert(connector); in edp_subtest()
128 igt_assert(mode); in edp_subtest()
136 igt_assert(!lpsp_is_enabled(drm_fd)); in edp_subtest()
138 igt_assert(lpsp_is_enabled(drm_fd)); in edp_subtest()
140 igt_assert(lpsp_is_enabled(drm_fd)); in edp_subtest()
174 igt_assert(buffer_id); in non_edp_subtest()
[all …]
Dgem_threaded_access_tiled.c84 igt_assert(status == 0); in copy_tile_threaded()
101 igt_assert(fd >= 0);
104 igt_assert(bufmgr);
108 igt_assert(bo);
111 igt_assert(!r);
114 igt_assert(!r);
117 igt_assert(!r);
Dgem_set_tiling_vs_blt.c135 igt_assert(test_bo_handle == test_bo->handle); in do_test()
176 igt_assert(test_bo_handle == test_bo->handle); in do_test()
203 igt_assert(data[i] == i); in do_test()
213 igt_assert(tiling_changed); in do_test()
247 igt_assert(tiling == I915_TILING_NONE);
248 igt_assert(tiling_after == I915_TILING_X);
255 igt_assert(tiling == I915_TILING_X);
256 igt_assert(tiling_after == I915_TILING_NONE);
263 igt_assert(tiling == I915_TILING_X);
264 igt_assert(tiling_after == I915_TILING_X);
Dgem_userptr_blits.c303 igt_assert(handle != 0); in create_userptr()
337 igt_assert(handle_ptr_map); in add_handle_ptr()
343 igt_assert(handle_size_map); in add_handle_ptr()
356 igt_assert(handle < num_handle_map); in get_handle_ptr()
362 igt_assert(handle < num_handle_map); in free_handle_ptr()
363 igt_assert(handle_ptr_map[handle]); in free_handle_ptr()
378 igt_assert(ptr != MAP_FAILED); in create_userptr_bo()
388 igt_assert(old_handle < num_handle_map); in flink_userptr_bo()
389 igt_assert(handle_ptr_map[old_handle]); in flink_userptr_bo()
400 igt_assert(ptr != NULL); in clear()
[all …]
Di915_query.c404 igt_assert(slice_available(topo_info, s)); in test_query_topology_matches_eu_total()
405 igt_assert(subslice_available(topo_info, s, ss)); in test_query_topology_matches_eu_total()
408 igt_assert(slice_available(topo_info, s)); in test_query_topology_matches_eu_total()
415 igt_assert(n_eus_topology == n_eus); in test_query_topology_matches_eu_total()
459 igt_assert(n_subslices == 1 || n_subslices == 2 || n_subslices == 3); in test_query_topology_known_pci_ids()
480 igt_assert(false); in test_query_topology_known_pci_ids()
519 igt_assert(item.length >= 0); in engines_invalid()
523 igt_assert(engines); in engines_invalid()
572 igt_assert(len <= 4096); in engines_invalid()
575 igt_assert(engines != MAP_FAILED); in engines_invalid()
[all …]
Dgem_storedw_batches_loop.c65 igt_assert(cmd_bo); in store_dword_loop()
86 igt_assert(drm_intel_bo_references(cmd_bo, target_bo) == 0); in store_dword_loop()
88 igt_assert(drm_intel_bo_emit_reloc(cmd_bo, cmd_address_offset, target_bo, 0, in store_dword_loop()
96 igt_assert(drm_intel_bo_references(cmd_bo, target_bo) == 1); in store_dword_loop()
99 igt_assert(drm_intel_bo_mrb_exec(cmd_bo, j * 4, NULL, 0, 0, in store_dword_loop()
147 igt_assert(bufmgr);
152 igt_assert(target_bo);
Dgem_write_read_ring_switch.c70 igt_assert(target_bo); in run_test()
76 igt_assert(*ptr == 0); in run_test()
134 igt_assert(*ptr == COLOR); in run_test()
162 igt_assert(bufmgr);
167 igt_assert(batch);
170 igt_assert(dummy_bo);
173 igt_assert(load_bo);
/external/igt-gpu-tools/lib/
Digt.cocci9 // Replace open-coded augmented igt_assert/skip/require with macro versions
93 + igt_assert(E);
137 - igt_assert(a >= 0);
145 // Use comparison macros instead of raw igt_assert when possible
152 - igt_assert(E1 == E2);
155 - igt_assert(E1 != E2);
158 - igt_assert(E1 <= E2);
161 - igt_assert(E1 < E2);
164 - igt_assert(E1 >= E2);
167 - igt_assert(E1 > E2);
[all …]
Digt_aux.c104 #define SIG_ASSERT(expr) igt_assert(expr)
133 igt_assert(timer_settime(__igt_sigiter.timer, 0, &its, NULL) == 0); in sig_ioctl()
184 igt_assert(timer_create(CLOCK_MONOTONIC, &sev, &__igt_sigiter.timer) == 0); in igt_sigiter_start()
187 igt_assert(timer_settime(__igt_sigiter.timer, 0, &its, NULL) == 0); in igt_sigiter_start()
192 igt_assert(sigaction(SIGRTMIN, &act, NULL) == 0); in igt_sigiter_start()
198 igt_assert(clock_gettime(CLOCK_MONOTONIC, &start) == 0); in igt_sigiter_start()
199 igt_assert(timer_settime(__igt_sigiter.timer, 0, &its, NULL) == 0); in igt_sigiter_start()
200 igt_assert(clock_gettime(CLOCK_MONOTONIC, &end) == 0); in igt_sigiter_start()
212 igt_assert(__igt_sigiter.offset.tv_sec == 0); in igt_sigiter_start()
506 igt_assert(!"GPU hung"); in sig_abort()
[all …]

1234567891011