From 8c0cb56fd9e9742af1186fe093bb38d7e2e59285 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 22 Jul 2020 11:08:06 -0400 Subject: [PATCH] panfrost: Enable YTR where allowed Signed-off-by: Alyssa Rosenzweig Tested-by: Icecream95 Part-of: --- src/gallium/drivers/panfrost/pan_resource.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index 7606bfb17b5..b282331bdde 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -481,6 +481,9 @@ panfrost_best_modifier(struct panfrost_device *dev, AFBC_FORMAT_MOD_BLOCK_SIZE_16x16 | AFBC_FORMAT_MOD_SPARSE; + if (panfrost_afbc_can_ytr(pres->base.format)) + afbc |= AFBC_FORMAT_MOD_YTR; + return DRM_FORMAT_MOD_ARM_AFBC(afbc); } else if (panfrost_should_tile(dev, pres)) return DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED; -- 2.30.2