Browse Source

anv/gem: Use EXECBUFFER2_WR when the FENCE_OUT flag is set

Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
tags/17.3-branchpoint
Jason Ekstrand 9 years ago
parent
commit
e4054ab77b
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/intel/vulkan/anv_gem.c

+ 4
- 1
src/intel/vulkan/anv_gem.c View File

anv_gem_execbuffer(struct anv_device *device, anv_gem_execbuffer(struct anv_device *device,
struct drm_i915_gem_execbuffer2 *execbuf) 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 int

Loading…
Cancel
Save