Lines Matching +full:intel +full:- +full:test
1 /* basic set of prime tests between intel and nouveau */
3 /* test list -
4 1. share buffer from intel -> nouveau.
5 2. share buffer from nouveau -> intel
6 3. share intel->nouveau, map on both, write intel, read nouveau
7 4. share intel->nouveau, blit intel fill, readback on nouveau
8 test 1 + map buffer, read/write, map other size.
10 some illegal operations -
29 int intel_fd = -1, nouveau_fd = -1;
66 return -1; in find_and_open_devices()
70 return -1; in find_and_open_devices()
77 * prime test 1 -
78 * allocate buffer on intel,
90 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test_i915_nv_sharing()
103 * prime test 2 -
106 * retrive buffer from intel
129 * allocate intel, give to nouveau, map on nouveau
130 * write 0xdeadbeef, non-gtt map on intel, read
139 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test_nv_write_i915_cpu_mmap_read()
147 ptr = nvbo->map; in test_nv_write_i915_cpu_mmap_read()
151 ptr = test_intel_bo->virtual; in test_nv_write_i915_cpu_mmap_read()
160 * allocate intel, give to nouveau, map on nouveau
161 * write 0xdeadbeef, gtt map on intel, read
170 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test_nv_write_i915_gtt_mmap_read()
177 ptr = nvbo->map; in test_nv_write_i915_gtt_mmap_read()
181 ptr = test_intel_bo->virtual; in test_nv_write_i915_gtt_mmap_read()
190 /* test drm_intel_bo_map doesn't work properly,
200 igt_skip("cpu mmap support for imported dma-bufs not yet implemented\n"); in test_i915_import_cpu_mmap()
211 ptr = nvbo->map; in test_i915_import_cpu_mmap()
215 igt_assert(test_intel_bo->virtual); in test_i915_import_cpu_mmap()
216 ptr = test_intel_bo->virtual; in test_i915_import_cpu_mmap()
223 /* test drm_intel_bo_map_gtt works properly,
243 ptr = nvbo->map; in test_i915_import_gtt_mmap()
248 igt_assert(test_intel_bo->virtual); in test_i915_import_gtt_mmap()
249 ptr = test_intel_bo->virtual; in test_i915_import_gtt_mmap()
256 /* test 7 - import from nouveau into intel, test pread/pwrite fail */
275 ptr = nvbo->map; in test_i915_import_pread_pwrite()
278 gem_read(intel_fd, test_intel_bo->handle, 0, buf, 256); in test_i915_import_pread_pwrite()
282 gem_write(intel_fd, test_intel_bo->handle, 0, buf, 4); in test_i915_import_pread_pwrite()
297 vaddr = bo->virtual; in set_bo()
298 while (size--) in set_bo()
320 /* use intel hw to fill the BO with a blit from another BO,
331 test_intel_bo = drm_intel_bo_alloc(bufmgr, "test bo", BO_SIZE, 4096); in test_i915_blt_fill_nv_read()
344 ptr = nvbo->map; in test_i915_blt_fill_nv_read()
350 /* test 8 use nouveau to do blit */
352 /* test 9 nouveau copy engine?? */
359 igt_require(nouveau_fd != -1);
360 igt_require(intel_fd != -1);
362 /* set up intel bufmgr */
372 /* set up an intel batch buffer */