diff options
| author | 2019-01-29 23:30:22 -0500 | |
|---|---|---|
| committer | 2019-01-30 11:11:32 -0500 | |
| commit | 1d11def9c46dc9c81af01bc55052b51e8028126e (patch) | |
| tree | bfaee8bb24a1b4e7b73842803ee5a846a51749d7 /src/core/hle/service/vi | |
| parent | Merge pull request #2070 from ReinUsesLisp/cubearray-view (diff) | |
| download | yuzu-1d11def9c46dc9c81af01bc55052b51e8028126e.tar.gz yuzu-1d11def9c46dc9c81af01bc55052b51e8028126e.tar.xz yuzu-1d11def9c46dc9c81af01bc55052b51e8028126e.zip | |
service/nvflinger: Rename Get prefix on function to Find
This more accurately describes what the function is actually attempting
to do (it's not a simple trivial getter).
Diffstat (limited to 'src/core/hle/service/vi')
| -rw-r--r-- | src/core/hle/service/vi/vi.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 0f2c25182..fe08c38f2 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp | |||
| @@ -524,7 +524,7 @@ private: | |||
| 524 | LOG_DEBUG(Service_VI, "called. id=0x{:08X} transaction={:X}, flags=0x{:08X}", id, | 524 | LOG_DEBUG(Service_VI, "called. id=0x{:08X} transaction={:X}, flags=0x{:08X}", id, |
| 525 | static_cast<u32>(transaction), flags); | 525 | static_cast<u32>(transaction), flags); |
| 526 | 526 | ||
| 527 | auto buffer_queue = nv_flinger->GetBufferQueue(id); | 527 | auto buffer_queue = nv_flinger->FindBufferQueue(id); |
| 528 | 528 | ||
| 529 | if (transaction == TransactionId::Connect) { | 529 | if (transaction == TransactionId::Connect) { |
| 530 | IGBPConnectRequestParcel request{ctx.ReadBuffer()}; | 530 | IGBPConnectRequestParcel request{ctx.ReadBuffer()}; |
| @@ -558,7 +558,7 @@ private: | |||
| 558 | [=](Kernel::SharedPtr<Kernel::Thread> thread, Kernel::HLERequestContext& ctx, | 558 | [=](Kernel::SharedPtr<Kernel::Thread> thread, Kernel::HLERequestContext& ctx, |
| 559 | Kernel::ThreadWakeupReason reason) { | 559 | Kernel::ThreadWakeupReason reason) { |
| 560 | // Repeat TransactParcel DequeueBuffer when a buffer is available | 560 | // Repeat TransactParcel DequeueBuffer when a buffer is available |
| 561 | auto buffer_queue = nv_flinger->GetBufferQueue(id); | 561 | auto buffer_queue = nv_flinger->FindBufferQueue(id); |
| 562 | std::optional<u32> slot = buffer_queue->DequeueBuffer(width, height); | 562 | std::optional<u32> slot = buffer_queue->DequeueBuffer(width, height); |
| 563 | ASSERT_MSG(slot != std::nullopt, "Could not dequeue buffer."); | 563 | ASSERT_MSG(slot != std::nullopt, "Could not dequeue buffer."); |
| 564 | 564 | ||
| @@ -628,7 +628,7 @@ private: | |||
| 628 | 628 | ||
| 629 | LOG_WARNING(Service_VI, "(STUBBED) called id={}, unknown={:08X}", id, unknown); | 629 | LOG_WARNING(Service_VI, "(STUBBED) called id={}, unknown={:08X}", id, unknown); |
| 630 | 630 | ||
| 631 | const auto buffer_queue = nv_flinger->GetBufferQueue(id); | 631 | const auto buffer_queue = nv_flinger->FindBufferQueue(id); |
| 632 | 632 | ||
| 633 | // TODO(Subv): Find out what this actually is. | 633 | // TODO(Subv): Find out what this actually is. |
| 634 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 634 | IPC::ResponseBuilder rb{ctx, 2, 1}; |
| @@ -1044,7 +1044,7 @@ private: | |||
| 1044 | LOG_DEBUG(Service_VI, "called. layer_id=0x{:016X}, aruid=0x{:016X}", layer_id, aruid); | 1044 | LOG_DEBUG(Service_VI, "called. layer_id=0x{:016X}, aruid=0x{:016X}", layer_id, aruid); |
| 1045 | 1045 | ||
| 1046 | const u64 display_id = nv_flinger->OpenDisplay(display_name); | 1046 | const u64 display_id = nv_flinger->OpenDisplay(display_name); |
| 1047 | const u32 buffer_queue_id = nv_flinger->GetBufferQueueId(display_id, layer_id); | 1047 | const u32 buffer_queue_id = nv_flinger->FindBufferQueueId(display_id, layer_id); |
| 1048 | 1048 | ||
| 1049 | NativeWindow native_window{buffer_queue_id}; | 1049 | NativeWindow native_window{buffer_queue_id}; |
| 1050 | IPC::ResponseBuilder rb{ctx, 4}; | 1050 | IPC::ResponseBuilder rb{ctx, 4}; |
| @@ -1063,7 +1063,7 @@ private: | |||
| 1063 | // TODO(Subv): What's the difference between a Stray and a Managed layer? | 1063 | // TODO(Subv): What's the difference between a Stray and a Managed layer? |
| 1064 | 1064 | ||
| 1065 | const u64 layer_id = nv_flinger->CreateLayer(display_id); | 1065 | const u64 layer_id = nv_flinger->CreateLayer(display_id); |
| 1066 | const u32 buffer_queue_id = nv_flinger->GetBufferQueueId(display_id, layer_id); | 1066 | const u32 buffer_queue_id = nv_flinger->FindBufferQueueId(display_id, layer_id); |
| 1067 | 1067 | ||
| 1068 | NativeWindow native_window{buffer_queue_id}; | 1068 | NativeWindow native_window{buffer_queue_id}; |
| 1069 | IPC::ResponseBuilder rb{ctx, 6}; | 1069 | IPC::ResponseBuilder rb{ctx, 6}; |