mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-23 19:51:19 +00:00
Make sure to not even compile the definition for the SIMD function.
This commit is contained in:
parent
ef2a370fc6
commit
341842d725
|
@ -15,6 +15,8 @@
|
||||||
//
|
//
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include "BC7Config.h"
|
||||||
|
|
||||||
namespace BC7C
|
namespace BC7C
|
||||||
{
|
{
|
||||||
// This is the error metric that is applied to our error measurement algorithm
|
// This is the error metric that is applied to our error measurement algorithm
|
||||||
|
@ -52,10 +54,12 @@ namespace BC7C
|
||||||
// the image in pixels.
|
// the image in pixels.
|
||||||
void CompressImageBC7(const unsigned char *inBuf, unsigned char *outBuf, unsigned int width, unsigned int height);
|
void CompressImageBC7(const unsigned char *inBuf, unsigned char *outBuf, unsigned int width, unsigned int height);
|
||||||
|
|
||||||
|
#ifdef HAS_SSE_41
|
||||||
// Compress the image given as RGBA data to BC7 format using an algorithm optimized for SIMD
|
// Compress the image given as RGBA data to BC7 format using an algorithm optimized for SIMD
|
||||||
// enabled platforms. Width and Height are the dimensions of the image in pixels.
|
// enabled platforms. Width and Height are the dimensions of the image in pixels.
|
||||||
void CompressImageBC7SIMD(const unsigned char* inBuf, unsigned char* outBuf, unsigned int width, unsigned int height);
|
void CompressImageBC7SIMD(const unsigned char* inBuf, unsigned char* outBuf, unsigned int width, unsigned int height);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Decompress the image given as BC7 data to R8G8B8A8 format. Width and Height are the dimensions of the image in pixels.
|
// Decompress the image given as BC7 data to R8G8B8A8 format. Width and Height are the dimensions of the image in pixels.
|
||||||
void DecompressImageBC7SIMD(const unsigned char* inBuf, unsigned char* outBuf, unsigned int width, unsigned int height);
|
void DecompressImageBC7(const unsigned char* inBuf, unsigned char* outBuf, unsigned int width, unsigned int height);
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,12 +71,16 @@ ThreadGroup::~ThreadGroup() {
|
||||||
|
|
||||||
unsigned int ThreadGroup::GetCompressedBlockSize() {
|
unsigned int ThreadGroup::GetCompressedBlockSize() {
|
||||||
if(m_Func == BC7C::CompressImageBC7) return 16;
|
if(m_Func == BC7C::CompressImageBC7) return 16;
|
||||||
|
#ifdef HAS_SSE_41
|
||||||
if(m_Func == BC7C::CompressImageBC7SIMD) return 16;
|
if(m_Func == BC7C::CompressImageBC7SIMD) return 16;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int ThreadGroup::GetUncompressedBlockSize() {
|
unsigned int ThreadGroup::GetUncompressedBlockSize() {
|
||||||
if(m_Func == BC7C::CompressImageBC7) return 64;
|
if(m_Func == BC7C::CompressImageBC7) return 64;
|
||||||
|
#ifdef HAS_SSE_41
|
||||||
if(m_Func == BC7C::CompressImageBC7SIMD) return 64;
|
if(m_Func == BC7C::CompressImageBC7SIMD) return 64;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThreadGroup::Start() {
|
void ThreadGroup::Start() {
|
||||||
|
|
Loading…
Reference in a new issue