Skip to content
Snippets Groups Projects
Unverified Commit e453b09a authored by bunnei's avatar bunnei Committed by GitHub
Browse files

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

nvflinger: Remove superfluous buffer format check.
parents e7ba2a44 494275fd
No related branches found
No related tags found
No related merge requests found
...@@ -36,9 +36,7 @@ u32 BufferQueue::DequeueBuffer(u32 pixel_format, u32 width, u32 height) { ...@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment