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

This commit is contained in:
Henrik Rydgård 2017-11-09 13:16:06 +01:00
parent 13e508e00b
commit 25f32b1d78
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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;