From aeb580189281c920b29c73e816b4ac86e2a26a0c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 26 May 2020 18:16:51 -0400 Subject: [PATCH] panfrost: Adjust null_rt for Bifrost Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_mfbd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c index bfb79dd6d3c..db7205528a9 100644 --- a/src/gallium/drivers/panfrost/pan_mfbd.c +++ b/src/gallium/drivers/panfrost/pan_mfbd.c @@ -428,6 +428,9 @@ panfrost_attach_mfbd(struct panfrost_batch *batch, unsigned vertex_count) mali_ptr panfrost_mfbd_fragment(struct panfrost_batch *batch, bool has_draws) { + struct panfrost_device *dev = pan_device(batch->ctx->base.screen); + bool is_bifrost = dev->quirks & IS_BIFROST; + struct mali_framebuffer fb = panfrost_emit_mfbd(batch, has_draws); struct mali_framebuffer_extra fbx = {0}; struct mali_render_target rts[4] = {0}; @@ -464,6 +467,11 @@ panfrost_mfbd_fragment(struct panfrost_batch *batch, bool has_draws) .no_preload = true }; + if (is_bifrost) { + null_rt.flags = 0x8; + null_rt.unk3 = 0x8; + } + rts[cb].format = null_rt; rts[cb].framebuffer = 0; rts[cb].framebuffer_stride = 0; -- 2.30.2