-
Notifications
You must be signed in to change notification settings - Fork 455
layers: Add VK_QCOM_multiview_per_view_viewports #11245
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
layers: Add VK_QCOM_multiview_per_view_viewports #11245
Conversation
|
CI Vulkan-ValidationLayers build queued with queue ID 594620. |
|
CI Vulkan-ValidationLayers build # 21878 running. |
|
CI Vulkan-ValidationLayers build # 21878 passed. |
| if (!pipeline.IsDynamic(CB_DYNAMIC_STATE_SCISSOR) && !pipeline.IsDynamic(CB_DYNAMIC_STATE_SCISSOR_WITH_COUNT)) { | ||
| for (uint32_t i = 0; i < rp_state.create_info.subpassCount; i++) { | ||
| const uint32_t view_mask = rp_state.create_info.pSubpasses[i].viewMask; | ||
| const uint32_t msb = (uint32_t)MostSignificantBit(view_mask); |
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.
just in case observation: this code assumes that view_mask can't be 0, otherwise msb would be uint32_max and will report confusing error.
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.
ya, let me update that, good catch
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.
ok, looked, I added rp_state->has_multiview_enabled which if true, then zero is not allowed and should be an error to my knowledge
5d9b634 to
5f28f2d
Compare
|
CI Vulkan-ValidationLayers build queued with queue ID 595075. |
|
CI Vulkan-ValidationLayers build # 21882 running. |
|
CI Vulkan-ValidationLayers build # 21882 passed. |
adds
VK_QCOM_multiview_per_view_viewportsVUsthere should be dynamic rendering VUs, but waiting on https://gitlab.khronos.org/vulkan/vulkan/-/merge_requests/7892 to add them