diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-09-06 16:34:15 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-09-11 17:23:17 +0300 |
commit | 5f8a33ad1a4ab5ce0d1eb2ba68ccc284d663531c (patch) | |
tree | 8d5fae0a9c8de566b7e10c7ec86dfba6bb7df60e /lib/igt_kms.c | |
parent | b97b528d365a31a994b76ba2daf71b6b8f58575e (diff) |
lib/igt_fb: Make fb size 64bit
Switch all fb size handling to 64bits to accomodate >4GiB
framebuffers.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r-- | lib/igt_kms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 62d84684..4563bfd9 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -592,7 +592,7 @@ uint32_t kmstest_find_crtc_for_connector(int fd, drmModeRes *res, * Returns: The file-private handle of the created buffer object */ uint32_t kmstest_dumb_create(int fd, int width, int height, int bpp, - unsigned *stride, unsigned *size) + unsigned *stride, uint64_t *size) { struct drm_mode_create_dumb create; @@ -604,7 +604,7 @@ uint32_t kmstest_dumb_create(int fd, int width, int height, int bpp, create.handle = 0; do_ioctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &create); igt_assert(create.handle); - igt_assert(create.size >= width * height * bpp / 8); + igt_assert(create.size >= (uint64_t) width * height * bpp / 8); if (stride) *stride = create.pitch; |