TestMetal - M1 Max clipping plane issue

Hi,

I have some problems with the clipping plane in Rhino 8 WIP with with TestMetal enabled:

Here is the same model with TestMetal disabled:

I’m running the latest build, updated just before posting this.
This file is 7,1 MB, I can send it if it helps, but a simple box is enough to reproduce the issue:

  1. Open a new Rhino scene
  2. Create any solid geometry
  3. Create a clipping plane to cut it
  4. Set Display mode to shaded

SystemInfo:

Rhino 8 SR0 2022-1-11 (Rhino WIP, 8.0.22011.12316, Git hash:master @ e61fc78d7ed6bc889c1402fc0b8bf4337d761825)
License type: Educational, build 2022-01-11
License details: Cloud Zoo
Expires on: 2022-02-25

Apple macOS Version 12.1 (Build 21C52) (Physical RAM: 64Gb)
Rhino is running in Rosetta2 on Apple Silicon
Mac Model Identifier: MacBookPro18,2
Language: en-GB (MacOS default)

Apple M1 Max (OpenGL ver:4.1 Metal - 76.3)

OpenGL Settings
  Safe mode: Off
  Use accelerated hardware modes: On
  Redraw scene when viewports are exposed: On
  
  Anti-alias mode: 4x
  Mip Map Filtering: Linear
  Anisotropic Filtering Mode: High
  
  Vendor Name: Apple
  Render version: 4.1
  Shading Language: 4.10
  Maximum Texture size: 16384 x 16384
  Z-Buffer depth: n/a
  Maximum Viewport size: 16384 x 16384
  Total Video Memory: 43690 MB
  Graphics: Apple G13X
  Displays: Unknown (303dpi 2x)

Graphics processors
  Apple G13X
    Color LCD (2056 x 1329 @ 120.00Hz)

USB devices
  WIBU-SYSTEMS AG: CodeMeter-Stick

Bluetooth devices
  None

Third party kernel extensions
  None

