Browse Source
Merge pull request #13006 from liamwhite/a-hat-in-vram
buffer_cache: use mapped range with large vertex buffer size
pull/15/merge
Narr the Reg
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/video_core/buffer_cache/buffer_cache.h
|
|
|
@ -1130,7 +1130,7 @@ void BufferCache<P>::UpdateVertexBuffer(u32 index) { |
|
|
|
channel_state->vertex_buffers[index] = NULL_BINDING; |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!gpu_memory->IsWithinGPUAddressRange(gpu_addr_end)) { |
|
|
|
if (!gpu_memory->IsWithinGPUAddressRange(gpu_addr_end) || size >= 64_MiB) { |
|
|
|
size = static_cast<u32>(gpu_memory->MaxContinuousRange(gpu_addr_begin, size)); |
|
|
|
} |
|
|
|
const BufferId buffer_id = FindBuffer(*device_addr, size); |
|
|
|
|