Permalink
Browse files

Vulkan: Disable dual source blending on Intel GPUs, fixes #10074.

  • Loading branch information...
hrydgard committed Nov 9, 2017
1 parent 13e508e commit 25f32b1d78a9423deba6fac848d5ff0ca65c5823
Showing with 6 additions and 1 deletion.
  1. +3 −0 Common/Vulkan/VulkanContext.cpp
  2. +3 −1 GPU/Vulkan/GPU_Vulkan.cpp
@@ -349,6 +349,9 @@ bool VulkanContext::CheckLayers(const std::vector<LayerProperties> &layer_props,
}
int VulkanContext::GetBestPhysicalDevice() {
// DO NOT COMMIT
return 1;
// Rules: Prefer discrete over embedded.
// Prefer nVidia over Intel.
@@ -177,7 +177,9 @@ void GPU_Vulkan::CheckGPUFeatures() {
features |= GPU_SUPPORTS_WIDE_LINES;
}
if (vulkan_->GetFeaturesEnabled().dualSrcBlend) {
features |= GPU_SUPPORTS_DUALSOURCE_BLEND;
// Work around for Intel driver bug. See issue #10074.
if (vulkan_->GetPhysicalDeviceProperties().vendorID != VULKAN_VENDOR_INTEL)
features |= GPU_SUPPORTS_DUALSOURCE_BLEND;
}
if (vulkan_->GetFeaturesEnabled().logicOp) {
features |= GPU_SUPPORTS_LOGIC_OP;

0 comments on commit 25f32b1

Please sign in to comment.