summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mader <robert.mader@collabora.com>2022-02-17 11:35:30 +0100
committerMarius Vlad <marius.vlad@collabora.com>2022-05-24 22:11:23 +0300
commitf5d5114d9da2e9bea5f54500d2747bdcf185142d (patch)
tree48a1a4cb7897a02074d3c682bf2d2bd52914027a
parent89c965ebd7c1838f0b4caf1d2a5f5f4981e43b0e (diff)
downloadweston-f5d5114d9da2e9bea5f54500d2747bdcf185142d.tar.gz
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 3e6ef529f812ee1d21f7cf92279e29421cf87200)
-rw-r--r--clients/simple-dmabuf-egl.c2
-rw-r--r--clients/simple-dmabuf-feedback.c2
-rw-r--r--clients/simple-dmabuf-v4l.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/clients/simple-dmabuf-egl.c b/clients/simple-dmabuf-egl.c
index 33df4cf9..ef0d9de6 100644
--- a/clients/simple-dmabuf-egl.c
+++ b/clients/simple-dmabuf-egl.c
@@ -131,7 +131,7 @@ struct buffer {
int release_fence_fd;
};
-#define NUM_BUFFERS 3
+#define NUM_BUFFERS 4
struct window {
struct display *display;
diff --git a/clients/simple-dmabuf-feedback.c b/clients/simple-dmabuf-feedback.c
index 43e5670f..7a58594c 100644
--- a/clients/simple-dmabuf-feedback.c
+++ b/clients/simple-dmabuf-feedback.c
@@ -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,
diff --git a/clients/simple-dmabuf-v4l.c b/clients/simple-dmabuf-v4l.c
index 85dd7a3d..a19570f9 100644
--- a/clients/simple-dmabuf-v4l.c
+++ b/clients/simple-dmabuf-v4l.c
@@ -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;