diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-07 10:53:34 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-23 14:24:22 +0000 |
commit | 85cf76182087c09604bcae2bbee9e58b33bcb4f2 (patch) | |
tree | e0b943d9155adb26f1f7862dfd2b512d52be4c17 /lib/igt_gt.c | |
parent | 70749c70926f12043d3408b160606e1e6238ed3a (diff) |
lib/draw: Align mmap requests to page boundaries
Since we trust fb->size as either calculated by calc_fb_size() or the
supplied by the user, it invariably isn't page aligned. The mmap
routines and ioctls only deal in pages...
Not sure if fb->size should be page aligned, but that may break
some other drawing tests, so opt to just fix up the mmap requests.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'lib/igt_gt.c')
0 files changed, 0 insertions, 0 deletions