Lines Matching defs:obj
135 const struct drm_i915_gem_exec_object2 *obj)
140 (const struct drm_i915_gem_relocation_entry *) (uintptr_t) obj->relocs_ptr;
147 for (size_t i = 0; i < obj->relocation_count; i++) {
214 struct drm_i915_gem_exec_object2 *obj;
241 obj = &exec_objects[i];
242 bo = get_bo(fd, obj->handle);
249 printf("BO #%d is invalid!\n", obj->handle);
253 if (obj->flags & EXEC_OBJECT_PINNED) {
254 if (bo->offset != obj->offset)
256 bo->offset = obj->offset;
258 if (obj->alignment != 0)
259 offset = align_u32(offset, obj->alignment);
265 bo->map = gem_mmap(fd, obj->handle, 0, bo->size);
272 obj = &exec_objects[i];
273 bo = get_bo(fd, obj->handle);
307 obj = &exec_objects[i];
308 bo = get_bo(fd, obj->handle);
312 obj->handle, bo->size, bo->offset);
326 obj = &exec_objects[i];
327 bo = get_bo(fd, obj->handle);
329 if (obj->relocation_count > 0)
330 data = relocate_bo(fd, bo, execbuffer2, obj);
334 bool write = !capture_only || (obj->flags & EXEC_OBJECT_CAPTURE);