summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorunknown <FreddyFunk@users.noreply.github.com>2019-02-09 09:12:30 +0100
committerFreddyFunk <FreddyFunk@users.noreply.github.com>2019-03-29 18:13:00 +0100
commit4fad477aeb98a69a51585d3bafd32dd3ccd6c56f (patch)
treec24e0f135318ca936e22500271c537324214078f /src/video_core
parentAddressed feedback (diff)
downloadyuzu-4fad477aeb98a69a51585d3bafd32dd3ccd6c56f.tar
yuzu-4fad477aeb98a69a51585d3bafd32dd3ccd6c56f.tar.gz
yuzu-4fad477aeb98a69a51585d3bafd32dd3ccd6c56f.tar.bz2
yuzu-4fad477aeb98a69a51585d3bafd32dd3ccd6c56f.tar.lz
yuzu-4fad477aeb98a69a51585d3bafd32dd3ccd6c56f.tar.xz
yuzu-4fad477aeb98a69a51585d3bafd32dd3ccd6c56f.tar.zst
yuzu-4fad477aeb98a69a51585d3bafd32dd3ccd6c56f.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_disk_cache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp
index 9218d6aaf..d2d979997 100644
--- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp
@@ -474,8 +474,8 @@ void ShaderDiskCacheOpenGL::SaveDecompiled(u64 unique_identifier, const std::str
if (!IsUsable())
return;
- const std::vector<u8> compressed_code{Common::Compression::CompressDataLZ4HCMax(
- reinterpret_cast<const u8*>(code.data()), code.size())};
+ const std::vector<u8> compressed_code{Common::Compression::CompressDataLZ4HC(
+ reinterpret_cast<const u8*>(code.data()), code.size(), 9)};
if (compressed_code.empty()) {
LOG_ERROR(Render_OpenGL, "Failed to compress GLSL code - skipping shader {:016x}",
unique_identifier);
@@ -506,7 +506,7 @@ void ShaderDiskCacheOpenGL::SaveDump(const ShaderDiskCacheUsage& usage, GLuint p
glGetProgramBinary(program, binary_length, nullptr, &binary_format, binary.data());
const std::vector<u8> compressed_binary =
- Common::Compression::CompressDataLZ4HCMax(binary.data(), binary.size());
+ Common::Compression::CompressDataLZ4HC(binary.data(), binary.size(), 9);
if (compressed_binary.empty()) {
LOG_ERROR(Render_OpenGL, "Failed to compress binary program in shader={:016x}",