aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_mfbd.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-06-17 15:56:48 -0700
committerAlyssa Rosenzweig <[email protected]>2019-06-18 09:59:29 -0700
commit01e1eecb951fc3c45fef12728a6002c122c5f74f (patch)
tree1c3e809b9da7ce3ddc1eec2ab74e5b294cbd961d /src/gallium/drivers/panfrost/pan_mfbd.c
parentd50795109b306fadf6befe0cb25be84a0abacb12 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_mfbd.c')
-rw-r--r--src/gallium/drivers/panfrost/pan_mfbd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c
index d2cccbe1a66..f9a69e47e45 100644
--- a/src/gallium/drivers/panfrost/pan_mfbd.c
+++ b/src/gallium/drivers/panfrost/pan_mfbd.c
@@ -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;