mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-25 00:36:16 +00:00
igt/gem_userptr_blits: Fix up last minute API changes
When the patch was merged, the ioctl numbers had to be adjusted to leave no holes. Also there was a final piece of munging of the API to downgrade unsynced userptr for export over dma-buf. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
eb566561e7
commit
9911f3f0cf
@ -63,7 +63,7 @@
|
|||||||
#define PAGE_SIZE 4096
|
#define PAGE_SIZE 4096
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LOCAL_I915_GEM_USERPTR 0x34
|
#define LOCAL_I915_GEM_USERPTR 0x33
|
||||||
#define LOCAL_IOCTL_I915_GEM_USERPTR DRM_IOWR (DRM_COMMAND_BASE + LOCAL_I915_GEM_USERPTR, struct local_i915_gem_userptr)
|
#define LOCAL_IOCTL_I915_GEM_USERPTR DRM_IOWR (DRM_COMMAND_BASE + LOCAL_I915_GEM_USERPTR, struct local_i915_gem_userptr)
|
||||||
struct local_i915_gem_userptr {
|
struct local_i915_gem_userptr {
|
||||||
uint64_t user_ptr;
|
uint64_t user_ptr;
|
||||||
@ -664,8 +664,8 @@ static int test_dmabuf(void)
|
|||||||
handle = create_userptr_bo(fd1, sizeof(linear));
|
handle = create_userptr_bo(fd1, sizeof(linear));
|
||||||
|
|
||||||
ret = export_handle(fd1, handle, &dma_buf_fd);
|
ret = export_handle(fd1, handle, &dma_buf_fd);
|
||||||
if (userptr_flags & LOCAL_I915_USERPTR_UNSYNCHRONIZED) {
|
if (userptr_flags & LOCAL_I915_USERPTR_UNSYNCHRONIZED && ret) {
|
||||||
igt_assert(ret == EINVAL);
|
igt_assert(ret == EINVAL || ret == ENODEV);
|
||||||
free_userptr_bo(fd1, handle);
|
free_userptr_bo(fd1, handle);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user