summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-11-28 13:37:44 -0800
committerKenneth Graunke <[email protected]>2016-11-28 13:40:04 -0800
commit15d3fc167a6eebc6df50c603275288cc496d6689 (patch)
tree5d593f45d155af79b03a105aba88b25e28332efb /src/intel/vulkan
parent65ea559465df527d8a2998380c7eb2554780a2ba (diff)
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 <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 320119fd974..e1406216658 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, &timestamp))
- return false;
+ if (!anv_get_function_timestamp(anv_device_get_cache_uuid, &timestamp))
+ return false;
snprintf(uuid, VK_UUID_SIZE, "anv-%d", timestamp);
return true;