1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Title: Fix SIMD warning
DEP: 3
Last-Update: 2015-08-04
Forwarded: not-needed
Description:
The array size increase avoids an aggressive loop optimization warning with
simd instructions where the compiler is unaware that the last value is not
actually accessed.
--- a/src/nvtt/squish/fastclusterfit.h
+++ b/src/nvtt/squish/fastclusterfit.h
@@ -53,7 +53,7 @@
Vec3 m_principle;
#if SQUISH_USE_SIMD
- Vec4 m_unweighted[16];
+ Vec4 m_unweighted[17];
Vec4 m_metric;
Vec4 m_metricSqr;
Vec4 m_xxsum;
|