summaryrefslogtreecommitdiff
path: root/lang/intel-compute-runtime/files
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2020-05-29 17:01:25 +0000
committerJan Beich <jbeich@FreeBSD.org>2020-05-29 17:01:25 +0000
commitf0ff4b9962029db80db3b6b3a8e802ce30503afd (patch)
tree4014596a37f883461e868a217fe0fbae74167a9e /lang/intel-compute-runtime/files
parentgraphics/drawpile: prepare for Qt5-5.15 (diff)
lang/intel-compute-runtime: unbreak on i386
Notes
Notes: svn path=/head/; revision=536986
Diffstat (limited to 'lang/intel-compute-runtime/files')
-rw-r--r--lang/intel-compute-runtime/files/patch-i38623
1 files changed, 23 insertions, 0 deletions
diff --git a/lang/intel-compute-runtime/files/patch-i386 b/lang/intel-compute-runtime/files/patch-i386
index 4f2c095cd276..34f916e902d2 100644
--- a/lang/intel-compute-runtime/files/patch-i386
+++ b/lang/intel-compute-runtime/files/patch-i386
@@ -1,9 +1,32 @@
+Revert BufferObject's size to size_t like before 45a0ceecfbe4
+
+shared/source/os_interface/linux/drm_memory_manager.cpp:61:54: error: non-const
+ lvalue reference to type 'size_t' (aka 'unsigned int') cannot bind to a value of unrelated type 'uint64_t'
+ (aka 'unsigned long long')
+ bo->gpuAddress = acquireGpuRange(bo->size, false, rootDeviceIndex, false);
+ ^~~~~~~~
+shared/source/os_interface/linux/drm_memory_manager.h:66:38: note: passing argument
+ to parameter 'size' here
+ uint64_t acquireGpuRange(size_t &size, bool requireSpecificBitness, uint32_t rootDeviceIndex, bool requi...
+ ^
+
SSE2 is not enabled by default on BSDs
core/utilities/clflush.cpp:16:5: error: '_mm_clflush' needs target feature sse2
_mm_clflush(ptr);
^
+--- shared/source/os_interface/linux/drm_buffer_object.h.orig 2020-05-21 10:39:12 UTC
++++ shared/source/os_interface/linux/drm_buffer_object.h
+@@ -55,7 +55,7 @@ class BufferObject {
+ std::atomic<uint32_t> refCount;
+
+ int handle; // i915 gem object handle
+- uint64_t size;
++ size_t size;
+ bool isReused;
+
+ //Tiling
--- shared/source/utilities/cpuintrinsics.cpp.orig 2020-02-28 16:16:42 UTC
+++ shared/source/utilities/cpuintrinsics.cpp
@@ -12,6 +12,9 @@