mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-14 19:44:58 +00:00
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.
This commit is contained in:
parent
16f983d33a
commit
2e2d6cf5e5
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ private:
|
||||||
bool has_broken_texture_view_formats = false;
|
bool has_broken_texture_view_formats = false;
|
||||||
|
|
||||||
StagingBuffers upload_buffers{GL_MAP_WRITE_BIT, GL_MAP_WRITE_BIT | GL_MAP_FLUSH_EXPLICIT_BIT};
|
StagingBuffers upload_buffers{GL_MAP_WRITE_BIT, GL_MAP_WRITE_BIT | GL_MAP_FLUSH_EXPLICIT_BIT};
|
||||||
StagingBuffers download_buffers{GL_MAP_READ_BIT, GL_MAP_READ_BIT};
|
StagingBuffers download_buffers{GL_MAP_READ_BIT | GL_CLIENT_STORAGE_BIT, GL_MAP_READ_BIT};
|
||||||
|
|
||||||
OGLTexture null_image_1d_array;
|
OGLTexture null_image_1d_array;
|
||||||
OGLTexture null_image_cube_array;
|
OGLTexture null_image_cube_array;
|
||||||
|
|
Loading…
Reference in a new issue