projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
017cdb1
)
anv/gem: Use EXECBUFFER2_WR when the FENCE_OUT flag is set
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 28 Feb 2017 02:02:02 +0000
(18:02 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 16 Aug 2017 02:08:26 +0000
(19:08 -0700)
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_gem.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_gem.c
b/src/intel/vulkan/anv_gem.c
index ac47da411711b695ef5c7fb66ba679a6e4eb0194..36692f567ca796545864813dd246add1e19c7e8b 100644
(file)
--- 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