mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
30 lines
1 KiB
Diff
30 lines
1 KiB
Diff
|
From 93eb334093467272ad3028a62c515df3fb88bcb5 Mon Sep 17 00:00:00 2001
|
||
|
From: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
|
||
|
Date: Sat, 24 Apr 2021 16:23:43 +0200
|
||
|
Subject: [PATCH] amd/common: Add missing line from backport for coherency.
|
||
|
|
||
|
The line initializing the variable was missed.
|
||
|
|
||
|
Fixes: ccc4abdbf4b ("ac/gpu_info: fix more non-coherent RB and GL2 combinations")
|
||
|
Signed-off-by: Laurent Carlier <lordheavym@gmail.com>
|
||
|
---
|
||
|
src/amd/common/ac_gpu_info.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
|
||
|
index 47e6b8c332f..44728827197 100644
|
||
|
--- a/src/amd/common/ac_gpu_info.c
|
||
|
+++ b/src/amd/common/ac_gpu_info.c
|
||
|
@@ -710,6 +710,8 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
|
||
|
info->num_tcc_blocks = info->max_tcc_blocks;
|
||
|
}
|
||
|
|
||
|
+ info->tcc_rb_non_coherent = !util_is_power_of_two_or_zero(info->num_tcc_blocks);
|
||
|
+
|
||
|
info->mc_arb_ramcfg = amdinfo->mc_arb_ramcfg;
|
||
|
info->gb_addr_config = amdinfo->gb_addr_cfg;
|
||
|
if (info->chip_class >= GFX9) {
|
||
|
--
|
||
|
2.31.1
|
||
|
|