anv: Fix error message format string
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 19 Nov 2019 03:53:57 +0000 (19:53 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 4 Dec 2019 23:34:03 +0000 (15:34 -0800)
See also 246261f0addf

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
CID: 1455892
Fixes: 246261f0add ("anv: prepare the driver for delayed submissions")
src/intel/vulkan/anv_batch_chain.c

index 9180f908379543f80a3e758e013852cfb3528abe..f58299b6760274e7db360ee2711453dc46a50a4f 100644 (file)
@@ -1687,11 +1687,8 @@ anv_queue_execbuf_locked(struct anv_queue *queue,
 
    int ret = queue->device->no_hw ? 0 :
       anv_gem_execbuffer(queue->device, &execbuf.execbuf);
-   if (ret) {
-      result = anv_queue_set_lost(queue,
-                                  "execbuf2 failed: %s",
-                                  strerror(ret));
-   }
+   if (ret)
+      result = anv_queue_set_lost(queue, "execbuf2 failed: %m");
 
    struct drm_i915_gem_exec_object2 *objects = execbuf.objects;
    for (uint32_t k = 0; k < execbuf.bo_count; k++) {