summaryrefslogtreecommitdiff
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-09-25 21:46:34 -0300
committerGravatar FernandoS272019-10-25 09:01:31 -0400
commitec85648af3316d5e43c7b57fca55d0dad3d03f96 (patch)
treeb5cc21e8b027a27e69c8197202f98d0c36706978 /src/video_core/shader
parentconst_buffer_locker: Minor style changes (diff)
downloadyuzu-ec85648af3316d5e43c7b57fca55d0dad3d03f96.tar.gz
yuzu-ec85648af3316d5e43c7b57fca55d0dad3d03f96.tar.xz
yuzu-ec85648af3316d5e43c7b57fca55d0dad3d03f96.zip
gl_shader_disk_cache: Store and load fast BRX
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/const_buffer_locker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/const_buffer_locker.cpp b/src/video_core/shader/const_buffer_locker.cpp
index ebeba102d..fda9e3c38 100644
--- a/src/video_core/shader/const_buffer_locker.cpp
+++ b/src/video_core/shader/const_buffer_locker.cpp
@@ -90,14 +90,14 @@ bool ConstBufferLocker::IsConsistent() const {
90 [this](const auto& sampler) { 90 [this](const auto& sampler) {
91 const auto [key, value] = sampler; 91 const auto [key, value] = sampler;
92 const auto other_value = engine->AccessBoundSampler(stage, key); 92 const auto other_value = engine->AccessBoundSampler(stage, key);
93 return value.raw == other_value.raw; 93 return value == other_value;
94 }) && 94 }) &&
95 std::all_of( 95 std::all_of(
96 bindless_samplers.begin(), bindless_samplers.end(), [this](const auto& sampler) { 96 bindless_samplers.begin(), bindless_samplers.end(), [this](const auto& sampler) {
97 const auto [cbuf, offset] = sampler.first; 97 const auto [cbuf, offset] = sampler.first;
98 const auto value = sampler.second; 98 const auto value = sampler.second;
99 const auto other_value = engine->AccessBindlessSampler(stage, cbuf, offset); 99 const auto other_value = engine->AccessBindlessSampler(stage, cbuf, offset);
100 return value.raw == other_value.raw; 100 return value == other_value;
101 }); 101 });
102} 102}
103 103