Christophe Riccio 11 years ago
parent
commit
445a388817
3 changed files with 3 additions and 2 deletions
  1. 1 1
      glm/detail/setup.hpp
  2. 1 1
      glm/detail/type_vec4.hpp
  3. 1 0
      readme.txt

+ 1 - 1
glm/detail/setup.hpp

@@ -735,7 +735,7 @@
 #	define GLM_ALIGNED_STRUCT(x) __declspec(align(x)) struct
 #	define GLM_ALIGNED_STRUCT(x) __declspec(align(x)) struct
 #	define GLM_RESTRICT
 #	define GLM_RESTRICT
 #	define GLM_RESTRICT_VAR __restrict
 #	define GLM_RESTRICT_VAR __restrict
-#elif GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG)
+#elif GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG | GLM_COMPILER_CUDA)
 #	define GLM_DEPRECATED __attribute__((__deprecated__))
 #	define GLM_DEPRECATED __attribute__((__deprecated__))
 #	define GLM_ALIGN(x) __attribute__((aligned(x)))
 #	define GLM_ALIGN(x) __attribute__((aligned(x)))
 #	define GLM_ALIGNED_STRUCT(x) struct __attribute__((aligned(x)))
 #	define GLM_ALIGNED_STRUCT(x) struct __attribute__((aligned(x)))

+ 1 - 1
glm/detail/type_vec4.hpp

@@ -67,7 +67,7 @@ namespace detail
 }//namespace detail
 }//namespace detail
 
 
 	template <typename T, precision P = defaultp>
 	template <typename T, precision P = defaultp>
-	struct tvec4
+	GLM_ALIGNED_STRUCT(16) tvec4
 	{
 	{
 		//////////////////////////////////////
 		//////////////////////////////////////
 		// Implementation detail
 		// Implementation detail

+ 1 - 0
readme.txt

@@ -79,6 +79,7 @@ GLM 0.9.6.0: 2014-XX-XX
 - Optimized bitfield operations
 - Optimized bitfield operations
 - Added GTC_bitfield extension, promoted GTX_bit
 - Added GTC_bitfield extension, promoted GTX_bit
 - Added GTC_integer extension, promoted GTX_bit
 - Added GTC_integer extension, promoted GTX_bit
+- Fixed bad matrix-vector multiple performance with Cuda #257, #258
 
 
 ================================================================================
 ================================================================================
 GLM 0.9.5.4: 2014-06-21
 GLM 0.9.5.4: 2014-06-21