File: 12-fix-simd-warning.patch

package info (click to toggle)
nvidia-texture-tools 2.0.8-1%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,312 kB
  • sloc: cpp: 22,495; ansic: 1,097; sh: 59; makefile: 10
file content (20 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (4)
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;