diff options
| author | unknown <FreddyFunk@users.noreply.github.com> | 2019-02-07 19:18:49 +0100 | 
|---|---|---|
| committer | unknown <FreddyFunk@users.noreply.github.com> | 2019-03-29 16:42:19 +0100 | 
| commit | 74cee1b65d1c27006c44051c7c8228bbb4827eb7 (patch) | |
| tree | 3a711c8f692a7d80bec7accd23e359cc3d4fb542 /src/video_core | |
| parent | 798d76f4c7018174e58702fb06a042dc8c84f0be (diff) | |
gl_shader_disk_cache: Use better compression for transferable and precompiled shader disk chache files
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | 4 | 
1 files changed, 2 insertions, 2 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 a74b66a90..0c8001b19 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp @@ -475,7 +475,7 @@ void ShaderDiskCacheOpenGL::SaveDecompiled(u64 unique_identifier, const std::str          return;      const std::vector<u8> compressed_code{ -        Compression::CompressDataLZ4(reinterpret_cast<const u8*>(code.data()), code.size())}; +        Compression::CompressDataLZ4(reinterpret_cast<const u8*>(code.data()), code.size(), true)};      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 = -        Compression::CompressDataLZ4(binary.data(), binary.size()); +        Compression::CompressDataLZ4(binary.data(), binary.size(), true);      if (compressed_binary.empty()) {          LOG_ERROR(Render_OpenGL, "Failed to compress binary program in shader={:016x}", | 
