Mesa (main): panfrost: Set bound dimensions to framebuffer size

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 6 15:18:57 UTC 2021


Module: Mesa
Branch: main
Commit: 8bc4ebb0f93c530b01801827c22520de6a30451d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8bc4ebb0f93c530b01801827c22520de6a30451d

Author: Icecream95 <ixn at disroot.org>
Date:   Thu Jun 17 23:31:20 2021 +1200

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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11446>

---

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



More information about the mesa-commit mailing list