/external/igt-gpu-tools/tests/ |
D | prime_mmap.c | 50 #define BO_SIZE (16*1024) macro 82 handle = gem_create(fd, BO_SIZE); in test_correct() 83 fill_bo(handle, BO_SIZE); in test_correct() 89 ptr1 = gem_mmap__gtt(fd, handle, BO_SIZE, PROT_READ); in test_correct() 90 ptr2 = mmap(NULL, BO_SIZE, PROT_READ, MAP_SHARED, dma_buf_fd, 0); in test_correct() 93 igt_assert(memcmp(ptr1, ptr2, BO_SIZE) == 0); in test_correct() 98 munmap(ptr1, BO_SIZE); in test_correct() 99 munmap(ptr2, BO_SIZE); in test_correct() 111 handle = gem_create(fd, BO_SIZE); in test_map_unmap() 112 fill_bo(handle, BO_SIZE); in test_map_unmap() [all …]
|
D | prime_self_import.c | 51 #define BO_SIZE (16*1024) macro 63 ptr1 = gem_mmap__cpu(fd1, handle1, 0, BO_SIZE, PROT_READ | PROT_WRITE); in check_bo() 64 ptr2 = gem_mmap__cpu(fd2, handle2, 0, BO_SIZE, PROT_READ | PROT_WRITE); in check_bo() 70 for (i = 0; i < BO_SIZE; i++) { in check_bo() 77 memset(ptr1, counter, BO_SIZE); in check_bo() 78 igt_assert(memcmp(ptr1, ptr2, BO_SIZE) == 0); in check_bo() 80 munmap(ptr1, BO_SIZE); in check_bo() 81 munmap(ptr2, BO_SIZE); in check_bo() 95 handle = gem_create(fd1, BO_SIZE); in test_with_fd_dup() 123 handle1 = gem_create(fd1, BO_SIZE); in test_with_two_bos() [all …]
|
D | prime_nv_api.c | 21 #define BO_SIZE (256*1024) macro 76 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test_i915_nv_import_twice() 96 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test_i915_nv_import_twice_check_flink_name() 121 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test_i915_nv_reimport_twice_check_flink_name() 152 0, BO_SIZE, NULL, &nvbo) == 0); in test_nv_i915_import_twice_check_flink_name() 156 intel_bo = drm_intel_bo_gem_create_from_prime(bufmgr, prime_fd, BO_SIZE); in test_nv_i915_import_twice_check_flink_name() 159 intel_bo2 = drm_intel_bo_gem_create_from_prime(bufmgr2, prime_fd, BO_SIZE); in test_nv_i915_import_twice_check_flink_name() 181 0, BO_SIZE, NULL, &nvbo) == 0); in test_nv_i915_reimport_twice_check_flink_name() 185 intel_bo = drm_intel_bo_gem_create_from_prime(bufmgr, prime_fd, BO_SIZE); in test_nv_i915_reimport_twice_check_flink_name() 190 intel_bo2 = drm_intel_bo_gem_create_from_prime(bufmgr2, prime_fd, BO_SIZE); in test_nv_i915_reimport_twice_check_flink_name() [all …]
|
D | prime_nv_test.c | 36 #define BO_SIZE (256*1024) macro 90 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test_i915_nv_sharing() 117 0, BO_SIZE, NULL, &nvbo) == 0); in test_nv_i915_sharing() 120 test_intel_bo = drm_intel_bo_gem_create_from_prime(bufmgr, prime_fd, BO_SIZE); in test_nv_i915_sharing() 139 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test_nv_write_i915_cpu_mmap_read() 170 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test_nv_write_i915_gtt_mmap_read() 203 0, BO_SIZE, NULL, &nvbo) == 0); in test_i915_import_cpu_mmap() 205 test_intel_bo = drm_intel_bo_gem_create_from_prime(bufmgr, prime_fd, BO_SIZE); in test_i915_import_cpu_mmap() 234 0, BO_SIZE, NULL, &nvbo) == 0); in test_i915_import_gtt_mmap() 237 test_intel_bo = drm_intel_bo_gem_create_from_prime(bufmgr, prime_fd, BO_SIZE); in test_i915_import_gtt_mmap() [all …]
|
D | prime_udl.c | 37 #define BO_SIZE (640*480*2) macro 102 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test1() 122 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test2()
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_tiled_partial_pwrite_pread.c | 62 #define BO_SIZE (32*4096) macro 90 OUT_BATCH(BO_SIZE/scratch_pitch << 16 | 1024); in copy_bo() 109 for (i = 0; i < BO_SIZE; i++) in blt_bo_fill() 121 uint8_t tmp[BO_SIZE]; 122 uint8_t compare_tmp[BO_SIZE]; 134 start = random() % BO_SIZE; in test_partial_reads() 135 len = random() % (BO_SIZE-start) + 1; in test_partial_reads() 158 start = random() % BO_SIZE; in test_partial_writes() 159 len = random() % (BO_SIZE-start) + 1; in test_partial_writes() 161 memset(tmp, i + 63, BO_SIZE); in test_partial_writes() [all …]
|
D | gem_caching.c | 56 #define BO_SIZE (4*4096) macro 68 OUT_BATCH((BO_SIZE/4096) << 16 | 1024); in copy_bo() 87 for (i = 0; i < BO_SIZE; i++) in blt_bo_fill() 132 scratch_bo = drm_intel_bo_alloc(bufmgr, "scratch bo", BO_SIZE, 4096); 135 staging_bo = drm_intel_bo_alloc(bufmgr, "staging bo", BO_SIZE, 4096); 149 start = random() % BO_SIZE; 150 len = random() % (BO_SIZE-start) + 1; 176 start = random() % BO_SIZE; 177 len = random() % (BO_SIZE-start) + 1; 199 for (; j < BO_SIZE; j++) { [all …]
|
D | gem_partial_pwrite_pread.c | 57 #define BO_SIZE (4*4096) macro 69 OUT_BATCH((BO_SIZE/4096) << 16 | 1024); in copy_bo() 88 for (i = 0; i < BO_SIZE; i++) in blt_bo_fill() 100 uint8_t tmp[BO_SIZE]; 104 *start = random() % (BO_SIZE - 1); in get_range() 105 *len = random() % (BO_SIZE - *start - 1) + 1; in get_range() 143 memset(tmp, i + 63, BO_SIZE); in test_partial_writes() 162 for (; j < BO_SIZE; j++) { in test_partial_writes() 200 memset(tmp, i + 63, BO_SIZE); in test_partial_read_writes() 219 for (; j < BO_SIZE; j++) { in test_partial_read_writes() [all …]
|
D | gem_request_retire.c | 57 #define BO_SIZE (WIDTH * HEIGHT * sizeof(uint32_t)) macro 197 src = gem_create(fd, BO_SIZE); in test_retire_vma_not_inactive() 198 dst = gem_create(fd, BO_SIZE); in test_retire_vma_not_inactive()
|
/external/igt-gpu-tools/benchmarks/ |
D | gem_userptr_benchmark.c | 63 #define BO_SIZE (65536) macro 259 loops = BO_SIZE / sizeof(unsigned long) / 4; in test_ptr_read() 274 printf("%8lu MB/s\n", iter / test_duration_sec * BO_SIZE / 1000000); in test_ptr_read() 283 loops = BO_SIZE / sizeof(unsigned long) / 4; in test_ptr_write() 298 printf("%8lu MB/s\n", iter / test_duration_sec * BO_SIZE / 1000000); in test_ptr_write() 334 char buffer[BO_SIZE]; in test_impact_overlap() 339 igt_assert(PAGE_SIZE < BO_SIZE); in test_impact_overlap() 341 PAGE_SIZE * nr_bos[subtest] + BO_SIZE); in test_impact_overlap() 346 gem_userptr(fd, (uint32_t *)p, BO_SIZE, 0, userptr_flags, &handles[i]); in test_impact_overlap() 370 char buffer[BO_SIZE]; in test_impact() [all …]
|