summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_gpu_info.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-08-02 12:21:04 +0200
committerSamuel Pitoiset <[email protected]>2019-08-27 08:04:19 +0200
commit63c0b89b8f49f2b8c029d206fd18620a19d33e1d (patch)
treeb34189a509396797b2e34fd22c4e4665e14c1d8a /src/amd/common/ac_gpu_info.c
parent44a46c09deb96040ec25903e58e1ffc297b841c9 (diff)
ac: add has_rbplus to ac_gpu_info
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_gpu_info.c')
-rw-r--r--src/amd/common/ac_gpu_info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index b6b37564c9f..50e92a405e3 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -454,6 +454,9 @@ bool ac_query_gpu_info(int fd, void *dev_p,
info->family == CHIP_RENOIR ||
info->chip_class >= GFX10;
+ info->has_rbplus = info->family == CHIP_STONEY ||
+ info->chip_class >= GFX9;
+
/* Get the number of good compute units. */
info->num_good_compute_units = 0;
for (i = 0; i < info->max_se; i++)