mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-26 15:11:47 +01:00
Return appropriate fences in surfaceflinger queue buffer
This commit is contained in:
parent
afef6c5123
commit
966c31810a
@ -141,7 +141,7 @@ namespace skyline::service::hosbinder {
|
||||
}
|
||||
|
||||
buffer->state = BufferState::Dequeued;
|
||||
fence = AndroidFence{}; // We just let the presentation engine return a buffer which is ready to be written into, there is no need for further synchronization
|
||||
fence = buffer->fence; // We just let the presentation engine return a buffer which is ready to be written into, there is no need for further synchronization
|
||||
|
||||
Logger::Debug("#{} - Dimensions: {}x{}, Format: {}, Usage: 0x{:X}, Is Async: {}", slot, width, height, ToString(format), usage, async);
|
||||
return AndroidStatus::Ok;
|
||||
@ -385,6 +385,7 @@ namespace skyline::service::hosbinder {
|
||||
|
||||
buffer.state = BufferState::Queued;
|
||||
buffer.frameNumber = ++frameNumber;
|
||||
buffer.fence = fence;
|
||||
|
||||
width = defaultWidth;
|
||||
height = defaultHeight;
|
||||
|
@ -44,6 +44,7 @@ namespace skyline::service::hosbinder {
|
||||
u64 frameNumber{}; //!< The amount of frames that have been queued using this slot
|
||||
bool wasBufferRequested{}; //!< If GraphicBufferProducer::RequestBuffer has been called with this buffer
|
||||
bool isPreallocated{}; //!< If this slot's graphic buffer has been preallocated or attached
|
||||
AndroidFence fence{};
|
||||
std::shared_ptr<gpu::TextureView> texture{};
|
||||
std::unique_ptr<GraphicBuffer> graphicBuffer{};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user