1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Upgrade Embree to the latest official release.

Since Embree v3.13.0 supports AARCH64, switch back to the
official repo instead of using Embree-aarch64.

`thirdparty/embree/patches/godot-changes.patch` should now contain
an accurate diff of the changes done to the library.

(cherry picked from commit 767e374dce)
This commit is contained in:
jfons
2021-05-20 12:49:33 +02:00
committed by Rémi Verschelde
parent 2660fafcc0
commit a69cc9f13d
343 changed files with 12085 additions and 10390 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2009-2020 Intel Corporation
// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
@@ -107,15 +107,9 @@ namespace embree
//typedef extended_range<size_t> Set;
typedef Split2<ObjectSplit,SpatialSplit> Split;
#if defined(__AVX512ER__) // KNL
static const size_t PARALLEL_THRESHOLD = 3*1024;
static const size_t PARALLEL_FIND_BLOCK_SIZE = 768;
static const size_t PARALLEL_PARTITION_BLOCK_SIZE = 128;
#else
static const size_t PARALLEL_THRESHOLD = 3*1024;
static const size_t PARALLEL_FIND_BLOCK_SIZE = 1024;
static const size_t PARALLEL_PARTITION_BLOCK_SIZE = 128;
#endif
static const size_t MOVE_STEP_SIZE = 64;
static const size_t CREATE_SPLITS_STEP_SIZE = 64;