diff options
| author | 2021-02-09 17:30:18 -0500 | |
|---|---|---|
| committer | 2021-02-09 17:30:20 -0500 | |
| commit | 783dc9e112cec88033410eced44a3da81472cc11 (patch) | |
| tree | a3a4150f417bcd183e2aac77b1423bb4cf8721cb /src | |
| parent | Merge pull request #5339 from german77/interactive (diff) | |
| download | yuzu-783dc9e112cec88033410eced44a3da81472cc11.tar.gz yuzu-783dc9e112cec88033410eced44a3da81472cc11.tar.xz yuzu-783dc9e112cec88033410eced44a3da81472cc11.zip | |
texture_cache/util: Remove unused functions
Silences a few warnings on clang 12.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/texture_cache/util.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp index bb2cdef81..a0bc1f7b6 100644 --- a/src/video_core/texture_cache/util.cpp +++ b/src/video_core/texture_cache/util.cpp | |||
| @@ -169,40 +169,6 @@ template <u32 GOB_EXTENT> | |||
| 169 | return Common::DivCeil(AdjustMipSize(size, level), block_size); | 169 | return Common::DivCeil(AdjustMipSize(size, level), block_size); |
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | [[nodiscard]] constexpr u32 LayerSize(const TICEntry& config, PixelFormat format) { | ||
| 173 | return config.Width() * config.Height() * BytesPerBlock(format); | ||
| 174 | } | ||
| 175 | |||
| 176 | [[nodiscard]] constexpr bool HasTwoDimsPerLayer(TextureType type) { | ||
| 177 | switch (type) { | ||
| 178 | case TextureType::Texture2D: | ||
| 179 | case TextureType::Texture2DArray: | ||
| 180 | case TextureType::Texture2DNoMipmap: | ||
| 181 | case TextureType::Texture3D: | ||
| 182 | case TextureType::TextureCubeArray: | ||
| 183 | case TextureType::TextureCubemap: | ||
| 184 | return true; | ||
| 185 | case TextureType::Texture1D: | ||
| 186 | case TextureType::Texture1DArray: | ||
| 187 | case TextureType::Texture1DBuffer: | ||
| 188 | return false; | ||
| 189 | } | ||
| 190 | return false; | ||
| 191 | } | ||
| 192 | |||
| 193 | [[nodiscard]] constexpr bool HasTwoDimsPerLayer(ImageType type) { | ||
| 194 | switch (type) { | ||
| 195 | case ImageType::e2D: | ||
| 196 | case ImageType::e3D: | ||
| 197 | case ImageType::Linear: | ||
| 198 | return true; | ||
| 199 | case ImageType::e1D: | ||
| 200 | case ImageType::Buffer: | ||
| 201 | return false; | ||
| 202 | } | ||
| 203 | UNREACHABLE_MSG("Invalid image type={}", static_cast<int>(type)); | ||
| 204 | } | ||
| 205 | |||
| 206 | [[nodiscard]] constexpr std::pair<int, int> Samples(int num_samples) { | 172 | [[nodiscard]] constexpr std::pair<int, int> Samples(int num_samples) { |
| 207 | switch (num_samples) { | 173 | switch (num_samples) { |
| 208 | case 1: | 174 | case 1: |