Browse Source

libobs-d3d11: Disable NV12 format support for WARP

Speculative fix. Don't have easy ability to reproduce this locally.
jpark37 6 years ago
parent
commit
84d0fdc576
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libobs-d3d11/d3d11-subsystem.cpp

+ 5 - 0
libobs-d3d11/d3d11-subsystem.cpp

@@ -390,6 +390,11 @@ void gs_device::InitDevice(uint32_t adapterIdx)
 
 
 	nv12Supported = false;
 	nv12Supported = false;
 
 
+	/* WARP NV12 support is suspected to be buggy on older Windows */
+	if (desc.VendorId == 0x1414 && desc.DeviceId == 0x8c) {
+		return;
+	}
+
 	/* Intel CopyResource is very slow with NV12 */
 	/* Intel CopyResource is very slow with NV12 */
 	if (desc.VendorId == 0x8086) {
 	if (desc.VendorId == 0x8086) {
 		return;
 		return;