summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-10 04:17:31 +0100
committerbunnei <bunneidev@gmail.com>2018-02-10 05:33:49 +0100
commit725304094eec2985f7e3b48efa0055171b1e7397 (patch)
tree69d70ae82daf9821da0c58274176225c6d169e91 /src/core
parentIGBPQueueBufferRequestParcel: Don't enforce buffer length. (diff)
downloadyuzu-725304094eec2985f7e3b48efa0055171b1e7397.tar
yuzu-725304094eec2985f7e3b48efa0055171b1e7397.tar.gz
yuzu-725304094eec2985f7e3b48efa0055171b1e7397.tar.bz2
yuzu-725304094eec2985f7e3b48efa0055171b1e7397.tar.lz
yuzu-725304094eec2985f7e3b48efa0055171b1e7397.tar.xz
yuzu-725304094eec2985f7e3b48efa0055171b1e7397.tar.zst
yuzu-725304094eec2985f7e3b48efa0055171b1e7397.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp
index c7206a683..f90c7ca51 100644
--- a/src/core/hle/service/nvflinger/buffer_queue.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue.cpp
@@ -40,7 +40,11 @@ u32 BufferQueue::DequeueBuffer(u32 pixel_format, u32 width, u32 height) {
return igbp_buffer.format == pixel_format && igbp_buffer.width == width &&
igbp_buffer.height == height;
});
- ASSERT(itr != queue.end());
+ if (itr == queue.end()) {
+ LOG_CRITICAL(Service_NVDRV, "no free buffers for pixel_format=%d, width=%d, height=%d",
+ pixel_format, width, height);
+ itr = queue.begin();
+ }
itr->status = Buffer::Status::Dequeued;
return itr->slot;