Mesa (master): anv: Fix cache UUID generation.
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Nov 28 21:40:39 UTC 2016
Module: Mesa
Branch: master
Commit: 15d3fc167a6eebc6df50c603275288cc496d6689
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=15d3fc167a6eebc6df50c603275288cc496d6689
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Nov 28 13:37:44 2016 -0800
anv: Fix cache UUID generation.
I asked Emil to switch from 0 (success) vs. -1 (fail) to use a boolean
in my review comments. The "not" went missing. Easy mistake, but the
result is that nothing runs at all :)
Fix whitespace while we're here too.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/intel/vulkan/anv_device.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 320119f..e140621 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -75,8 +75,8 @@ anv_device_get_cache_uuid(void *uuid)
uint32_t timestamp;
memset(uuid, 0, VK_UUID_SIZE);
- if (anv_get_function_timestamp(anv_device_get_cache_uuid, ×tamp))
- return false;
+ if (!anv_get_function_timestamp(anv_device_get_cache_uuid, ×tamp))
+ return false;
snprintf(uuid, VK_UUID_SIZE, "anv-%d", timestamp);
return true;
More information about the mesa-commit
mailing list