panfrost: Adjust null_rt for Bifrost

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5232>
This commit is contained in:
Alyssa Rosenzweig 2020-05-26 18:16:51 -04:00
parent 83cd3f0b4e
commit aeb5801892
1 changed files with 8 additions and 0 deletions

View File

@ -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;