summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nim/nim.cpp14
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp2
2 files changed, 14 insertions, 2 deletions
diff --git a/src/core/hle/service/nim/nim.cpp b/src/core/hle/service/nim/nim.cpp
index d33b26129..d16223064 100644
--- a/src/core/hle/service/nim/nim.cpp
+++ b/src/core/hle/service/nim/nim.cpp
@@ -217,7 +217,7 @@ public:
217 {1, nullptr, "RefreshDebugAvailability"}, 217 {1, nullptr, "RefreshDebugAvailability"},
218 {2, nullptr, "ClearDebugResponse"}, 218 {2, nullptr, "ClearDebugResponse"},
219 {3, nullptr, "RegisterDebugResponse"}, 219 {3, nullptr, "RegisterDebugResponse"},
220 {4, nullptr, "IsLargeResourceAvailable"}, 220 {4, &NIM_ECA::IsLargeResourceAvailable, "IsLargeResourceAvailable"},
221 }; 221 };
222 // clang-format on 222 // clang-format on
223 223
@@ -231,6 +231,18 @@ private:
231 rb.Push(RESULT_SUCCESS); 231 rb.Push(RESULT_SUCCESS);
232 rb.PushIpcInterface<IShopServiceAccessServer>(system); 232 rb.PushIpcInterface<IShopServiceAccessServer>(system);
233 } 233 }
234
235 void IsLargeResourceAvailable(Kernel::HLERequestContext& ctx) {
236 IPC::RequestParser rp{ctx};
237
238 const auto unknown{rp.Pop<u64>()};
239
240 LOG_INFO(Service_NIM, "(STUBBED) called, unknown={}", unknown);
241
242 IPC::ResponseBuilder rb{ctx, 3};
243 rb.Push(RESULT_SUCCESS);
244 rb.Push(false);
245 }
234}; 246};
235 247
236class NIM_SHP final : public ServiceFramework<NIM_SHP> { 248class NIM_SHP final : public ServiceFramework<NIM_SHP> {
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 0c97a8988..ccbdfe967 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -878,7 +878,7 @@ private:
878 } 878 }
879 879
880 u32 binding = device.GetBaseBindings(stage).uniform_buffer; 880 u32 binding = device.GetBaseBindings(stage).uniform_buffer;
881 for (const auto [index, info] : ir.GetConstantBuffers()) { 881 for (const auto& [index, info] : ir.GetConstantBuffers()) {
882 const u32 num_elements = Common::AlignUp(info.GetSize(), 4) / 4; 882 const u32 num_elements = Common::AlignUp(info.GetSize(), 4) / 4;
883 const u32 size = info.IsIndirect() ? MAX_CONSTBUFFER_ELEMENTS : num_elements; 883 const u32 size = info.IsIndirect() ? MAX_CONSTBUFFER_ELEMENTS : num_elements;
884 code.AddLine("layout (std140, binding = {}) uniform {} {{", binding++, 884 code.AddLine("layout (std140, binding = {}) uniform {} {{", binding++,