Cycles tests: Enable MNEE test on Metal on supported macOS version

MNEE tests were disabled on Metal due to the feature not being
supported in macOS < 13.

This commit enables MNEE tests on Metal GPUs if they are using
macOS >= 13, otherwise leave it disabled.

Pull Request: https://projects.blender.org/blender/blender/pulls/124709
This commit is contained in:
Alaska
2024-07-16 09:46:12 +02:00
committed by Sergey Sharybin
parent 047568f633
commit ef010da315

View File

@@ -4,6 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
import argparse
import platform
import os
import shlex
import sys
@@ -32,10 +33,16 @@ BLACKLIST_OPTIX = [
'T43865.blend',
]
BLACKLIST_METAL = [
# MNEE only works on Metal with macOS >= 13
"underwater_caustics.blend",
]
BLACKLIST_METAL = []
if platform.system() == "Darwin":
version, _, _ = platform.mac_ver()
major_version = version.split(".")[0]
if int(major_version) < 13:
BLACKLIST_METAL += [
# MNEE only works on Metal with macOS >= 13
"underwater_caustics.blend",
]
BLACKLIST_GPU = [
# Uninvestigated differences with GPU.