From f212f34e5360cbf3e4c1bf37afc6ef8ddf3c431a Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 20 Jul 2023 08:39:02 +0000 Subject: [PATCH] drm/amd/display: Fix a test dml32_rq_dlg_get_rq_reg() From Christophe JAILLET 384717042de89dfd99087d2a54aad72620ac7fcb in linux-6.1.y/6.1.39 bafc31166aa7df5fa26ae0ad8196d1717e6cdea9 in mainline linux --- .../pci/drm/amd/display/dc/dml/dcn32/display_rq_dlg_calc_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_rq_dlg_calc_32.c b/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_rq_dlg_calc_32.c index 395ae876198..9ba6cb67655 100644 --- a/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_rq_dlg_calc_32.c +++ b/sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_rq_dlg_calc_32.c @@ -116,7 +116,7 @@ void dml32_rq_dlg_get_rq_reg(display_rq_regs_st *rq_regs, else rq_regs->rq_regs_l.min_meta_chunk_size = dml_log2(min_meta_chunk_bytes) - 6 + 1; - if (min_meta_chunk_bytes == 0) + if (p1_min_meta_chunk_bytes == 0) rq_regs->rq_regs_c.min_meta_chunk_size = 0; else rq_regs->rq_regs_c.min_meta_chunk_size = dml_log2(p1_min_meta_chunk_bytes) - 6 + 1; -- 2.20.1