Lines Matching refs:execbuf
65 struct drm_i915_gem_execbuffer2 execbuf; in test_streaming() local
102 memset(&execbuf, 0, sizeof(execbuf)); in test_streaming()
103 execbuf.buffers_ptr = to_user_pointer(exec); in test_streaming()
104 execbuf.buffer_count = 2; in test_streaming()
105 execbuf.flags = LOCAL_I915_EXEC_HANDLE_LUT; in test_streaming()
106 if (__gem_execbuf(fd, &execbuf)) { in test_streaming()
107 execbuf.flags = 0; in test_streaming()
108 igt_require(__gem_execbuf(fd, &execbuf) == 0); in test_streaming()
118 reloc[2*i+0].target_handle = execbuf.flags & LOCAL_I915_EXEC_HANDLE_LUT ? DST : dst; in test_streaming()
127 reloc[2*i+1].target_handle = execbuf.flags & LOCAL_I915_EXEC_HANDLE_LUT ? SRC : src; in test_streaming()
132 gem_execbuf(fd, &execbuf); in test_streaming()
138 execbuf.buffer_count = 3; in test_streaming()
139 execbuf.flags |= I915_EXEC_NO_RELOC; in test_streaming()
141 execbuf.flags |= I915_EXEC_BLT; in test_streaming()
210 execbuf.batch_start_offset = 64*n; in test_streaming()
212 gem_execbuf(fd, &execbuf); in test_streaming()
237 struct drm_i915_gem_execbuffer2 execbuf; in test_batch() local
259 reloc[0].target_handle = execbuf.flags & LOCAL_I915_EXEC_HANDLE_LUT ? DST : dst; in test_batch()
268 reloc[1].target_handle = execbuf.flags & LOCAL_I915_EXEC_HANDLE_LUT ? SRC : src; in test_batch()
296 memset(&execbuf, 0, sizeof(execbuf)); in test_batch()
297 execbuf.buffers_ptr = to_user_pointer(exec); in test_batch()
298 execbuf.buffer_count = 3; in test_batch()
299 execbuf.flags = LOCAL_I915_EXEC_HANDLE_LUT; in test_batch()
301 execbuf.flags |= I915_EXEC_BLT; in test_batch()
302 if (__gem_execbuf(fd, &execbuf)) { in test_batch()
303 execbuf.flags &= ~LOCAL_I915_EXEC_HANDLE_LUT; in test_batch()
304 gem_execbuf(fd, &execbuf); in test_batch()
306 execbuf.flags |= I915_EXEC_NO_RELOC; in test_batch()
326 execbuf.batch_start_offset = 128 * offset; in test_batch()
328 execbuf.batch_start_offset += 8 * (pass & 7); in test_batch()
329 igt_assert(execbuf.batch_start_offset <= batch_size - 64); in test_batch()
331 execbuf.batch_start_offset = batch_size - execbuf.batch_start_offset - 64; in test_batch()
332 igt_assert(execbuf.batch_start_offset <= batch_size - 64); in test_batch()
333 k = execbuf.batch_start_offset / 4; in test_batch()
353 gem_execbuf(fd, &execbuf); in test_batch()