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>
This commit is contained in:
Icecream95 2021-06-17 23:31:20 +12:00 committed by Marge Bot
parent e5d158881b
commit 8bc4ebb0f9

View file

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