summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/decoders.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-30 03:34:00 +0100
committerGitHub <noreply@github.com>2018-10-30 03:34:00 +0100
commitc5a849212f6a1ee2945e4584bcda50a082872336 (patch)
tree580b80a9c68c78f6e28b49bff2263fe421377972 /src/video_core/textures/decoders.h
parentMerge pull request #1617 from FearlessTobi/fix-stretch-delay (diff)
parentFixed black textures, pixelation and we no longer require to auto-generate mipmaps (diff)
downloadyuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar
yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar.gz
yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar.bz2
yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar.lz
yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar.xz
yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.tar.zst
yuzu-c5a849212f6a1ee2945e4584bcda50a082872336.zip
Diffstat (limited to 'src/video_core/textures/decoders.h')
-rw-r--r--src/video_core/textures/decoders.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h
index 4726f54a5..b390219e4 100644
--- a/src/video_core/textures/decoders.h
+++ b/src/video_core/textures/decoders.h
@@ -10,6 +10,12 @@
namespace Tegra::Texture {
+// GOBSize constant. Calculated by 64 bytes in x multiplied by 8 y coords, represents
+// an small rect of (64/bytes_per_pixel)X8.
+inline std::size_t GetGOBSize() {
+ return 512;
+}
+
/**
* Unswizzles a swizzled texture without changing its format.
*/