mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-25 19:02:45 -06:00
hle: nvflinger: buffer_queue_producer: DequeueBuffer: Remove unnecessary lock.
This commit is contained in:
parent
0ce308047e
commit
8e35eedf22
1 changed files with 1 additions and 3 deletions
|
@ -229,12 +229,10 @@ Status BufferQueueProducer::WaitForFreeSlotThenRelock(bool async, s32* found,
|
||||||
|
|
||||||
Status BufferQueueProducer::DequeueBuffer(s32* out_slot, Fence* out_fence, bool async, u32 width,
|
Status BufferQueueProducer::DequeueBuffer(s32* out_slot, Fence* out_fence, bool async, u32 width,
|
||||||
u32 height, PixelFormat format, u32 usage) {
|
u32 height, PixelFormat format, u32 usage) {
|
||||||
{ BufferQueueCore::AutoLock lock(core); }
|
|
||||||
|
|
||||||
LOG_DEBUG(Service_NVFlinger, "async={} w={} h={} format={}, usage={}", async ? "true" : "false",
|
LOG_DEBUG(Service_NVFlinger, "async={} w={} h={} format={}, usage={}", async ? "true" : "false",
|
||||||
width, height, format, usage);
|
width, height, format, usage);
|
||||||
|
|
||||||
if ((width && !height) || (!width && height)) {
|
if ((width != 0 && height == 0) || (width == 0 && height != 0)) {
|
||||||
LOG_ERROR(Service_NVFlinger, "invalid size: w={} h={}", width, height);
|
LOG_ERROR(Service_NVFlinger, "invalid size: w={} h={}", width, height);
|
||||||
return Status::BadValue;
|
return Status::BadValue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue