[Mesa-dev] [PATCH 2/2] anv: set has_exec_async to false on Android

Tapani Pälli tapani.palli at intel.com
Thu Sep 14 06:57:41 UTC 2017


Other WSI implementations set has_exec_async false for WSI buffers,
so far haven't found a place to do it so we just claim to not have
async exec.

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
 src/intel/vulkan/anv_device.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index b56cac0fa8..9a6d5a112f 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -347,7 +347,11 @@ anv_physical_device_init(struct anv_physical_device *device,
    if (result != VK_SUCCESS)
       goto fail;
 
+#ifndef ANDROID
    device->has_exec_async = anv_gem_get_param(fd, I915_PARAM_HAS_EXEC_ASYNC);
+#else
+   device->has_exec_async = false;
+#endif
    device->has_exec_fence = anv_gem_get_param(fd, I915_PARAM_HAS_EXEC_FENCE);
    device->has_syncobj = anv_gem_get_param(fd, I915_PARAM_HAS_EXEC_FENCE_ARRAY);
    device->has_syncobj_wait = device->has_syncobj &&
-- 
2.13.5



More information about the mesa-dev mailing list