summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
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;