aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShahbaz Youssefi <syoussefi@google.com>2018-10-19 15:55:42 -0400
committerTobin Ehlis <tobine@google.com>2018-10-19 15:03:39 -0600
commit2e8d601de618eddf2bab8597fd140b2824a060b2 (patch)
treea86c92ac6606cdcdd353f424d4fe38e632d04785
parentc83c32a5ad497885a27578d23fa1ec43529ad5ec (diff)
downloadusermoji-2e8d601de618eddf2bab8597fd140b2824a060b2.tar.xz
mock_icd: fix vkGetEventStatus output
VK_SUCCESS is not a valid return value for this function. VK_EVENT_SET is used instead.
-rw-r--r--scripts/mock_icd_generator.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py
index dad9068f..10cef307 100644
--- a/scripts/mock_icd_generator.py
+++ b/scripts/mock_icd_generator.py
@@ -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