libobs-d3d11: Disable NV12 usage for Intel

NV12 GPU copies to staging textures for CPU read take a ridiculously
long time on my integrated Intel GPU. Using R8/R8G8 instead seems to be
a huge speed-up.

Intel HD Graphics 530, D3D11 query timings, SetStablePowerState

NV12: ~3268 us (minimum of wild timings)
R8/R8G8: ~781 us (most frequently occurring timing)
master
jpark37 2019-08-15 22:55:48 -07:00
parent bc3ed7bbf7
commit 06e01a00ab
1 changed files with 5 additions and 0 deletions

View File

@ -390,6 +390,11 @@ void gs_device::InitDevice(uint32_t adapterIdx)
nv12Supported = false;
/* Intel CopyResource is very slow with NV12 */
if (desc.VendorId == 0x8086) {
return;
}
ComQIPtr<ID3D11Device1> d3d11_1(device);
if (!d3d11_1) {
return;