clients/simple-dmabuf-*: Increase buffer limit to four

In certain situations these clients crash a lot due to the low
buffer limit. Four buffers is also what EGL allows without blocking
and what is arguably the upper limit of what a compositor should
demand.

Signed-off-by: Robert Mader <robert.mader@collabora.com>
(cherry picked from commit 3e6ef529f8)
This commit is contained in:
Robert Mader
2022-02-17 11:35:30 +01:00
committed by Marius Vlad
parent 89c965ebd7
commit f5d5114d9d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ struct buffer {
int release_fence_fd;
};
#define NUM_BUFFERS 3
#define NUM_BUFFERS 4
struct window {
struct display *display;
+1 -1
View File
@@ -47,7 +47,7 @@
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#define NUM_BUFFERS 3
#define NUM_BUFFERS 4
/* We have to hack the DRM-backend to pretend that planes of the underlying
* hardware don't support this format. If you change the value of this constant,
+1 -1
View File
@@ -127,7 +127,7 @@ struct buffer {
int data_offsets[VIDEO_MAX_PLANES];
};
#define NUM_BUFFERS 3
#define NUM_BUFFERS 4
struct window {
struct display *display;