anv: Fix cache UUID generation.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 28 Nov 2016 21:37:44 +0000 (13:37 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 28 Nov 2016 21:40:04 +0000 (13:40 -0800)
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@whitecape.org>
src/intel/vulkan/anv_device.c

index 320119fd974dedd368d3b4813be0935b8cdfd7f8..e1406216658917bb8b1740c5af1352e217e6df66 100644 (file)
@@ -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;