anv: Fix wait_count missing increment

If we don't wait on anything, I bet it makes the QueuePresent faster,
but also completely wrong...

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 02f94c3306 ("anv: don't wait for completion of work on vkQueuePresent()")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4276
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9211>
(cherry picked from commit b0b1bf9957)
This commit is contained in:
Lionel Landwerlin 2021-02-22 18:41:24 +02:00 committed by Dylan Baker
parent 73e1f3a3dd
commit 09f3a1f724
2 changed files with 2 additions and 1 deletions

View file

@ -13,7 +13,7 @@
"description": "anv: Fix wait_count missing increment",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "02f94c33066eff9e5de2077230affab1a1f3d063"
},

View file

@ -328,6 +328,7 @@ VkResult anv_QueuePresentKHR(
assert(impl->type == ANV_SEMAPHORE_TYPE_DRM_SYNCOBJ);
syncobjs[wait_count] = impl->syncobj;
values[wait_count] = 0;
wait_count++;
}
int ret = 0;