diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2015-11-05 16:39:00 -0200 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2015-11-27 09:57:35 -0200 |
commit | d63413771fc9bc77e89dacecbc1bae6192444000 (patch) | |
tree | c4de5f0c063e2b2842f16c5c03c595cda6fe1559 /demos | |
parent | 1c68a71acc1f9ddd98bc1bd6ff1da700442c21aa (diff) |
lib/igt_fb: also pass the stride to igt_create_fb_with_bo_size()
If the caller is going to specify a custom size, it's likely that he
will also specify a custom stride. The automatic stride picked by
create_bo_for_fb() is too huge for tiled buffers, so if the caller
wants smaller buffers, then he'll need a smaller stride too, otherwise
the Kernel will reject the addfb IOCTL due to stride * height being
bigger than the size.
I want to make tests/kms_frontbuffer_tracking use
igt_create_fb_with_bo_size() so I can provide smaller buffers that
will fit into the CFB. I'm also planning to make all frontbuffers with
the same width/height/format have the same stride and size regardless
of tiling method so I can exercise specific code paths.
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'demos')
0 files changed, 0 insertions, 0 deletions