mock_icd: fix vkGetEventStatus output
authorShahbaz Youssefi <syoussefi@google.com>
Fri, 19 Oct 2018 19:55:42 +0000 (15:55 -0400)
committerTobin Ehlis <tobine@google.com>
Fri, 19 Oct 2018 21:03:39 +0000 (15:03 -0600)
VK_SUCCESS is not a valid return value for this function.  VK_EVENT_SET
is used instead.

scripts/mock_icd_generator.py

index dad9068..10cef30 100644 (file)
@@ -1292,7 +1292,10 @@ class MockICDOutputGenerator(OutputGenerator):
 
         # Return result variable, if any.
         if (resulttype != None):
-            self.appendSection('command', '    return VK_SUCCESS;')
+            if api_function_name == 'vkGetEventStatus':
+                self.appendSection('command', '    return VK_EVENT_SET;')
+            else:
+                self.appendSection('command', '    return VK_SUCCESS;')
         self.appendSection('command', '}')
     #
     # override makeProtoName to drop the "vk" prefix