Skip to content
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

Screenshot example doesn't work on some MacOS #352

Closed
2 tasks
freesig opened this issue Jun 19, 2019 · 1 comment · Fixed by #452
Closed
2 tasks

Screenshot example doesn't work on some MacOS #352

freesig opened this issue Jun 19, 2019 · 1 comment · Fixed by #452

Comments

@freesig
Copy link
Collaborator

freesig commented Jun 19, 2019

The screenshot example isn't working on some MacOS.
I works on my mac but not @MacTuitui
He is getting this validation error:

VUID-VkMappedMemoryRange-size-01390(ERROR / SPEC): msgNum: 0 - vkInvalidateMappedMemoryRanges: Size in pMemRanges[0] is 0x107ac0, which is not a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize (0x100). The Vulkan spec states: If size is not equal to VK_WHOLE_SIZE, size must either be a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize, or offset plus size must equal the size of memory. (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkMappedMemoryRange-size-01390)
    Objects: 1
        [0] 0x2d, type: 8, name: NULL
VUID-VkMappedMemoryRange-size-01390(ERROR / SPEC): msgNum: 0 - vkFlushMappedMemoryRanges: Size in pMemRanges[0] is 0x107ac0, which is not a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize (0x100). The Vulkan spec states: If size is not equal to VK_WHOLE_SIZE, size must either be a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize, or offset plus size must equal the size of memory. (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkMappedMemoryRange-size-01390)
    Objects: 1
        [0] 0x2d, type: 8, name: NULL

I'm not sure if this is related but it's worth ruling out.
It's probably the buffer size which is based on the screen dimensions that is causing this.

  • Figure out what VkPhysicalDeviceLimits::nonCoherentAtomSize is on that machine
  • See if running with dimensions that are a multiple of this number fixes the issue.
    Might be worth doing an api dump.
@freesig freesig changed the title Scrrenshot example doesn't work on some MacOS Screenshot example doesn't work on some MacOS Jun 20, 2019
@freesig
Copy link
Collaborator Author

freesig commented Jun 20, 2019

Ok I'm getting this exact same validation error on my mac but it's working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants