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:
committed by
Marius Vlad
parent
89c965ebd7
commit
f5d5114d9d
@@ -131,7 +131,7 @@ struct buffer {
|
|||||||
int release_fence_fd;
|
int release_fence_fd;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define NUM_BUFFERS 3
|
#define NUM_BUFFERS 4
|
||||||
|
|
||||||
struct window {
|
struct window {
|
||||||
struct display *display;
|
struct display *display;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
#include <GLES2/gl2.h>
|
#include <GLES2/gl2.h>
|
||||||
#include <GLES2/gl2ext.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
|
/* 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,
|
* hardware don't support this format. If you change the value of this constant,
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ struct buffer {
|
|||||||
int data_offsets[VIDEO_MAX_PLANES];
|
int data_offsets[VIDEO_MAX_PLANES];
|
||||||
};
|
};
|
||||||
|
|
||||||
#define NUM_BUFFERS 3
|
#define NUM_BUFFERS 4
|
||||||
|
|
||||||
struct window {
|
struct window {
|
||||||
struct display *display;
|
struct display *display;
|
||||||
|
|||||||
Reference in New Issue
Block a user