panfrost: Implement tiled rendering
We already can sample from Mali's linear/tiled encoding (the one from Utgard -- AFBC is mostly unrelated); let's be able to render to it as well. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
d50795109b
commit
01e1eecb95
1 changed files with 4 additions and 0 deletions
|
|
@ -104,6 +104,10 @@ panfrost_mfbd_set_cbuf(
|
|||
rt->format.block = MALI_MFBD_BLOCK_LINEAR;
|
||||
rt->framebuffer = rsrc->bo->gpu + offset;
|
||||
rt->framebuffer_stride = stride / 16;
|
||||
} else if (rsrc->bo->layout == PAN_TILED) {
|
||||
rt->format.block = MALI_MFBD_BLOCK_TILED;
|
||||
rt->framebuffer = rsrc->bo->gpu + offset;
|
||||
rt->framebuffer_stride = stride;
|
||||
} else if (rsrc->bo->layout == PAN_AFBC) {
|
||||
assert(level == 0);
|
||||
rt->afbc.metadata = rsrc->bo->afbc_slab.gpu;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue