commit | 8db2dc852941cf1bc9ea22b4ba5c14b8c9ab7194 | [log] [tgz] |
---|---|---|
author | Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> | Thu Nov 01 15:11:31 2018 +0000 |
committer | Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> | Fri Nov 02 09:57:40 2018 +0000 |
tree | 325602f0be0fc353c92be40d5266f2a25f2d9d76 | |
parent | 55bc277d122402f3ee9f16cb037ec9a9ccd601e9 [diff] |
drm: Extend framebuffer_check to handle formats with cpp/char_per_block 0 For formats that are supported only with non-linear modifiers it doesn't make to much sense to define cpp or char_per_block, so that will be set to 0. This patch adds a restriction to force having a modifier attached when cpp/char_per_block is 0, and to bypass checking the pitch restriction. This had been discussed here. [1] https://people.freedesktop.org/~cbrill/dri-log/?channel=dri-devel&highlight_names=&date=2018-09-13&show_html=true Reviewed-by: Brian Starkey <brian.starkey@arm.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181101151051.1509-5-alexandru-cosmin.gheorghe@arm.com