summaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
authorGravatar Ameer J2023-08-06 14:55:05 -0400
committerGravatar Ameer J2023-08-06 14:55:05 -0400
commit9058486b9b9833d0554d3e3f11a582859657b21f (patch)
treefe16d174b54119a593b43c01f89c8ff1d4e1f3cf /src/video_core/textures/decoders.cpp
parentHACK: Avoid swizzling and reuploading ASTC image every frame (diff)
downloadyuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.gz
yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.xz
yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.zip
Revert "HACK: Avoid swizzling and reuploading ASTC image every frame"
This reverts commit b18c1fb1bbbcc235e9a1cbbb2704fed2e5895e61.
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
-rw-r--r--src/video_core/textures/decoders.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp
index dde4b0904..95bcdd37b 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -88,7 +88,6 @@ void SwizzleImpl(std::span<u8> output, std::span<const u8> input, u32 width, u32
88 } 88 }
89} 89}
90 90
91
92template <bool TO_LINEAR, u32 BYTES_PER_PIXEL> 91template <bool TO_LINEAR, u32 BYTES_PER_PIXEL>
93void SwizzleSubrectImpl(std::span<u8> output, std::span<const u8> input, u32 width, u32 height, 92void SwizzleSubrectImpl(std::span<u8> output, std::span<const u8> input, u32 width, u32 height,
94 u32 depth, u32 origin_x, u32 origin_y, u32 extent_x, u32 num_lines, 93 u32 depth, u32 origin_x, u32 origin_y, u32 extent_x, u32 num_lines,
@@ -96,14 +95,6 @@ void SwizzleSubrectImpl(std::span<u8> output, std::span<const u8> input, u32 wid
96 // The origin of the transformation can be configured here, leave it as zero as the current API 95 // The origin of the transformation can be configured here, leave it as zero as the current API
97 // doesn't expose it. 96 // doesn't expose it.
98 static constexpr u32 origin_z = 0; 97 static constexpr u32 origin_z = 0;
99 static u32 last_width = 0;
100 static u32 last_height = 0;
101 if (last_width == width && last_height == height) {
102 return;
103 }
104 LOG_ERROR(Debug, "Called");
105 last_width = width;
106 last_height = height;
107 98
108 // We can configure here a custom pitch 99 // We can configure here a custom pitch
109 // As it's not exposed 'width * BYTES_PER_PIXEL' will be the expected pitch. 100 // As it's not exposed 'width * BYTES_PER_PIXEL' will be the expected pitch.