From 8bc4ebb0f93c530b01801827c22520de6a30451d Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Thu, 17 Jun 2021 23:31:20 +1200 Subject: [PATCH] panfrost: Set bound dimensions to framebuffer size Otherwise CRC calculation will miss the pixels outside the extent bounds but still in a tile that is rendered. Part-of: --- src/panfrost/lib/pan_cs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/panfrost/lib/pan_cs.c b/src/panfrost/lib/pan_cs.c index fa0fdb65e23..64c14a7f528 100644 --- a/src/panfrost/lib/pan_cs.c +++ b/src/panfrost/lib/pan_cs.c @@ -696,10 +696,9 @@ pan_emit_mfbd(const struct panfrost_device *dev, pan_section_pack(fbd, MULTI_TARGET_FRAMEBUFFER, PARAMETERS, cfg) { cfg.width = fb->width; cfg.height = fb->height; - cfg.bound_min_x = fb->extent.minx; - cfg.bound_min_y = fb->extent.miny; - cfg.bound_max_x = fb->extent.maxx; - cfg.bound_max_y = fb->extent.maxy; + cfg.bound_max_x = fb->width - 1; + cfg.bound_max_y = fb->height - 1; + cfg.effective_tile_size = tile_size; cfg.tie_break_rule = MALI_TIE_BREAK_RULE_MINUS_180_IN_0_OUT; cfg.render_target_count = MAX2(fb->rt_count, 1);