mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-13 02:46:23 +00:00
tests/kms_cursor_crc: Move the array of cursor fb_ids to the stack
This array is not used outside ouf create_cursor_fb(). A stack allocated array is enough. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
d39f5a059b
commit
969435a407
@ -52,7 +52,6 @@ typedef struct {
|
|||||||
int drm_fd;
|
int drm_fd;
|
||||||
igt_debugfs_t debugfs;
|
igt_debugfs_t debugfs;
|
||||||
drmModeRes *resources;
|
drmModeRes *resources;
|
||||||
uint32_t fb_id[NUM_CURSOR_TYPES];
|
|
||||||
struct kmstest_fb fb[NUM_CURSOR_TYPES];
|
struct kmstest_fb fb[NUM_CURSOR_TYPES];
|
||||||
igt_pipe_crc_t **pipe_crc;
|
igt_pipe_crc_t **pipe_crc;
|
||||||
} data_t;
|
} data_t;
|
||||||
@ -313,11 +312,12 @@ static void create_cursor_fb(data_t *data,
|
|||||||
double r, double g, double b, double a)
|
double r, double g, double b, double a)
|
||||||
{
|
{
|
||||||
cairo_t *cr;
|
cairo_t *cr;
|
||||||
|
uint32_t fb_id[NUM_CURSOR_TYPES];
|
||||||
|
|
||||||
data->fb_id[cursor_type] = kmstest_create_fb2(data->drm_fd, 64, 64,
|
fb_id[cursor_type] = kmstest_create_fb2(data->drm_fd, 64, 64,
|
||||||
DRM_FORMAT_ARGB8888, false,
|
DRM_FORMAT_ARGB8888, false,
|
||||||
&data->fb[cursor_type]);
|
&data->fb[cursor_type]);
|
||||||
igt_assert(data->fb_id[cursor_type]);
|
igt_assert(fb_id[cursor_type]);
|
||||||
|
|
||||||
cr = kmstest_get_cairo_ctx(data->drm_fd,
|
cr = kmstest_get_cairo_ctx(data->drm_fd,
|
||||||
&data->fb[cursor_type]);
|
&data->fb[cursor_type]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user