drm/amd/display: Fix a test dml32_rq_dlg_get_rq_reg()
authorjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:39:02 +0000 (08:39 +0000)
committerjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:39:02 +0000 (08:39 +0000)
From Christophe JAILLET
384717042de89dfd99087d2a54aad72620ac7fcb in linux-6.1.y/6.1.39
bafc31166aa7df5fa26ae0ad8196d1717e6cdea9 in mainline linux

sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_rq_dlg_calc_32.c

index 395ae87..9ba6cb6 100644 (file)
@@ -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;