Windows: Enable OpenPGL on ARM64 machines #127705

Merged
Anthony Roberts merged 1 commits from Anthony-Roberts/blender:enable-openpgl into main 2024-09-17 14:57:29 +02:00

This is the last remaining feature on #119126, which means with this merged, we would be feature complete (other than GPU rendering, but there is little indication of that being possible any time soon), and on feature parity with other platforms.

As OpenPGL ships with it's own version of embree, I had to pull the same trick that embree itself uses in the deps build system, where it is built with clang-cl as produced by compiling LLVM as it's own dep.

The OpenPGL patch updates sse2neon, manually re-adds the openPGL modifications to sse2neon that are there right now, and also fixes a few bugs preventing compilation on Windows ARM64 (CMake fixes and a few defines).

The updated TBB patch is required to build OpenPGL with clang-cl due to this bug. Once we finally shift off TBB 2020u3 this can go away, along with a good chunk of the rest of the TBB patch.

I have a PR to OpenPGL open, but Sebastian thinks the release window for that might be cutting it a little close to Bcon3, so suggested I make this PR including the patch.

This is the last remaining feature on #119126, which means with this merged, we would be feature complete (other than GPU rendering, but there is little indication of that being possible any time soon), and on feature parity with other platforms. As OpenPGL ships with it's own version of embree, I had to pull the same trick that embree itself uses in the deps build system, where it is built with clang-cl as produced by compiling LLVM as it's own dep. The OpenPGL patch updates sse2neon, manually re-adds the openPGL modifications to sse2neon that are there right now, and also fixes a few bugs preventing compilation on Windows ARM64 (CMake fixes and a few defines). The updated TBB patch is required to build OpenPGL with clang-cl due to [this bug](https://github.com/oneapi-src/oneTBB/issues/1142). Once we finally shift off TBB 2020u3 this can go away, along with a good chunk of the rest of the TBB patch. I have a [PR to OpenPGL open](https://github.com/RenderKit/openpgl/pull/17), but Sebastian thinks the release window for that might be cutting it a little close to Bcon3, so suggested I make this PR including the patch.
Anthony Roberts added 1 commit 2024-09-16 16:36:42 +02:00
Anthony Roberts requested review from Ray molenkamp 2024-09-16 16:36:56 +02:00
Ray molenkamp approved these changes 2024-09-16 16:47:18 +02:00
Anthony Roberts merged commit f0de0bc8d3 into main 2024-09-17 14:57:29 +02:00
Anthony Roberts deleted branch enable-openpgl 2024-09-17 14:57:33 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#127705
No description provided.