Home
last modified time | relevance | path

Searched refs:ptr_cpu (Results 1 – 4 of 4) sorted by relevance

/external/igt-gpu-tools/tests/
Dprime_mmap_coherency.c53 uint32_t *ptr_cpu; in test_read_flush() local
78 ptr_cpu = mmap(NULL, width * height, PROT_READ, in test_read_flush()
80 igt_assert(ptr_cpu != MAP_FAILED); in test_read_flush()
84 igt_assert_eq(ptr_cpu[i], 0); in test_read_flush()
97 if (ptr_cpu[i] != 0xc5c5c5c5) in test_read_flush()
102 munmap(ptr_cpu, width * height); in test_read_flush()
120 uint32_t *ptr_cpu; in test_write_flush() local
138 ptr_cpu = mmap(NULL, width * height, PROT_READ | PROT_WRITE, in test_write_flush()
140 igt_assert(ptr_cpu != MAP_FAILED); in test_write_flush()
145 memset(ptr_cpu, 0x11, width * height); in test_write_flush()
[all …]
/external/igt-gpu-tools/tests/i915/
Dgem_mmap.c49 char *ptr_cpu; in test_huge_bo() local
83 ptr_cpu = __gem_mmap__cpu(fd, bo, 0, huge_object_size, in test_huge_bo()
85 igt_require(ptr_cpu); in test_huge_bo()
96 memcpy(ptr_cpu, cpu_pattern, PAGE_SIZE); in test_huge_bo()
97 igt_assert(memcmp(ptr_cpu, cpu_pattern, PAGE_SIZE) == 0); in test_huge_bo()
98 memset(ptr_cpu, 0xcc, PAGE_SIZE); in test_huge_bo()
103 memcpy(ptr_cpu + last_offset, cpu_pattern, PAGE_SIZE); in test_huge_bo()
104 igt_assert(memcmp(ptr_cpu + last_offset, cpu_pattern, PAGE_SIZE) == 0); in test_huge_bo()
105 memset(ptr_cpu + last_offset, 0xcc, PAGE_SIZE); in test_huge_bo()
108 igt_assert(memcmp(ptr_cpu, ptr_cpu + last_offset, PAGE_SIZE) == 0); in test_huge_bo()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_test_dma.c71 uint64_t *ptr_cpu = (uint64_t*) in set_random_pixels() local
79 *ptr++ = *ptr_cpu++ = in set_random_pixels()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_test_dma.c68 uint64_t *ptr_cpu = (uint64_t *)(cpu->ptr + cpu->layer_stride * z + cpu->stride * y); in set_random_pixels() local
75 *ptr++ = *ptr_cpu++ = rand_xorshift128plus(seed_xorshift128plus); in set_random_pixels()