diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-13 04:24:40 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-10-16 17:31:00 +0200 |
commit | 4e9683e9d5518a2e5dc69ddd12f20685a94646e2 (patch) | |
tree | 41bb16430adb994f0dd5ff2742830a7132b4accc /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | memory_manager: Add a method for querying the end of a mapped GPU region. (diff) | |
download | yuzu-4e9683e9d5518a2e5dc69ddd12f20685a94646e2.tar yuzu-4e9683e9d5518a2e5dc69ddd12f20685a94646e2.tar.gz yuzu-4e9683e9d5518a2e5dc69ddd12f20685a94646e2.tar.bz2 yuzu-4e9683e9d5518a2e5dc69ddd12f20685a94646e2.tar.lz yuzu-4e9683e9d5518a2e5dc69ddd12f20685a94646e2.tar.xz yuzu-4e9683e9d5518a2e5dc69ddd12f20685a94646e2.tar.zst yuzu-4e9683e9d5518a2e5dc69ddd12f20685a94646e2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index a15fb7b07..f6f7aad82 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -742,7 +742,9 @@ struct SurfaceParams { other.depth); } - VAddr addr; + /// Initializes parameters for caching, should be called after everything has been initialized + void InitCacheParameters(Tegra::GPUVAddr gpu_addr); + bool is_tiled; u32 block_width; u32 block_height; @@ -754,11 +756,14 @@ struct SurfaceParams { u32 height; u32 depth; u32 unaligned_height; - std::size_t size_in_bytes_total; - std::size_t size_in_bytes_2d; SurfaceTarget target; u32 max_mip_level; + // Parameters used for caching + VAddr addr; + std::size_t size_in_bytes_total; + std::size_t size_in_bytes_2d; + // Render target specific parameters, not used in caching struct { u32 index; |