Skip to content

Commit

Permalink
Merge pull request #1523 from billhollings/rmv-api-warn
Browse files Browse the repository at this point in the history
Remove logged warning if MoltenVK does not support VkApplicationInfo::apiVersion value.
  • Loading branch information
billhollings authored Feb 9, 2022
2 parents 8218606 + 16408fd commit 2fa625f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Common/MVKOSExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void mvkDispatchToMainAndWait(dispatch_block_t block);
* Returns the value of the environment variable at the given name,
* or an empty string if no environment variable with that name exists.
*
* If pWasFound is not null, it's value is set to true if the environment
* If pWasFound is not null, its value is set to true if the environment
* variable exists, or false if not.
*/
std::string mvkGetEnvVar(std::string varName, bool* pWasFound = nullptr);
Expand All @@ -104,7 +104,7 @@ std::string mvkGetEnvVar(std::string varName, bool* pWasFound = nullptr);
* Returns the value of the environment variable at the given name,
* or zero if no environment variable with that name exists.
*
* If pWasFound is not null, it's value is set to true if the environment
* If pWasFound is not null, its value is set to true if the environment
* variable exists, or false if not.
*/
int64_t mvkGetEnvVarInt64(std::string varName, bool* pWasFound = nullptr);
Expand All @@ -113,7 +113,7 @@ int64_t mvkGetEnvVarInt64(std::string varName, bool* pWasFound = nullptr);
* Returns the value of the environment variable at the given name,
* or false if no environment variable with that name exists.
*
* If pWasFound is not null, it's value is set to true if the environment
* If pWasFound is not null, its value is set to true if the environment
* variable exists, or false if not.
*/
bool mvkGetEnvVarBool(std::string varName, bool* pWasFound = nullptr);
Expand Down
9 changes: 9 additions & 0 deletions Docs/Whats_New.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ Copyright (c) 2015-2022 [The Brenwill Workshop Ltd.](http://www.brenwill.com)



MoltenVK 1.1.8
--------------

Released TBD

- Remove logged warning if MoltenVK does not support `VkApplicationInfo::apiVersion` value.



MoltenVK 1.1.7
--------------

Expand Down
2 changes: 1 addition & 1 deletion MoltenVK/MoltenVK/API/vk_mvk_moltenvk.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ typedef unsigned long MTLLanguageVersion;
*/
#define MVK_VERSION_MAJOR 1
#define MVK_VERSION_MINOR 1
#define MVK_VERSION_PATCH 7
#define MVK_VERSION_PATCH 8

#define MVK_MAKE_VERSION(major, minor, patch) (((major) * 10000) + ((minor) * 100) + (patch))
#define MVK_VERSION MVK_MAKE_VERSION(MVK_VERSION_MAJOR, MVK_VERSION_MINOR, MVK_VERSION_PATCH)
Expand Down
2 changes: 1 addition & 1 deletion MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3503,7 +3503,7 @@ static uint32_t mvkGetEntryProperty(io_registry_entry_t entry, CFStringRef prope
if (mvkDevMem) { mvkDevMem->destroy(); }
}

// Look for an available pre-reserved private data slot and return it's address if found.
// Look for an available pre-reserved private data slot and return its address if found.
// Otherwise create a new instance and return it.
VkResult MVKDevice::createPrivateDataSlot(const VkPrivateDataSlotCreateInfoEXT* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
Expand Down
2 changes: 0 additions & 2 deletions MoltenVK/MoltenVK/GPUObjects/MVKInstance.mm
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,6 @@
_appInfo.apiVersion = VK_API_VERSION_1_0; // Default
}
else if (MVK_VULKAN_API_VERSION_CONFORM(_appInfo.apiVersion) > MVK_VULKAN_API_VERSION_CONFORM(MVK_VULKAN_API_VERSION)) {
MVKLogWarning("Unrecognized CreateInstance->pCreateInfo->pApplicationInfo->apiVersion number (0x%08x). Assuming MoltenVK %d.%d version.",
_appInfo.apiVersion, MVK_VERSION_MAJOR, MVK_VERSION_MINOR);
_appInfo.apiVersion = MVK_VULKAN_API_VERSION;
}

Expand Down

0 comments on commit 2fa625f

Please sign in to comment.