summaryrefslogtreecommitdiff
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorGravatar lat9nq2023-05-03 20:42:33 -0400
committerGravatar lat9nq2023-07-21 10:56:07 -0400
commit5cffa342884df531d911555f7b3db9d2f6d1d1f0 (patch)
tree7f1d36c9f291a528edf9ccf7e85f34d2d108b332 /src/video_core/renderer_opengl
parentMerge pull request #11096 from german77/amiibooo (diff)
downloadyuzu-5cffa342884df531d911555f7b3db9d2f6d1d1f0.tar.gz
yuzu-5cffa342884df531d911555f7b3db9d2f6d1d1f0.tar.xz
yuzu-5cffa342884df531d911555f7b3db9d2f6d1d1f0.zip
settings,video_core: Consolidate ASTC decoding options
Just puts them all neatly into one place.
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_texture_cache.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp
index 3b446be07..38ae12d8e 100644
--- a/src/video_core/renderer_opengl/gl_texture_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp
@@ -232,10 +232,9 @@ void ApplySwizzle(GLuint handle, PixelFormat format, std::array<SwizzleSource, 4
232[[nodiscard]] bool CanBeAccelerated(const TextureCacheRuntime& runtime, 232[[nodiscard]] bool CanBeAccelerated(const TextureCacheRuntime& runtime,
233 const VideoCommon::ImageInfo& info) { 233 const VideoCommon::ImageInfo& info) {
234 if (IsPixelFormatASTC(info.format) && info.size.depth == 1 && !runtime.HasNativeASTC()) { 234 if (IsPixelFormatASTC(info.format) && info.size.depth == 1 && !runtime.HasNativeASTC()) {
235 return Settings::values.accelerate_astc.GetValue() && 235 return Settings::values.accelerate_astc.GetValue() == Settings::AstcDecodeMode::GPU &&
236 Settings::values.astc_recompression.GetValue() == 236 Settings::values.astc_recompression.GetValue() ==
237 Settings::AstcRecompression::Uncompressed && 237 Settings::AstcRecompression::Uncompressed;
238 !Settings::values.async_astc.GetValue();
239 } 238 }
240 // Disable other accelerated uploads for now as they don't implement swizzled uploads 239 // Disable other accelerated uploads for now as they don't implement swizzled uploads
241 return false; 240 return false;
@@ -267,7 +266,8 @@ void ApplySwizzle(GLuint handle, PixelFormat format, std::array<SwizzleSource, 4
267[[nodiscard]] bool CanBeDecodedAsync(const TextureCacheRuntime& runtime, 266[[nodiscard]] bool CanBeDecodedAsync(const TextureCacheRuntime& runtime,
268 const VideoCommon::ImageInfo& info) { 267 const VideoCommon::ImageInfo& info) {
269 if (IsPixelFormatASTC(info.format) && !runtime.HasNativeASTC()) { 268 if (IsPixelFormatASTC(info.format) && !runtime.HasNativeASTC()) {
270 return Settings::values.async_astc.GetValue(); 269 return Settings::values.accelerate_astc.GetValue() ==
270 Settings::AstcDecodeMode::CPUAsynchronous;
271 } 271 }
272 return false; 272 return false;
273} 273}