mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
panfrost: AFBC buffers must be cache-line aligned
Fixes a DATA_INVALID_FAULT when AFBC is paried with mipmapping. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
f7621a8c5f
commit
e65e3cf596
1 changed files with 5 additions and 0 deletions
|
|
@ -287,6 +287,11 @@ panfrost_setup_slices(struct panfrost_resource *pres, size_t *bo_size)
|
||||||
/* We don't need to align depth */
|
/* We don't need to align depth */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Align levels to cache-line as a performance improvement for
|
||||||
|
* linear/tiled and as a requirement for AFBC */
|
||||||
|
|
||||||
|
offset = ALIGN_POT(offset, 64);
|
||||||
|
|
||||||
slice->offset = offset;
|
slice->offset = offset;
|
||||||
|
|
||||||
/* Compute the would-be stride */
|
/* Compute the would-be stride */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue