| 1 |
diff --git a/thirdparty/etcpak/ProcessDxtc.cpp b/thirdparty/etcpak/ProcessDxtc.cpp |
| 2 |
index 5373b75cdc..e1bc6a5cb6 100644 |
| 3 |
--- a/thirdparty/etcpak/ProcessDxtc.cpp |
| 4 |
+++ b/thirdparty/etcpak/ProcessDxtc.cpp |
| 5 |
@@ -1,4 +1,3 @@ |
| 6 |
-#include "bc7enc.h" |
| 7 |
#include "Dither.hpp" |
| 8 |
#include "ForceInline.hpp" |
| 9 |
#include "ProcessDxtc.hpp" |
| 10 |
@@ -1085,29 +1084,3 @@ void CompressBc5( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t wi |
| 11 |
#endif |
| 12 |
} while( --blocks ); |
| 13 |
} |
| 14 |
- |
| 15 |
-void CompressBc7( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width, const bc7enc_compress_block_params* params ) |
| 16 |
-{ |
| 17 |
- int i = 0; |
| 18 |
- auto ptr = dst; |
| 19 |
- do |
| 20 |
- { |
| 21 |
- uint32_t rgba[4*4]; |
| 22 |
- |
| 23 |
- auto tmp = (char*)rgba; |
| 24 |
- memcpy( tmp, src + width * 0, 4*4 ); |
| 25 |
- memcpy( tmp + 4*4, src + width * 1, 4*4 ); |
| 26 |
- memcpy( tmp + 8*4, src + width * 2, 4*4 ); |
| 27 |
- memcpy( tmp + 12*4, src + width * 3, 4*4 ); |
| 28 |
- src += 4; |
| 29 |
- if( ++i == width/4 ) |
| 30 |
- { |
| 31 |
- src += width * 3; |
| 32 |
- i = 0; |
| 33 |
- } |
| 34 |
- |
| 35 |
- bc7enc_compress_block( ptr, rgba, params ); |
| 36 |
- ptr += 2; |
| 37 |
- } |
| 38 |
- while( --blocks ); |
| 39 |
-} |
| 40 |
diff --git a/thirdparty/etcpak/ProcessDxtc.hpp b/thirdparty/etcpak/ProcessDxtc.hpp |
| 41 |
index 7655bb33be..8145493872 100644 |
| 42 |
--- a/thirdparty/etcpak/ProcessDxtc.hpp |
| 43 |
+++ b/thirdparty/etcpak/ProcessDxtc.hpp |
| 44 |
@@ -11,8 +11,4 @@ void CompressBc3( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t wi |
| 45 |
void CompressBc4( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width ); |
| 46 |
void CompressBc5( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width ); |
| 47 |
|
| 48 |
-struct bc7enc_compress_block_params; |
| 49 |
- |
| 50 |
-void CompressBc7( const uint32_t* src, uint64_t* dst, uint32_t blocks, size_t width, const bc7enc_compress_block_params* params ); |
| 51 |
- |
| 52 |
#endif |