FreeBSD Bugzilla – Attachment 186610 Details for
Bug 221540
graphics/mesa-dri: enable Vulkan drivers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[don't land] anv hacks for Mesa 17.2
mesa-anv-hacks-17.2.diff (text/plain), 2.32 KB, created by
Jan Beich
on 2017-09-22 05:13:30 UTC
(
hide
)
Description:
[don't land] anv hacks for Mesa 17.2
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2017-09-22 05:13:30 UTC
Size:
2.32 KB
patch
obsolete
>From fd69a44032337f80e97adc01d6a7a355f62a46a2 Mon Sep 17 00:00:00 2001 >From: Jan Beich <jbeich@FreeBSD.org> >Date: Fri, 22 Sep 2017 05:01:10 +0000 >Subject: [PATCH] graphics/mesa-dri: anv hacks for drm-next > >--- > files/patch-src_intel_vulkan_anv__gem.c | 24 ++++++++++++++++++++++++ > files/patch-src_intel_vulkan_anv__queue.c | 12 +++++++++++- > 2 files changed, 35 insertions(+), 1 deletion(-) > create mode 100644 files/patch-src_intel_vulkan_anv__gem.c > >diff --git graphics/mesa-dri/files/patch-src_intel_vulkan_anv__gem.c graphics/mesa-dri/files/patch-src_intel_vulkan_anv__gem.c >new file mode 100644 >index 0000000..1e1dfb3 >--- /dev/null >+++ graphics/mesa-dri/files/patch-src_intel_vulkan_anv__gem.c >@@ -0,0 +1,24 @@ >+Try harder to allocate userptr >+https://github.com/FreeBSDDesktop/freebsd-base-graphics/issues/132 >+ >+--- src/intel/vulkan/anv_gem.c.orig 2017-09-17 23:03:22 UTC >++++ src/intel/vulkan/anv_gem.c >+@@ -114,9 +114,16 @@ anv_gem_userptr(struct anv_device *device, void *mem, >+ .flags = 0, >+ }; >+ >+- int ret = anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); >+- if (ret == -1) >++ int ret; >++retry: >++ ret = anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); >++ if (ret == -1) { >++ if (errno == ENODEV && userptr.flags == 0) { >++ userptr.flags = I915_USERPTR_UNSYNCHRONIZED; >++ goto retry; >++ } >+ return 0; >++ } >+ >+ return userptr.handle; >+ } >diff --git graphics/mesa-dri/files/patch-src_intel_vulkan_anv__queue.c graphics/mesa-dri/files/patch-src_intel_vulkan_anv__queue.c >index 2c9faef..a318ee0 100644 >--- graphics/mesa-dri/files/patch-src_intel_vulkan_anv__queue.c >+++ graphics/mesa-dri/files/patch-src_intel_vulkan_anv__queue.c >@@ -1,4 +1,5 @@ >-Drop header that was never used >+- Drop header that was never used >+- Work around early timeouts with I915_USERPTR_UNSYNCHRONIZED > > --- src/intel/vulkan/anv_queue.c.orig 2017-08-12 16:09:52 UTC > +++ src/intel/vulkan/anv_queue.c >@@ -10,3 +11,12 @@ Drop header that was never used > > #include "anv_private.h" > #include "vk_util.h" >+@@ -102,7 +102,7 @@ anv_device_submit_simple_batch(struct anv_device *devi >+ if (result != VK_SUCCESS) >+ goto fail; >+ >+- result = anv_device_wait(device, &bo, INT64_MAX); >++ result = anv_device_wait(device, &bo, INT32_MAX); >+ >+ fail: >+ anv_bo_pool_free(&device->batch_bo_pool, &bo);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221540
:
185445
|
186578
|
186579
|
186610
|
187400
|
187401
|
187404
|
188519
|
188635
|
188666
|
188667
|
189177