diff options
| author | 2021-07-20 14:02:08 -0300 | |
|---|---|---|
| committer | 2021-07-20 14:02:11 -0300 | |
| commit | 2e2d6cf5e58685933f5dc4c89294c56051b1553c (patch) | |
| tree | 87ee5afcac99793c56f723b1be1e3d842906d01a | |
| parent | Merge pull request #6580 from ReinUsesLisp/xfb-radv (diff) | |
| download | yuzu-2e2d6cf5e58685933f5dc4c89294c56051b1553c.tar.gz yuzu-2e2d6cf5e58685933f5dc4c89294c56051b1553c.tar.xz yuzu-2e2d6cf5e58685933f5dc4c89294c56051b1553c.zip | |
gl_texture_cache: Workaround slow PBO downloads on radeonsi
There's an optimization bug on non-git mesa versions where not
specifying GL_CLIENT_STORAGE_BIT causes very slow reads on the CPU
side.
Add this bit for all vendors.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h index 25fe61566..cf3b789e3 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.h +++ b/src/video_core/renderer_opengl/gl_texture_cache.h | |||
| @@ -122,7 +122,7 @@ private: | |||
| 122 | bool has_broken_texture_view_formats = false; | 122 | bool has_broken_texture_view_formats = false; |
| 123 | 123 | ||
| 124 | StagingBuffers upload_buffers{GL_MAP_WRITE_BIT, GL_MAP_WRITE_BIT | GL_MAP_FLUSH_EXPLICIT_BIT}; | 124 | StagingBuffers upload_buffers{GL_MAP_WRITE_BIT, GL_MAP_WRITE_BIT | GL_MAP_FLUSH_EXPLICIT_BIT}; |
| 125 | StagingBuffers download_buffers{GL_MAP_READ_BIT, GL_MAP_READ_BIT}; | 125 | StagingBuffers download_buffers{GL_MAP_READ_BIT | GL_CLIENT_STORAGE_BIT, GL_MAP_READ_BIT}; |
| 126 | 126 | ||
| 127 | OGLTexture null_image_1d_array; | 127 | OGLTexture null_image_1d_array; |
| 128 | OGLTexture null_image_cube_array; | 128 | OGLTexture null_image_cube_array; |