yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #238 from bunnei/fix-buffer-check

nvflinger: Remove superfluous buffer format check.
This commit is contained in:
bunnei 2018-03-16 21:04:39 -04:00 committed by GitHub
commit e453b09a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -36,9 +36,7 @@ u32 BufferQueue::DequeueBuffer(u32 pixel_format, u32 width, u32 height) {
return false; return false;
// Make sure that the parameters match. // Make sure that the parameters match.
auto& igbp_buffer = buffer.igbp_buffer; return buffer.igbp_buffer.width == width && buffer.igbp_buffer.height == height;
return igbp_buffer.format == pixel_format && igbp_buffer.width == width &&
igbp_buffer.height == height;
}); });
if (itr == queue.end()) { if (itr == queue.end()) {
LOG_CRITICAL(Service_NVDRV, "no free buffers for pixel_format=%d, width=%d, height=%d", LOG_CRITICAL(Service_NVDRV, "no free buffers for pixel_format=%d, width=%d, height=%d",