Windows: Remove workaround for ARM64/WSL Mesa drivers
This reverts #110582 - the workaround is no longer needed, as MS have updated
the version of mesa they ship as part of their compatibility pack, which contains
a workaround on that side instead.
This means that the supported version of OpenGL based on the host GPU is now
correct, bar `GL_ARB_texture_view`.
`GL_ARB_texture_view` is faked for ARM64 devices, as the part that is not
implemented (channel casting) is not used in blender.
This means that ARM64 devices (at least) now report compatibility up to OpenGL
4.6 in the system info export.
See: 698344b93c
Pull Request: https://projects.blender.org/blender/blender/pulls/116052
This commit is contained in:
committed by
Jeroen Bakker
parent
857714ceff
commit
3b2ed40250
@@ -14,10 +14,6 @@
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined(WITH_TBB_MALLOC) && defined(_MSC_VER) && defined(NDEBUG)
|
||||
# pragma comment(lib, "tbbmalloc_proxy.lib")
|
||||
# pragma comment(linker, "/include:__TBB_malloc_proxy")
|
||||
@@ -29,7 +25,6 @@
|
||||
|
||||
#include "DNA_genfile.h"
|
||||
|
||||
#include "BLI_path_util.h"
|
||||
#include "BLI_string.h"
|
||||
#include "BLI_system.h"
|
||||
#include "BLI_task.h"
|
||||
@@ -334,19 +329,6 @@ int main(int argc,
|
||||
# endif /* USE_WIN32_UNICODE_ARGS */
|
||||
#endif /* WIN32 */
|
||||
|
||||
/* Here we check for Windows ARM64 or WSL, and override the Mesa reported OpenGL version */
|
||||
#if defined(WIN32) || defined(__linux__)
|
||||
# if defined(WIN32)
|
||||
if (strncmp(BLI_getenv("PROCESSOR_IDENTIFIER"), "ARM", 3) == 0)
|
||||
# else /* Must be linux, so check if we're in WSL */
|
||||
if (access("/proc/sys/fs/binfmt_misc/WSLInterop", F_OK) == 0)
|
||||
# endif
|
||||
{
|
||||
BLI_setenv_if_new("MESA_GLSL_VERSION_OVERRIDE", "430");
|
||||
BLI_setenv_if_new("MESA_GL_VERSION_OVERRIDE", "4.3");
|
||||
}
|
||||
#endif
|
||||
|
||||
/* NOTE: Special exception for guarded allocator type switch:
|
||||
* we need to perform switch from lock-free to fully
|
||||
* guarded allocator before any allocation happened.
|
||||
|
||||
Reference in New Issue
Block a user