mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-11-16 19:47:55 +01:00
test/libdrm_mock: bump resource limitations
Bump the maximum number of layers and properties to allow more aggressive benchmarking.
This commit is contained in:
parent
8272b61150
commit
d51e2fb2fe
1 changed files with 5 additions and 4 deletions
|
@ -9,8 +9,9 @@
|
|||
#include "libdrm_mock.h"
|
||||
|
||||
#define MAX_PLANES 64
|
||||
#define MAX_LAYERS 64
|
||||
#define MAX_PROPS 64
|
||||
#define MAX_LAYERS 512
|
||||
#define MAX_PLANE_PROPS 64
|
||||
#define MAX_REQ_PROPS 1024
|
||||
|
||||
uint32_t liftoff_mock_drm_crtc_id = 0xCC000000;
|
||||
size_t liftoff_mock_commit_count = 0;
|
||||
|
@ -27,7 +28,7 @@ struct liftoff_mock_prop {
|
|||
};
|
||||
|
||||
struct _drmModeAtomicReq {
|
||||
struct liftoff_mock_prop props[512];
|
||||
struct liftoff_mock_prop props[MAX_REQ_PROPS];
|
||||
int cursor;
|
||||
};
|
||||
|
||||
|
@ -320,7 +321,7 @@ drmModeObjectProperties *drmModeObjectGetProperties(int fd, uint32_t obj_id,
|
|||
struct liftoff_mock_plane *plane;
|
||||
drmModeObjectProperties *props;
|
||||
size_t i;
|
||||
static uint32_t prop_ids[MAX_PROPS];
|
||||
static uint32_t prop_ids[MAX_PLANE_PROPS];
|
||||
|
||||
assert_drm_fd(fd);
|
||||
assert(obj_type == DRM_MODE_OBJECT_PLANE);
|
||||
|
|
Loading…
Reference in a new issue