diff options
| author | 2019-07-09 19:49:53 -0400 | |
|---|---|---|
| committer | 2019-07-14 12:00:29 -0400 | |
| commit | 5c1e1a148ee6be4f8c33264d210467da92702c6a (patch) | |
| tree | 11b1cb7187c075ddd7ec8a4d76891c2365ce7309 /src | |
| parent | Texture_Cache: Correct Linear Structural Match. (diff) | |
| download | yuzu-5c1e1a148ee6be4f8c33264d210467da92702c6a.tar.gz yuzu-5c1e1a148ee6be4f8c33264d210467da92702c6a.tar.xz yuzu-5c1e1a148ee6be4f8c33264d210467da92702c6a.zip | |
Gl_Texture_Cache: Measure Buffer Copy Times
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index 08ae1a429..c6c76de08 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp | |||
| @@ -31,6 +31,7 @@ using VideoCore::Surface::SurfaceType; | |||
| 31 | 31 | ||
| 32 | MICROPROFILE_DEFINE(OpenGL_Texture_Upload, "OpenGL", "Texture Upload", MP_RGB(128, 192, 128)); | 32 | MICROPROFILE_DEFINE(OpenGL_Texture_Upload, "OpenGL", "Texture Upload", MP_RGB(128, 192, 128)); |
| 33 | MICROPROFILE_DEFINE(OpenGL_Texture_Download, "OpenGL", "Texture Download", MP_RGB(128, 192, 128)); | 33 | MICROPROFILE_DEFINE(OpenGL_Texture_Download, "OpenGL", "Texture Download", MP_RGB(128, 192, 128)); |
| 34 | MICROPROFILE_DEFINE(OpenGL_Texture_Buffer_Copy, "OpenGL", "Texture Buffer Copy", MP_RGB(128, 192, 128)); | ||
| 34 | 35 | ||
| 35 | namespace { | 36 | namespace { |
| 36 | 37 | ||
| @@ -535,6 +536,7 @@ void TextureCacheOpenGL::ImageBlit(View& src_view, View& dst_view, | |||
| 535 | } | 536 | } |
| 536 | 537 | ||
| 537 | void TextureCacheOpenGL::BufferCopy(Surface& src_surface, Surface& dst_surface) { | 538 | void TextureCacheOpenGL::BufferCopy(Surface& src_surface, Surface& dst_surface) { |
| 539 | MICROPROFILE_SCOPE(OpenGL_Texture_Buffer_Copy); | ||
| 538 | const auto& src_params = src_surface->GetSurfaceParams(); | 540 | const auto& src_params = src_surface->GetSurfaceParams(); |
| 539 | const auto& dst_params = dst_surface->GetSurfaceParams(); | 541 | const auto& dst_params = dst_surface->GetSurfaceParams(); |
| 540 | UNIMPLEMENTED_IF(src_params.num_levels > 1 || dst_params.num_levels > 1); | 542 | UNIMPLEMENTED_IF(src_params.num_levels > 1 || dst_params.num_levels > 1); |