mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-23 16:15:46 +01:00
gl_rasterizer_cache: Use GL_STREAM_COPY for PBOs
Since the data is doing the path CPU -> GPU -> GPU copy is the most approximate hint. Using GL_STREAM_DRAW generated a performance warning on Nvidia's stack. Changing this hint removed the warning.
This commit is contained in:
parent
a01832b2e0
commit
fc8a8789da
@ -452,7 +452,7 @@ static void CopySurface(const Surface& src_surface, const Surface& dst_surface,
|
|||||||
const std::size_t buffer_size = std::max(src_params.size_in_bytes, dst_params.size_in_bytes);
|
const std::size_t buffer_size = std::max(src_params.size_in_bytes, dst_params.size_in_bytes);
|
||||||
|
|
||||||
glBindBuffer(GL_PIXEL_PACK_BUFFER, copy_pbo_handle);
|
glBindBuffer(GL_PIXEL_PACK_BUFFER, copy_pbo_handle);
|
||||||
glBufferData(GL_PIXEL_PACK_BUFFER, buffer_size, nullptr, GL_STREAM_DRAW);
|
glBufferData(GL_PIXEL_PACK_BUFFER, buffer_size, nullptr, GL_STREAM_COPY);
|
||||||
if (source_format.compressed) {
|
if (source_format.compressed) {
|
||||||
glGetCompressedTextureImage(src_surface->Texture().handle, src_attachment,
|
glGetCompressedTextureImage(src_surface->Texture().handle, src_attachment,
|
||||||
static_cast<GLsizei>(src_params.size_in_bytes), nullptr);
|
static_cast<GLsizei>(src_params.size_in_bytes), nullptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user