summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2022-03-19 22:09:22 -0700
committerGravatar bunnei2022-03-24 18:13:33 -0700
commit8e35eedf22c28e1602627243a68eeb52af788e7d (patch)
treed53ac2552df3a0e330b9dbed1c4f6f9309b5658a /src
parenthle: nvflinger: consumer_base: StillTracking: Should be const. (diff)
downloadyuzu-8e35eedf22c28e1602627243a68eeb52af788e7d.tar.gz
yuzu-8e35eedf22c28e1602627243a68eeb52af788e7d.tar.xz
yuzu-8e35eedf22c28e1602627243a68eeb52af788e7d.zip
hle: nvflinger: buffer_queue_producer: DequeueBuffer: Remove unnecessary lock.
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_producer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
index eba486754..99f7ec1ac 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
@@ -229,12 +229,10 @@ Status BufferQueueProducer::WaitForFreeSlotThenRelock(bool async, s32* found,
229 229
230Status BufferQueueProducer::DequeueBuffer(s32* out_slot, Fence* out_fence, bool async, u32 width, 230Status BufferQueueProducer::DequeueBuffer(s32* out_slot, Fence* out_fence, bool async, u32 width,
231 u32 height, PixelFormat format, u32 usage) { 231 u32 height, PixelFormat format, u32 usage) {
232 { BufferQueueCore::AutoLock lock(core); }
233
234 LOG_DEBUG(Service_NVFlinger, "async={} w={} h={} format={}, usage={}", async ? "true" : "false", 232 LOG_DEBUG(Service_NVFlinger, "async={} w={} h={} format={}, usage={}", async ? "true" : "false",
235 width, height, format, usage); 233 width, height, format, usage);
236 234
237 if ((width && !height) || (!width && height)) { 235 if ((width != 0 && height == 0) || (width == 0 && height != 0)) {
238 LOG_ERROR(Service_NVFlinger, "invalid size: w={} h={}", width, height); 236 LOG_ERROR(Service_NVFlinger, "invalid size: w={} h={}", width, height);
239 return Status::BadValue; 237 return Status::BadValue;
240 } 238 }