Skip to content

Commit

Permalink
Merge pull request #2228 from billhollings/vulkan-sdk-1.3.283
Browse files Browse the repository at this point in the history
Update dependency libraries to match Vulkan SDK 1.3.283.
  • Loading branch information
billhollings authored May 5, 2024
2 parents 75fb949 + d2677a6 commit 1abae61
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 65 deletions.
5 changes: 3 additions & 2 deletions Docs/MoltenVK_Configuration_Parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,8 @@ features that are difficult to support otherwise.

Unlike `MVK_USE_METAL_PRIVATE_API`, this setting may be overridden at run time.

This option is not available unless MoltenVK were built with `MVK_USE_METAL_PRIVATE_API` set to `1`.
This option is not available unless **MoltenVK** was built with `MVK_USE_METAL_PRIVATE_API` set to `1`.


---------------------------------------
#### MVK_CONFIG_SHADER_DUMP_DIR
Expand All @@ -685,5 +686,5 @@ This option is not available unless MoltenVK were built with `MVK_USE_METAL_PRIV

_(The default value is an empty string)._

If not empty, MoltenVK will dump all SPIRV shaders, compiled MSL shaders, and pipeline shader lists to the given directory.
If not empty, **MoltenVK** will dump all SPIR-V shaders, compiled MSL shaders, and pipeline shader lists to the given directory.
The directory will be non-recursively created if it doesn't already exist.
22 changes: 20 additions & 2 deletions Docs/Whats_New.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,31 @@ Copyright (c) 2015-2024 [The Brenwill Workshop Ltd.](http://www.brenwill.com)
MoltenVK 1.2.9
--------------

Released TBD
Released 2024/05/07

- Add support for extensions:
- `VK_EXT_host_image_copy`
- To support legacy apps, restore `MoltenVK/dylib` directory via symlink to `MoltenVK/dynamic/dylib`.
- Add `MVKPerformanceTracker::previous` to track latest-but-one performance measurements.
- Enhancements to `MVKPerformanceStatistics`. Add `MVKPerformanceTracker::previous`,
`MVKQueuePerformance::waitSubmitCommandBuffers`, and `MVKQueuePerformance::waitPresentSwapchains`.
- Add `MVK_CONFIG_SHADER_DUMP_DIR` configuration parameter to optionally dump shaders to files.
- Return **MoltenVK** log level string in `pMessageIdName` field of debug utils callback data.
- Fix crash when using `VK_EXT_metal_objects` under _ARC_.
- Fix deadlock when creating a swapchain on a thread other than the main thread.
- Fix potential memory leak in `vkQueueWaitIdle()`.
- Ensure buffer bindings are actually used to avoid potential overrun on Metal buffer indexes.
- Update dependency libraries to match _Vulkan SDK 1.3.283_.
- Update `MVK_PRIVATE_API_VERSION` to `41`.
- Update to latest SPIRV-Cross:
- MSL: Add support for overlapping bindings.
- MSL: Use recursive template for `spvArrayCopy()`.
- MSL: Improve argument buffer descriptor aliasing implementation.
- MSL: Workaround compiler issue with image fence when used as reference.
- MSL: Fix SUMulExtended for 64-bit inputs.
- MSL: Handle Atomic{S,U}{Min,Max} with mismatched image sign.
- MSL: Handle missing FP16 trancendental overloads.
- MSL: Remove pointer wrapper stored in `spvDescriptorArray()` to avoid potential Metal compiler bug.



MoltenVK 1.2.8
Expand Down
2 changes: 1 addition & 1 deletion ExternalRevisions/SPIRV-Cross_repo_revision
Original file line number Diff line number Diff line change
@@ -1 +1 @@
de0e72a0db21d1a12eb37cbfd15199b3e66fc9d9
2ccc81fd826e4dd4a2db2f94b8e6eb738a89f5f1
2 changes: 1 addition & 1 deletion ExternalRevisions/Volk_repo_revision
Original file line number Diff line number Diff line change
@@ -1 +1 @@
01986ac85fa2e5c70df09aeae9c907e27c5d50b2
3a8068a57417940cf2bf9d837a7bb60d015ca2f1
2 changes: 1 addition & 1 deletion ExternalRevisions/Vulkan-Headers_repo_revision
Original file line number Diff line number Diff line change
@@ -1 +1 @@
577baa05033cf1d9236b3d078ca4b3269ed87a2b
eaa319dade959cb61ed2229c8ea42e307cc8f8b3
2 changes: 1 addition & 1 deletion ExternalRevisions/Vulkan-Tools_repo_revision
Original file line number Diff line number Diff line change
@@ -1 +1 @@
da49add44591bee19975e4668e418591effd8240
09f5cc6b0758a05ccd6bcde1342256c15c76670e
2 changes: 1 addition & 1 deletion ExternalRevisions/glslang_repo_revision
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ee2f5d09eaf8f4e8d0d598bd2172fce290d4ca60
e8dd0b6903b34f1879520b444634c75ea2deedf5
1 change: 0 additions & 1 deletion MoltenVK/MoltenVK/GPUObjects/MVKQueue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@

@autoreleasepool {
auto* mtlCmdBuff = getMTLCommandBuffer(cmdUse);

[mtlCmdBuff commit];
[mtlCmdBuff waitUntilCompleted];
}
Expand Down
2 changes: 1 addition & 1 deletion MoltenVK/MoltenVK/Utility/MVKBaseObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ static inline const MVKConfiguration& mvkGetMVKConfig(MVKBaseObject* mvkObj) {
}

/** Returns the reporting level string associated with the specified MoltenVK log level. */
static constexpr char* mvkGetReportingLevelString(MVKConfigLogLevel logLevel) {
static inline const char* mvkGetReportingLevelString(MVKConfigLogLevel logLevel) {
switch (logLevel) {
case MVK_CONFIG_LOG_LEVEL_ERROR: return "mvk-error";
case MVK_CONFIG_LOG_LEVEL_WARNING: return "mvk-warn";
Expand Down
46 changes: 0 additions & 46 deletions Templates/Vulkan-Headers/VK_EXT_metal_objects-unret.gitdiff

This file was deleted.

Binary file modified Templates/spirv-tools/build.zip
Binary file not shown.
8 changes: 0 additions & 8 deletions fetchDependencies
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,6 @@ else
update_repo ${REPO_NAME} ${REPO_URL} ${REPO_REV}
fi

# Apply a Git diff file to add an __unsafe_unretained ownership
# qualifier to the Metal object declarations in vulkan_metal.h.
# This should be a temporary patch until the VK_EXT_metal_objects extension can be properly modified.
echo "Adding __unsafe_unretained ownership qualifier to the Metal objects in vulkan_metal.h."
cd ${REPO_NAME}
git apply ../../Templates/${REPO_NAME}/VK_EXT_metal_objects-unret.gitdiff
cd - > /dev/null


# ----------------- SPIRV-Cross -------------------

Expand Down

0 comments on commit 1abae61

Please sign in to comment.