Third party plugins
  /usr/lib/swift/libswiftCloudKit.dylib
  /usr/lib/swift/libswiftCore.dylib
  /usr/lib/swift/libswiftCoreData.dylib
  /usr/lib/swift/libswiftCoreFoundation.dylib
  /usr/lib/swift/libswiftCoreGraphics.dylib
  /usr/lib/swift/libswiftCoreLocation.dylib
  /usr/lib/swift/libswiftDarwin.dylib
  /usr/lib/swift/libswiftDispatch.dylib
  /usr/lib/swift/libswiftFoundation.dylib
  /usr/lib/swift/libswiftIOKit.dylib
  /usr/lib/swift/libswiftObjectiveC.dylib
  /usr/lib/swift/libswiftXPC.dylib
  /usr/lib/swift/libswiftos.dylib
  /usr/lib/swift/libswift_Concurrency.dylib
  /usr/lib/swift/libswiftAppKit.dylib
  /usr/lib/swift/libswiftCoreImage.dylib
  /usr/lib/swift/libswiftMetal.dylib
  /usr/lib/swift/libswiftQuartzCore.dylib
  /usr/lib/swift/libswiftCryptoTokenKit.dylib
  /usr/lib/swift/libswiftAccelerate.dylib
  /usr/lib/swift/libswiftContacts.dylib
  /usr/lib/swift/libswiftCoreAudio.dylib
  /usr/lib/swift/libswiftCoreML.dylib
  /usr/lib/swift/libswiftCoreMedia.dylib
  /usr/lib/swift/libswiftOSLog.dylib
  /usr/lib/swift/libswiftVision.dylib
  /usr/lib/swift/libswiftsimd.dylib
  /usr/lib/swift/libswiftNetwork.dylib
  /usr/lib/swift/libswiftDemangle.dylib
  /usr/lib/swift/libswiftFileProvider.dylib
  /usr/lib/swift/libswiftIntents.dylib
  /usr/lib/swift/libswiftPrivate_BiomePubSub.dylib
  /usr/lib/swift/libswiftPrivate_BiomeStreams.dylib
  /usr/lib/swift/libswiftUniformTypeIdentifiers.dylib
  /usr/lib/swift/libswiftAVFoundation.dylib
  /usr/lib/swift/libswiftCoreMIDI.dylib
  /usr/lib/log/liblog_network.dylib


Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/import_DST.rhp	"Import_DST"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/Import_WAMIT.rhp	"WAMIT import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Import_AMF.rhp	"Import_AMF"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/ConnectionsUI.rhp	"ConnectionsUI"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/export_3MF.rhp	"export_3MF"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoRenderCycles.rhp	"Rhino Render"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/MeshCommands.rhp	"MeshCommands"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/Import_X.rhp	"X Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/RhinoBonusTools.rhp	"Rhino Bonus Tools"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_PLY.rhp	"PLY - Polygon File Format Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_UDO.rhp	"Moray Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export_PDF.rhp	"PDF Export"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_CSV.rhp	"Comma Separated Value Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_WAMIT.rhp	"WAMIT Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Import_OFF.rhp	"OFF Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Import_SolidWorks.rhp	"Solidworks Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/export_ACAD.rhp	"AutoCAD file export : export_ACAD"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_CD.rhp	"Cult3D Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoCodePlugin.rhp	"RhinoCodePlugin"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/export_SLC.rhp	"SLC Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Export_OBJ.rhp	"export_OBJ"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/export_STL.rhp	"STL Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/NamedPositions.rhp	"Named Position"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/SolidTools.rhp	"SolidTools"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_RAW.rhp	"RAW Triangle Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_XGL.rhp	"XGL Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/PanelingTools.rhp	"PanelingTools"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/export_LWO.rhp	"Lightwave Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_PDF.rhp	"PDFReader"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/AnimationTools.rhp	"AnimationTools"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_STEP.rhp	"STEP Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoCPython.rhp	"RhinoCPython"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/export_AI.rhp	"Adobe Illustrator Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/export_VRML.rhp	"VRML/X3D Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Squish.rhp	"Squish"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoDLR_Python.rhp	"IronPython"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/CreaseAngle.rhp	"CreaseAngle"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Commands.rhp	"Commands"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/import_Points.rhp	"Points Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/GrasshopperPlugin.rhp	"Grasshopper"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export_PLY.rhp	"PLY - Polygon File Format Export"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/export_SKP.rhp	"SketchUp Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_VRML.rhp	"VRML Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/export_Points.rhp	"Points Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoRoslyn.rhp	"RhinoRoslyn"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export_SVG.rhp	"Export SVG"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_RAW.rhp	"Raw Triangles Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_VDA.rhp	"VDA Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Connections.rhp	"Connections"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_GTS.rhp	"GTS Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Export_DAE.rhp	"Export_DAE"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/Import_SLC.rhp	"SLC Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/RhinoLabsTools.rhp	"Rhino Labs Tools"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/export_SAT.rhp	"ACIS Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Import_DGN.rhp	"MicroStation file import: import_DGN"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/export_STEP.rhp	"STEP Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/MeshFromPoints.rhp	"MeshFromPoints"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_POV.rhp	"POV-Ray Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_3MF.rhp	"import_3MF"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/export_FBX.rhp	"Export_FBX"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Displacement.rhp	"Displacement"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/MPlane.rhp	"MPlane"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/export_3DS.rhp	"3D Studio Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/export_VDA.rhp	"VDA Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/RhinoRender.rhp	"Legacy Rhino Render"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Import_M.rhp	"Import_M"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Import_GTS.rhp	"GTS Triangle Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_SKP.rhp	"SketchUp Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_FBX.rhp	"Import_FBX"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/MeshTools.rhp	"MeshTools"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Import_SVG.rhp	"Import_SVG"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RDK_EtoUI.rhp	"RDK_EtoUI"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/import_ACAD.rhp	"AutoCAD file import: import_ACAD"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_STL.rhp	"STL Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_RIB.rhp	"Renderman Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_X.rhp	"X Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export_XAML.rhp	"export_xaml"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/import_LWO.rhp	"Lightwave Import"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export_IGES.rhp	"IGES Export Plug-in"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Export_AMF.rhp	"Export_AMF"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoCycles.rhp	"RhinoCycles"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/Export_X_T.rhp	"Parasolid Export"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Import_OBJ.rhp	"Import_OBJ"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/PlugIns/NamedSnapshots.rhp	"Snapshots"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/BlockEdit.rhp	"BlockEdit"	8.0.22011.12316
  /Applications/RhinoWIP.app/Contents/Frameworks/RhMaterialEditor.framework	"Renderer Development Kit"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/PlugIns/import_IGES.rhp	"IGES Import Plug-in"	8.0.22011.1002
  /Applications/RhinoWIP.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/QuadRemesh.rhp	"QuadRemesh"	8.0.22011.12316