diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2021-03-11 00:10:31 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2021-03-11 00:10:31 +0000 |
commit | bc84761cbdd5e6ad50f1acf9e8e833a259434bbf (patch) | |
tree | 1ec2b7cfc2b6bab9e1bbe4425e0051d23ecc55d5 /graphics/mesa-devel/files/patch-userptr | |
parent | emulators/rpcs3: update to 0.0.15.11916 (diff) |
graphics/mesa-devel: update to 21.0.b.2806
Changes: https://gitlab.freedesktop.org/mesa/mesa/-/compare/25020c125a9...c22267262ee
Notes
Notes:
svn path=/head/; revision=568056
Diffstat (limited to 'graphics/mesa-devel/files/patch-userptr')
-rw-r--r-- | graphics/mesa-devel/files/patch-userptr | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/mesa-devel/files/patch-userptr b/graphics/mesa-devel/files/patch-userptr index b2f38bf0a96b..70885a10d47c 100644 --- a/graphics/mesa-devel/files/patch-userptr +++ b/graphics/mesa-devel/files/patch-userptr @@ -1,17 +1,17 @@ Try unsynchronized userptr if regular one fails. https://github.com/FreeBSDDesktop/kms-drm/issues/197 ---- src/gallium/drivers/iris/iris_bufmgr.c.orig 2020-11-25 20:08:15 UTC +--- src/gallium/drivers/iris/iris_bufmgr.c.orig 2021-03-10 22:23:51 UTC +++ src/gallium/drivers/iris/iris_bufmgr.c @@ -624,8 +624,20 @@ iris_bo_create_userptr(struct iris_bufmgr *bufmgr, con .user_ptr = (uintptr_t)ptr, .user_size = size, }; -- if (gen_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_USERPTR, &arg)) +- if (intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_USERPTR, &arg)) + + int ret; +retry: -+ ret = gen_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_USERPTR, &arg); ++ ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_USERPTR, &arg); + if (ret) { + if (errno == ENODEV && arg.flags == 0) { + arg.flags = I915_USERPTR_UNSYNCHRONIZED; @@ -25,17 +25,17 @@ https://github.com/FreeBSDDesktop/kms-drm/issues/197 bo->gem_handle = arg.handle; /* Check the buffer for validity before we try and use it in a batch */ ---- src/intel/vulkan/anv_gem.c.orig 2020-11-25 20:08:15 UTC ---- src/intel/vulkan/anv_gem.c +--- src/intel/vulkan/anv_gem.c.orig 2021-03-10 22:23:51 UTC ++++ src/intel/vulkan/anv_gem.c @@ -146,9 +146,19 @@ anv_gem_userptr(struct anv_device *device, void *mem, .flags = 0, }; -- int ret = gen_ioctl(device->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); +- int ret = intel_ioctl(device->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); - if (ret == -1) + int ret; +retry: -+ ret = gen_ioctl(device->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); ++ ret = intel_ioctl(device->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); + if (ret == -1) { + if (errno == ENODEV && userptr.flags == 0) { + userptr.flags = I915_USERPTR_UNSYNCHRONIZED; |