projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d907964
)
anv/device: Use an actual int64_t in WaitForFences
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 10 Nov 2015 23:02:52 +0000
(15:02 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 10 Nov 2015 23:02:52 +0000
(15:02 -0800)
src/vulkan/anv_device.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_device.c
b/src/vulkan/anv_device.c
index 37d58816f5d5a7172ee41277298805083b2e3e16..3c6760b832d91385e0b474a0a0b1dfda9c016764 100644
(file)
--- a/
src/vulkan/anv_device.c
+++ b/
src/vulkan/anv_device.c
@@
-1297,11
+1297,13
@@
VkResult anv_WaitForFences(
if (timeout > INT64_MAX)
timeout = INT64_MAX;
+ int64_t t = timeout;
+
/* FIXME: handle !waitAll */
for (uint32_t i = 0; i < fenceCount; i++) {
ANV_FROM_HANDLE(anv_fence, fence, pFences[i]);
- int ret = anv_gem_wait(device, fence->bo.gem_handle, &t
imeout
);
+ int ret = anv_gem_wait(device, fence->bo.gem_handle, &t);
if (ret == -1 && errno == ETIME) {
return VK_TIMEOUT;
} else if (ret == -1) {