-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for VK_EXT_debug_marker extension. #608
Conversation
Move MVKVulkanAPIObject to its own .h/mm files. Add MVKCmdDebug.h/mm files. Change extension on MVKExtensions.cpp and MVKBaseObject.cpp to .mm. Remove unused command use in MVKQueue submit() and waitIdle() functions. MVKCommandPool constructor use default isPooling value in MVKCommandTypePool constructors. MVKSwapchainImage pass image index in constructor.
Hi @billhollings, only patch needed until now is in MVKDevice.mm in MVKPhysicalDevice::initFeatures() function I add:
as you see the patch I use exposes "fake" support for this three features.. Full log of crash:
until this patch it works and log of working sample app (wine d3d11-triangle)
|
#611 should probably fix the crash. |
_deviceMemory->_debugName.length == 0) { | ||
|
||
_deviceMemory->setDebugName(_debugName.UTF8String); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setDebugName()
is called with NULL pointer for dedicated allocation in MVKBuffer::propogateDebugName()
.
As @jozefkucia mentioned, there was a null pointer error introduced in this PR. PR #616 fixes it. Can you retest with latest MoltenVK and close this if it fixes the issue? |
@billhollings just tested and issue is fixed.. thanks.. I didn't open any issue, just commented here, so nothing to close, right?.. finally don't want to open separate issue, but can SPIRV-Cross dependency be updated to latest? just interested on "MSL: Add support for subgroup operations." and also in "Support emitting OpLine directive." can this OpLine support help in your last efforts to support debug extensions in some way, or mapping original source code in "Xcode Metal debugger"? thanks as always.. |
@oscarbg D'oh! Sorry...nothing to close here of course. I'm used to copying that out on issues. |
@cdavis5e Is it useful to bring the latest SPIRV-Cross in? Are these SPIRV-Cross features stand-alone...or are we waiting on compatible changes to MoltenVK? |
Subgroup operations need Vulkan 1.1. We can't support that yet, because we don't support multiview. According to the 1.1 spec, On the other hand, the latest SPIRV-Cross also supports emulating |
Fixes issue #11.