summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-02-21 16:56:20 +0100
committerLioncash <mathew1800@gmail.com>2019-02-21 18:13:09 +0100
commitfd15730767860659bdb58e8cd33074530a708295 (patch)
treeb5225c8d0e1f8e60e373b7affb01c3d2e8f35ccc /src/core/hle/service/nvflinger
parentservice/nvflinger: Move display specifics over to vi_display (diff)
downloadyuzu-fd15730767860659bdb58e8cd33074530a708295.tar
yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.gz
yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.bz2
yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.lz
yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.xz
yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.zst
yuzu-fd15730767860659bdb58e8cd33074530a708295.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp8
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index 6cc31050f..95bb55bbb 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -91,7 +91,7 @@ std::optional<u32> NVFlinger::FindBufferQueueId(u64 display_id, u64 layer_id) co
return {};
}
- return layer->buffer_queue->GetId();
+ return layer->GetBufferQueue().GetId();
}
Kernel::SharedPtr<Kernel::ReadableEvent> NVFlinger::FindVsyncEvent(u64 display_id) const {
@@ -167,10 +167,10 @@ void NVFlinger::Compose() {
// TODO(Subv): Support more than 1 layer.
VI::Layer& layer = display.GetLayer(0);
- auto& buffer_queue = layer.buffer_queue;
+ auto& buffer_queue = layer.GetBufferQueue();
// Search for a queued buffer and acquire it
- auto buffer = buffer_queue->AcquireBuffer();
+ auto buffer = buffer_queue.AcquireBuffer();
MicroProfileFlip();
@@ -195,7 +195,7 @@ void NVFlinger::Compose() {
igbp_buffer.width, igbp_buffer.height, igbp_buffer.stride,
buffer->get().transform, buffer->get().crop_rect);
- buffer_queue->ReleaseBuffer(buffer->get().slot);
+ buffer_queue.ReleaseBuffer(buffer->get().slot);
}
}
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h
index 4741b1363..f9458745a 100644
--- a/src/core/hle/service/nvflinger/nvflinger.h
+++ b/src/core/hle/service/nvflinger/nvflinger.h
@@ -29,7 +29,7 @@ class Module;
namespace Service::VI {
class Display;
-struct Layer;
+class Layer;
} // namespace Service::VI
namespace Service::NVFlinger {