[video_core] Add additional check to prevent graphics corruption when triggering fast buffer incorrectly #2824
No reviewers
Labels
No labels
android
audio
bug
ci
cmake
confirmed
core
desktop
duplicate
enhancement
frontend
fw
git
graphics
loader
nv gpu
ui
vulkan
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
eden-emu/eden!2824
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fast_buffer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds an additional check to prevent graphics corruption by triggering fast buffering incorrectly. Fixes a random bug with Yoshi's shadows in Yoshi's Crafted World and possibly others as well.
Fix:
Translate TLDS: Unaligned source register R157 is not implemented@ -790,12 +790,13 @@ void BufferCache<P>::BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32++channel_state->uniform_cache_shots[0];const Binding& binding = channel_state->uniform_buffers[stage][index];const DAddr device_addr = binding.device_addr;const u32 size = (std::min)(binding.size, (*channel_state->uniform_buffer_sizes)[stage][index]);Needs
(std::min)otherwise windows clang-cl throws a tantrumFixed
48e5c9d5ab57cb902c5c57cb902c5c90bb5b9c9aPull request closed