• Home
  • Raw
  • Download

Lines Matching refs:execbuf

78 	struct drm_i915_gem_execbuffer2 execbuf;  in __exec_batch_patched()  local
100 memset(&execbuf, 0, sizeof(execbuf)); in __exec_batch_patched()
101 execbuf.buffers_ptr = to_user_pointer(obj); in __exec_batch_patched()
102 execbuf.buffer_count = 2; in __exec_batch_patched()
103 execbuf.batch_len = size; in __exec_batch_patched()
104 execbuf.flags = I915_EXEC_RENDER; in __exec_batch_patched()
106 gem_execbuf(fd, &execbuf); in __exec_batch_patched()
128 struct drm_i915_gem_execbuffer2 execbuf; in __exec_batch() local
136 memset(&execbuf, 0, sizeof(execbuf)); in __exec_batch()
137 execbuf.buffers_ptr = to_user_pointer(obj); in __exec_batch()
138 execbuf.buffer_count = 1; in __exec_batch()
139 execbuf.batch_len = size; in __exec_batch()
140 execbuf.flags = ring; in __exec_batch()
142 return __gem_execbuf(fd, &execbuf); in __exec_batch()
150 struct drm_i915_gem_execbuffer2 execbuf; in exec_split_batch() local
171 memset(&execbuf, 0, sizeof(execbuf)); in exec_split_batch()
172 execbuf.buffers_ptr = to_user_pointer(obj); in exec_split_batch()
173 execbuf.buffer_count = 1; in exec_split_batch()
179 execbuf.batch_start_offset = actual_start_offset & ~0x7; in exec_split_batch()
180 execbuf.batch_len = in exec_split_batch()
181 ALIGN(size + actual_start_offset - execbuf.batch_start_offset, in exec_split_batch()
183 execbuf.flags = ring; in exec_split_batch()
185 igt_assert_eq(__gem_execbuf(fd, &execbuf), expected_ret); in exec_split_batch()
195 struct drm_i915_gem_execbuffer2 execbuf; in exec_batch_chained() local
241 memset(&execbuf, 0, sizeof(execbuf)); in exec_batch_chained()
242 execbuf.buffers_ptr = to_user_pointer(obj); in exec_batch_chained()
243 execbuf.buffer_count = 3; in exec_batch_chained()
244 execbuf.batch_len = sizeof(first_level_cmds); in exec_batch_chained()
245 execbuf.flags = I915_EXEC_RENDER; in exec_batch_chained()
247 gem_execbuf(fd, &execbuf); in exec_batch_chained()
307 struct drm_i915_gem_execbuffer2 execbuf; in test_allocations() local
323 memset(&execbuf, 0, sizeof(execbuf)); in test_allocations()
324 execbuf.buffer_count = 1; in test_allocations()
329 execbuf.buffers_ptr = to_user_pointer(&obj[i]); in test_allocations()
330 execbuf.batch_start_offset = (rand() % (1ull<<i)) << 12; in test_allocations()
331 execbuf.batch_start_offset += 64 * (rand() % 64); in test_allocations()
332 execbuf.batch_len = (1ull<<(12+i)) - execbuf.batch_start_offset; in test_allocations()
333 gem_execbuf(fd, &execbuf); in test_allocations()