Browse Source
Merge pull request #9988 from rschlaikjer/rs-gpu-page-table-copy-elision
Pass GPU page table by reference inside TextureCache::ForEachImageInRegionGPU
pull/15/merge
Morph
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
32 additions and
31 deletions
-
src/video_core/texture_cache/texture_cache.h
|
|
@ -1616,7 +1616,8 @@ void TextureCache<P>::ForEachImageInRegionGPU(size_t as_id, GPUVAddr gpu_addr, s |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
auto& gpu_page_table = gpu_page_table_storage[*storage_id]; |
|
|
auto& gpu_page_table = gpu_page_table_storage[*storage_id]; |
|
|
ForEachGPUPage(gpu_addr, size, [this, gpu_page_table, &images, gpu_addr, size, func](u64 page) { |
|
|
|
|
|
|
|
|
ForEachGPUPage(gpu_addr, size, |
|
|
|
|
|
[this, &gpu_page_table, &images, gpu_addr, size, func](u64 page) { |
|
|
const auto it = gpu_page_table.find(page); |
|
|
const auto it = gpu_page_table.find(page); |
|
|
if (it == gpu_page_table.end()) { |
|
|
if (it == gpu_page_table.end()) { |
|
|
if constexpr (BOOL_BREAK) { |
|
|
if constexpr (BOOL_BREAK) { |
|
|
|