Skip to content

vulkan: Explicitly enable dualSrcBlend feature to fix rendering artifacts#294

Merged
kvark merged 1 commit intokvark:mainfrom
algebnaly:fix_missing_dual_src_blend_enable_code
Feb 3, 2026
Merged

vulkan: Explicitly enable dualSrcBlend feature to fix rendering artifacts#294
kvark merged 1 commit intokvark:mainfrom
algebnaly:fix_missing_dual_src_blend_enable_code

Conversation

@algebnaly
Copy link
Contributor

Summary

This PR fixes a Vulkan validation error and severe visual artifacts (green mosaic on AMD/RADV) caused by using dual-source blending without explicitly enabling the feature on the logical device.

The Fix

I updated blade-graphics/src/vulkan/init.rs to explicitly enable the dual_src_blend feature in vk::PhysicalDeviceFeatures if the physical device supports it.

Linked Issue

Addresses part of zed-industries/zed#47650

In blade-graphics/src/vulkan/init.rs the code checks for dual_src_blend support but fails to set dual_src_blend: vk::TRUE in vk::PhysicalDeviceFeatures when creating the device.
Copy link
Owner

@kvark kvark left a comment

Choose a reason for hiding this comment

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

oof, thanks the the fix!

@kvark kvark enabled auto-merge (rebase) February 3, 2026 06:44
@kvark kvark merged commit d7e0bf8 into kvark:main Feb 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants