Module: Mesa Branch: main Commit: d47a8789f90ac8e9892ab95c616032cf705cf123 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d47a8789f90ac8e9892ab95c616032cf705cf123
Author: Boris Brezillon <[email protected]> Date: Wed Sep 22 08:48:38 2021 +0200 pan/decode: Fix DCD size in Pre frame decoding DCD size on Bifrost is supposed to be 32 words wide, but this change will only happen after the per-gen XML split. We have to manually append the DRAW_PADDING for now. Fixes: de13fdc251fa ("panfrost: Prepare pandecode to per-gen XML") Signed-off-by: Boris Brezillon <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12970> --- src/panfrost/lib/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/decode.c b/src/panfrost/lib/decode.c index 56db8173267..9610373ccd4 100644 --- a/src/panfrost/lib/decode.c +++ b/src/panfrost/lib/decode.c @@ -294,7 +294,7 @@ pandecode_mfbd_bfr(uint64_t gpu_va, int job_no, bool is_fragment, unsigned gpu_i pandecode_sample_locations(fb, job_no); pan_section_unpack(fb, MULTI_TARGET_FRAMEBUFFER, BIFROST_PARAMETERS, bparams); - unsigned dcd_size = pan_size(DRAW); + unsigned dcd_size = pan_size(DRAW) + pan_size(DRAW_PADDING); struct pandecode_mapped_memory *dcdmem = pandecode_find_mapped_gpu_mem_containing(bparams.frame_shader_dcds);
