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

Vulkan: Specify Vulkan version, fix mip level generation calculation #15211

Merged
merged 4 commits into from
Dec 7, 2021

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Dec 7, 2021

Validation errors caught some erroneous mipmap counts, due to computing the number of mipmaps to generate at the wrong place in the function.

Also, if Vulkan 1.1 or 1.2 is available, let's opt in to them. We don't really rely on anything from the new numbered versions, but at this point I think 1.1 is the most well tested path in drivers, in case there's a difference.

@hrydgard hrydgard added the Vulkan label Dec 7, 2021
@hrydgard hrydgard added this to the v1.13.0 milestone Dec 7, 2021
@hrydgard hrydgard merged commit 5907897 into master Dec 7, 2021
@hrydgard hrydgard deleted the vulkan-fixes branch December 7, 2021 22:04
@@ -291,6 +291,8 @@ class VulkanRenderManager {

void SetScissor(VkRect2D rc) {
_dbg_assert_(curRenderStep_ && curRenderStep_->stepType == VKRStepType::RENDER);
_dbg_assert_((int)rc.offset.x >= 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume one could use the display layout editor to make these values negative (i.e. CenterDisplayOutputRect)?

-[Unknown]

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, yeah, good point - though it technically is the callers responsibility to do the clipping, maybe it indeed makes sense to tolerate bad dimensions here and adjust automatically instead of asserting.

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

Successfully merging this pull request may close these issues.

2 participants