Fix AVX512-FP16 build

Was missing explicit conversion from float to FastType when
FastType isn't float.

Pick-to: 6.8
Fixes: QTBUG-133430
Change-Id: I227558f6ecc1018158c88514dbb23bfe095ef77f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
(cherry picked from commit d076420bb0740e0410a886fc2feb5fcf8b729f4d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Allan Sandfeld Jensen 2025-02-03 11:03:51 +01:00 committed by Qt Cherry-pick Bot
parent d07a849e98
commit f20166d2de

View File

@ -99,7 +99,7 @@ public:
return QRgbaFloat{}; // default-initialization: zeroes
if (a >= F{1.0f})
return *this;
const FastType ia = 1.0f / a;
const FastType ia = FastType(1.0f) / FastType(a);
return QRgbaFloat{F(r * ia), F(g * ia), F(b * ia), F(a)};
}
constexpr bool operator==(QRgbaFloat f) const