diff --git a/README.md b/README.md index 108f19dd3..8db151651 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 3691. +This is the source code for early-access 3692. ## Legal Notice diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index 765f17285..23f0d9817 100755 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -801,8 +801,7 @@ void BufferCache
::BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32 !HasFastUniformBufferBound(stage, binding_index) || channel_state->uniform_buffer_binding_sizes[stage][binding_index] != size; if (should_fast_bind) { - // We only have to bind when the currently bound buffer is not the fast - // version + // We only have to bind when the currently bound buffer is not the fast version channel_state->fast_bound_uniform_buffers[stage] |= 1U << binding_index; channel_state->uniform_buffer_binding_sizes[stage][binding_index] = size; runtime.BindFastUniformBuffer(stage, binding_index, size); @@ -905,7 +904,6 @@ void BufferCache
::BindHostTransformFeedbackBuffers() {
return;
}
HostBindings ::BindHostTransformFeedbackBuffers() {
host_bindings.buffers.push_back(&buffer);
host_bindings.offsets.push_back(offset);
host_bindings.sizes.push_back(binding.size);
- host_bindings.min_index = std::min(host_bindings.min_index, index);
- host_bindings.max_index = std::max(host_bindings.max_index, index);
- any_valid = true;
}
- if (any_valid) {
- host_bindings.max_index++;
+ if (host_bindings.buffers.size() > 0) {
runtime.BindTransformFeedbackBuffers(host_bindings);
}
}
@@ -1322,8 +1316,8 @@ typename BufferCache ::OverlapResult BufferCache ::ResolveOverlaps(VAddr cpu
}
stream_score += overlap.StreamScore();
if (stream_score > STREAM_LEAP_THRESHOLD && !has_stream_leap) {
- // When this memory region has been joined a bunch of times, we assume it's being
- // used as a stream buffer. Increase the size to skip constantly recreating buffers.
+ // When this memory region has been joined a bunch of times, we assume it's being used
+ // as a stream buffer. Increase the size to skip constantly recreating buffers.
has_stream_leap = true;
if (expands_right) {
begin -= CACHING_PAGESIZE * 256;
@@ -1717,17 +1711,16 @@ Binding BufferCache ::StorageBufferBinding(GPUVAddr ssbo_addr, u32 cbuf_index,
const GPUVAddr gpu_addr = gpu_memory->Read