Commit cf58ecc3 authored by Vladimir Druzenko's avatar Vladimir Druzenko
Browse files

graphics/opencolorio: fix build on i386 with CPUTYPE older than pentium4

Fixing build errors such as:
/wrkdirs/usr/ports/graphics/opencolorio/work/OpenColorIO-2.3.2/src/OpenColorIO/ops/cdl/CDLOpCPU.cpp:339:18: error: always_inline function '_mm_loadu_ps' requires target feature 'sse', but would be inlined into function 'LoadRenderParams' that is compiled without support for 'sse'
    slope      = _mm_loadu_ps(renderParams.getSlope());

But it build fine with CPUTYPE=pentium4 or newer.
Default on i386 is CPUTYPE=i486.

Upstream reworked SIMD detection and usage in commit:
https://github.com/AcademySoftwareFoundation/OpenColorIO/commit/caa20dd1962f0d659a9214ac28815a1b904d4118#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20a

PR:		275402
Reported by:	diizzy (via email)
Approved by:	portmgr (blanket, fix build)
Fixes:		3e51c20b (graphics/{,py-}opencolorio{,-tools}: Udpate to 2.3.2)
parent c90fbcb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment