mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-22 17:03:44 +00:00
Change the encoders to assume block stream order
This commit is contained in:
parent
a076d1efb8
commit
db6e76f1b3
2 changed files with 9 additions and 8 deletions
|
@ -1402,12 +1402,12 @@ namespace BC7C
|
||||||
{
|
{
|
||||||
for(int i = 0; i < width; i += 4)
|
for(int i = 0; i < width; i += 4)
|
||||||
{
|
{
|
||||||
ExtractBlock(inBuf + i * 4, width, block);
|
// ExtractBlock(inBuf + i * 4, width, block);
|
||||||
CompressBC7Block(block, outBuf);
|
CompressBC7Block((const uint32 *)inBuf, outBuf);
|
||||||
|
BC7CompressionMode::NumUses[gBestMode]++;
|
||||||
|
|
||||||
BC7CompressionMode::NumUses[gBestMode]++;
|
outBuf += 16;
|
||||||
|
inBuf += 64;
|
||||||
outBuf += 16;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -991,9 +991,10 @@ namespace BC7C
|
||||||
{
|
{
|
||||||
for(int i = 0; i < width; i += 4)
|
for(int i = 0; i < width; i += 4)
|
||||||
{
|
{
|
||||||
ExtractBlock(inBuf + i * 4, width, block);
|
CompressBC7Block((const uint32 *)inBuf, outBuf);
|
||||||
CompressBC7Block(block, outBuf);
|
|
||||||
outBuf += 16;
|
outBuf += 16;
|
||||||
|
inBuf += 64;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue