Mesa (master): anv/gem: Use EXECBUFFER2_WR when the FENCE_OUT flag is set
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Wed Aug 16 02:08:39 UTC 2017
Module: Mesa
Branch: master
Commit: e4054ab77b4f5867d0a86830bd9daec685941a23
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e4054ab77b4f5867d0a86830bd9daec685941a23
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Mon Feb 27 18:02:02 2017 -0800
anv/gem: Use EXECBUFFER2_WR when the FENCE_OUT flag is set
Reviewed-by: Chad Versace <chadversary at chromium.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
src/intel/vulkan/anv_gem.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/intel/vulkan/anv_gem.c b/src/intel/vulkan/anv_gem.c
index ac47da4117..36692f567c 100644
--- a/src/intel/vulkan/anv_gem.c
+++ b/src/intel/vulkan/anv_gem.c
@@ -185,7 +185,10 @@ int
anv_gem_execbuffer(struct anv_device *device,
struct drm_i915_gem_execbuffer2 *execbuf)
{
- return anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf);
+ if (execbuf->flags & I915_EXEC_FENCE_OUT)
+ return anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2_WR, execbuf);
+ else
+ return anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf);
}
int
More information about the mesa-commit
mailing list