Lines 548-554
fill_object(struct drm_i915_gem_exec_object2 *obj, uint32_t gem_handle,
Link Here
|
548 |
memset(obj, 0, sizeof(*obj)); |
548 |
memset(obj, 0, sizeof(*obj)); |
549 |
obj->handle = gem_handle; |
549 |
obj->handle = gem_handle; |
550 |
obj->relocation_count = count; |
550 |
obj->relocation_count = count; |
551 |
obj->relocs_ptr = (uint64_t)relocs; |
551 |
obj->relocs_ptr = (uintptr_t)relocs; |
552 |
} |
552 |
} |
553 |
|
553 |
|
554 |
static void exec_blit(int fd, |
554 |
static void exec_blit(int fd, |
Lines 557-563
static void exec_blit(int fd,
Link Here
|
557 |
{ |
557 |
{ |
558 |
struct drm_i915_gem_execbuffer2 exec; |
558 |
struct drm_i915_gem_execbuffer2 exec; |
559 |
|
559 |
|
560 |
exec.buffers_ptr = (uint64_t)objs; |
560 |
exec.buffers_ptr = (uintptr_t)objs; |
561 |
exec.buffer_count = count; |
561 |
exec.buffer_count = count; |
562 |
exec.batch_start_offset = 0; |
562 |
exec.batch_start_offset = 0; |
563 |
exec.batch_len = batch_len * 4; |
563 |
exec.batch_len = batch_len * 4; |
564 |
- |
|
|