summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/astc.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-19 06:55:13 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-06-19 15:00:33 +0200
commit31b125ef578dd5df4e289d1057154dd34f73cb19 (patch)
treec44e0bfe5d201587da1de1351692617f24769b98 /src/video_core/textures/astc.cpp
parentMerge pull request #6484 from CaptV0rt3x/discord-rpc (diff)
downloadyuzu-31b125ef578dd5df4e289d1057154dd34f73cb19.tar
yuzu-31b125ef578dd5df4e289d1057154dd34f73cb19.tar.gz
yuzu-31b125ef578dd5df4e289d1057154dd34f73cb19.tar.bz2
yuzu-31b125ef578dd5df4e289d1057154dd34f73cb19.tar.lz
yuzu-31b125ef578dd5df4e289d1057154dd34f73cb19.tar.xz
yuzu-31b125ef578dd5df4e289d1057154dd34f73cb19.tar.zst
yuzu-31b125ef578dd5df4e289d1057154dd34f73cb19.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/textures/astc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp
index 9b2177ebd..b6e2022f2 100644
--- a/src/video_core/textures/astc.cpp
+++ b/src/video_core/textures/astc.cpp
@@ -551,6 +551,8 @@ static void FillError(std::span<u32> outBuf, u32 blockWidth, u32 blockHeight) {
}
}
}
+
+static constexpr auto REPLICATE_BYTE_TO_16_TABLE = MakeReplicateTable<u32, 8, 16>();
static constexpr u32 ReplicateByteTo16(std::size_t value) {
return REPLICATE_BYTE_TO_16_TABLE[value];
}