Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

Layers show false-positive when using VK_REMAINING_MIP_LEVELS #1752

Closed
krOoze opened this issue May 9, 2017 · 0 comments · Fixed by #1758
Closed

Layers show false-positive when using VK_REMAINING_MIP_LEVELS #1752

krOoze opened this issue May 9, 2017 · 0 comments · Fixed by #1758
Assignees
Labels
Milestone

Comments

@krOoze
Copy link
Contributor

krOoze commented May 9, 2017

Layers are issuing false positive error when using VK_REMAINING_MIP_LEVELS on vkCreateImageView:

ERROR: unknown(0x0): 768, IMAGE, vkCreateImageView called with baseMipLevel 0 for image 000000000000000B that only has 1 mip levels. For more information refer to Vulkan Spec Section '11.5. Image Views' which states 'If levelCount is not VK_REMAINING_MIP_LEVELS, levelCount must be non-zero and (baseMipLevel + levelCount) must be less than or equal to the mipLevels specified in VkImageCreateInfo when the image was created' (https://www.khronos.org/registry/vulkan/specs/1.0-extensions/html/vkspec.html#VkImageAspectFlagBits)

I am already working on a PR for this...

@mark-lunarg mark-lunarg self-assigned this May 10, 2017
@mark-lunarg mark-lunarg added this to the P1 milestone May 10, 2017
mark-lunarg pushed a commit that referenced this issue May 19, 2017
- fix #1752
- handle possible overflow of `level`+`count`
- include correct err code in msges
- update and add some tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants