0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/libobs-d3d11
Jim e62759a3fa libobs-d3d11: Make sure libobs knows the new adapter index
Because Intel has wonderful code which forces it to run on the iGPU if
there are both an Intel iGPU and an Intel dGPU on the same system, the
adapter index OBS is set to internally will no longer be valid, thus if
anyone calls `obs_get_video_info()` to try to find out what adapter
index OBS is running on, it will be invalid on those computers.
Wonderful.

So, basically, this code here just fixe it so if you want to call
`obs_get_video_info()`, it'll actually have a valid adapter index now,
that way we can reference the adapter index when determining what GPU
we're actually running on without having to like, do anything super
complicated and silly like comparing adapter GUIDs just to figure out
what adapter OBS is actually runing on. I don't want the code to be a
mess anymore.

(I like how in any other situation on the face of the planet, there's no
need to force OBS to run on an integrated adapter. *Normally* OBS
*should* run on the dedicated adapter, that way it can actually capture
games properly. You can probably guess as to why they're forcing it to
run on the integrated adapter rather than the dedicated adapter. But you
know what? Whatever. I don't really care anymore I guess. Just...
whatever. Here we are I guess. Also I was in a bad mood while writing
this just as a disclaimer.)

(I hate that this commit exist. I hate that the commit c83eaaa51c exists
even more.)
2022-11-21 08:47:36 -08:00
..
CMakeLists.txt libobs-d3d11: Remove Intel NV12 whitelist 2022-03-19 15:39:09 -07:00
d3d11-config.h.in libobs-d3d11: Set maximum GPU priority 2019-10-10 00:51:47 -07:00
d3d11-duplicator.cpp libobs-d3d11: Simplify duplicator formats 2022-03-09 23:05:45 -08:00
d3d11-indexbuffer.cpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
d3d11-rebuild.cpp libobs/graphics, libobs-d3d11: Add P010 support 2022-03-20 17:22:13 -07:00
d3d11-samplerstate.cpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
d3d11-shader.cpp libobs: Add dormant SRGB format support 2021-01-21 07:42:13 -08:00
d3d11-shaderprocessor.cpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
d3d11-shaderprocessor.hpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
d3d11-stagesurf.cpp libobs/graphics, libobs-d3d11: Add P010 support 2022-03-20 17:22:13 -07:00
d3d11-subsystem.cpp libobs-d3d11: Make sure libobs knows the new adapter index 2022-11-21 08:47:36 -08:00
d3d11-subsystem.hpp libobs-d3d11: Support advanced SDR window preview 2022-11-09 22:35:24 -08:00
d3d11-texture2d.cpp libobs/graphics, libobs-d3d11: Add P010 support 2022-03-20 17:22:13 -07:00
d3d11-texture3d.cpp libobs: Add dormant SRGB format support 2021-01-21 07:42:13 -08:00
d3d11-vertexbuffer.cpp libobs-d3d11: Avoid vector usage 2021-08-15 00:12:14 -07:00
d3d11-zstencilbuffer.cpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00