Windows: Update GPU error message on ARM64

This makes it more verbose, and a little clearer that devices prior to 8cx Gen3 are not supported in  >=v4.0. It makes the error message from #113674 more prominent than just being printed to cout.

Spurred by an email I got from someone trying to run blender on a Surface Pro X, and getting the not very helpful (to old devices) error.

Pull Request: https://projects.blender.org/blender/blender/pulls/122732
This commit is contained in:
Anthony Roberts
2024-06-18 11:47:01 +02:00
parent 09be28794a
commit 794a8f35fa

View File

@@ -133,11 +133,15 @@ GHOST_WindowWin32::GHOST_WindowWin32(GHOST_SystemWin32 *system,
const char *title = "Blender - Unsupported Graphics Card Configuration";
const char *text = "";
#if defined(WIN32)
if (strncmp(BLI_getenv("PROCESSOR_IDENTIFIER"), "ARM", 3) == 0) {
if (strncmp(BLI_getenv("PROCESSOR_IDENTIFIER"), "ARM", 3) == 0 &&
strstr(BLI_getenv("PROCESSOR_IDENTIFIER"), "Qualcomm") != NULL)
{
text =
"A driver with support for OpenGL 4.3 or higher is required.\n\n"
"If you are on a Qualcomm 8cx Gen3 device or newer, you need to download the"
"\"OpenCL™, OpenGL®, and Vulkan® Compatibility Pack\" from the MS Store.";
"Qualcomm devices require the \"OpenCL™, OpenGL®, and Vulkan® Compatibility Pack\" "
"from the Microsoft Store.\n\n"
"Devices using processors older than a Qualcomm Snapdragon 8cx Gen3 are incompatible, "
"but may be able to run an emulated x64 copy of Blender, such as a 3.x LTS release.";
}
else
#endif