minigbm: i915: fix planar height alignment
Aligned planar height should be calculated from the planar height, not the buffer height. BUG=b:133292033 TEST=ArcVideoTest renders video correctly (w/a few other changes) Change-Id: I1dc35ab4eebf9a5a86b2a9befaeb817a56dcfec2 Reviewed-on: https://chromium-review.googlesource.com/1824304 Tested-by: David Stevens <stevensd@chromium.org> Commit-Ready: Tomasz Figa <tfiga@chromium.org> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org>
This commit is contained in:
parent
2c783afd95
commit
793675a1c0
1 changed files with 1 additions and 1 deletions
2
i915.c
2
i915.c
|
|
@ -256,7 +256,7 @@ static int i915_align_dimensions(struct bo *bo, uint32_t tiling, uint32_t *strid
|
|||
break;
|
||||
}
|
||||
|
||||
*aligned_height = ALIGN(bo->meta.height, vertical_alignment);
|
||||
*aligned_height = ALIGN(*aligned_height, vertical_alignment);
|
||||
if (i915->gen > 3) {
|
||||
*stride = ALIGN(*stride, horizontal_alignment);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue