libs/vkd3d: Avoid vkCmdCopyQueryPoolResults() for not issued queries.

The Vulkan spec states:

  * "If the query does not become available in a finite amount of time
    (e.g.  due to not issuing a query since the last reset), a
    VK_ERROR_DEVICE_LOST error may occur."

  * "If queries will never finish (e.g. due to being reset but not
    issued), then vkGetQueryPoolResults may not return in finite time."
This commit is contained in:
Józef Kucia
2017-09-14 14:57:09 +02:00
parent 334c532401
commit 2ea8ffb554
4 changed files with 54 additions and 5 deletions

View File

@@ -24,6 +24,8 @@
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
#define DIV_ROUND_UP(a, b) ((a) % (b) == 0 ? (a) / (b) : (a) / (b) + 1)
static inline size_t align(size_t addr, size_t alignment)
{
return (addr + (alignment - 1)) & ~(alignment - 1);