diff options
Diffstat (limited to 'src/video_core/shader/track.cpp')
| -rw-r--r-- | src/video_core/shader/track.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/track.cpp b/src/video_core/shader/track.cpp index b1a0aa00c..831219841 100644 --- a/src/video_core/shader/track.cpp +++ b/src/video_core/shader/track.cpp | |||
| @@ -81,7 +81,7 @@ std::tuple<Node, TrackSampler> ShaderIR::TrackBindlessSampler(Node tracked, cons | |||
| 81 | MakeTrackSampler<BindlessSamplerNode>(cbuf->GetIndex(), immediate->GetValue()); | 81 | MakeTrackSampler<BindlessSamplerNode>(cbuf->GetIndex(), immediate->GetValue()); |
| 82 | return {tracked, track}; | 82 | return {tracked, track}; |
| 83 | } else if (const auto operation = std::get_if<OperationNode>(&*offset)) { | 83 | } else if (const auto operation = std::get_if<OperationNode>(&*offset)) { |
| 84 | auto bound_buffer = locker.ObtainBoundBuffer(); | 84 | const auto bound_buffer = registry.ObtainBoundBuffer(); |
| 85 | if (!bound_buffer) { | 85 | if (!bound_buffer) { |
| 86 | return {}; | 86 | return {}; |
| 87 | } | 87 | } |
| @@ -94,7 +94,7 @@ std::tuple<Node, TrackSampler> ShaderIR::TrackBindlessSampler(Node tracked, cons | |||
| 94 | } | 94 | } |
| 95 | auto [gpr, base_offset] = *pair; | 95 | auto [gpr, base_offset] = *pair; |
| 96 | const auto offset_inm = std::get_if<ImmediateNode>(&*base_offset); | 96 | const auto offset_inm = std::get_if<ImmediateNode>(&*base_offset); |
| 97 | const auto& gpu_driver = locker.AccessGuestDriverProfile(); | 97 | const auto& gpu_driver = registry.AccessGuestDriverProfile(); |
| 98 | const u32 bindless_cv = NewCustomVariable(); | 98 | const u32 bindless_cv = NewCustomVariable(); |
| 99 | const Node op = | 99 | const Node op = |
| 100 | Operation(OperationCode::UDiv, gpr, Immediate(gpu_driver.GetTextureHandlerSize())); | 100 | Operation(OperationCode::UDiv, gpr, Immediate(gpu_driver.GetTextureHandlerSize())); |