Blender Git Loki

Git Commits -> Revision 82ab2c1

Revision 82ab2c1 by Peter Kim (master)
September 10, 2021, 04:19 (GMT)
XR: Re-enable SteamVR OpenGL backend for AMD gpus

Addresses T76082.

Since the DirectX backend does not work for AMD gpus
(wglDXRegisterObjectNV() fails to register the shared OpenGL-DirectX
render buffer, displaying a pink screen to the user), the original
solution was to use SteamVR's OpenGL backend, which, as tested
recently, seems to work without any issues on AMD hardware.

However, the SteamVR OpenGL backend (on Windows) was disabled in
fe492d922d6d since it resulted in crashes with NVIDIA gpus (and still
crashes, as tested recently), so SteamVR would always use the
AMD-incompatible DirectX backend (on Windows).

This patch restores use of the SteamVR OpenGL backend for non-NVIDIA
(AMD, etc.) gpus while maintaining the DirectX workaround for NVIDIA
gpus. In this way, issues are still resolved on the NVIDIA side but
AMD users can once again use the SteamVR runtime, which may be their
only viable option of using Blender in VR.

Reviewed By: Julian Eisel

Differential Revision: https://developer.blender.org/D12409

Commit Details:

Full Hash: 82ab2c167844627ccda4ac0e439f322fcea07173
Parent Commit: ee3b4e8
Lines Changed: +21, -6

4 Modified Paths:

/intern/ghost/GHOST_Types.h (+5, -0) (Diff)
/intern/ghost/intern/GHOST_XrContext.cpp (+7, -5) (Diff)
/intern/ghost/intern/GHOST_XrContext.h (+2, -1) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr.c (+7, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021