[Bf-blender-cvs] [f396510baa1] cycles-x: Cleanup: remove unused avx/sse kernel textures access
Brecht Van Lommel
noreply at git.blender.org
Wed Jul 14 14:39:28 CEST 2021
Commit: f396510baa1c64699b962017dd4623da61330a79
Author: Brecht Van Lommel
Date: Tue Jul 13 17:53:56 2021 +0200
Branches: cycles-x
https://developer.blender.org/rBf396510baa1c64699b962017dd4623da61330a79
Cleanup: remove unused avx/sse kernel textures access
===================================================================
M intern/cycles/kernel/device/cpu/compat.h
===================================================================
diff --git a/intern/cycles/kernel/device/cpu/compat.h b/intern/cycles/kernel/device/cpu/compat.h
index cb6dd70de6b..fb78c85e369 100644
--- a/intern/cycles/kernel/device/cpu/compat.h
+++ b/intern/cycles/kernel/device/cpu/compat.h
@@ -76,32 +76,6 @@ template<typename T> struct texture {
kernel_assert(index >= 0 && index < width);
return data[index];
}
-#if defined(__KERNEL_AVX__) || defined(__KERNEL_AVX2__)
- /* Reads 256 bytes but indexes in blocks of 128 bytes to maintain
- * compatibility with existing indices and data structures.
- */
- ccl_always_inline avxf fetch_avxf(const int index) const
- {
- kernel_assert(index >= 0 && (index + 1) < width);
- ssef *ssef_data = (ssef *)data;
- ssef *ssef_node_data = &ssef_data[index];
- return _mm256_loadu_ps((float *)ssef_node_data);
- }
-#endif
-
-#ifdef __KERNEL_SSE2__
- ccl_always_inline ssef fetch_ssef(int index) const
- {
- kernel_assert(index >= 0 && index < width);
- return ((ssef *)data)[index];
- }
-
- ccl_always_inline ssei fetch_ssei(int index) const
- {
- kernel_assert(index >= 0 && index < width);
- return ((ssei *)data)[index];
- }
-#endif
T *data;
int width;
More information about the Bf-blender-cvs
mailing list