summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-08-23 08:52:07 +0200
committerSamuel Pitoiset <[email protected]>2019-08-27 08:04:47 +0200
commitfd54fc85aa6ad6f6d904ee7d7cf9955257fa703f (patch)
treeee6b79c9bf11a746435f1740de81e2d2c395d933 /src/amd
parent1bf2572dff511562cc23b3d9e920e101f0aea134 (diff)
ac: add has_ls_vgpr_init_bug 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')
-rw-r--r--src/amd/common/ac_gpu_info.c3
-rw-r--r--src/amd/common/ac_gpu_info.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index b366dc6be19..5fb1e26376a 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -488,6 +488,9 @@ bool ac_query_gpu_info(int fd, void *dev_p,
info->family == CHIP_VEGA10 ||
info->family == CHIP_RAVEN;
+ info->has_ls_vgpr_init_bug = info->family == CHIP_VEGA10 ||
+ info->family == CHIP_RAVEN;
+
/* Get the number of good compute units. */
info->num_good_compute_units = 0;
for (i = 0; i < info->max_se; i++)
diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h
index ba09f38edb8..c850da22d4e 100644
--- a/src/amd/common/ac_gpu_info.h
+++ b/src/amd/common/ac_gpu_info.h
@@ -162,6 +162,7 @@ struct radeon_info {
bool has_gfx9_scissor_bug;
bool has_tc_compat_zrange_bug;
bool has_msaa_sample_loc_bug;
+ bool has_ls_vgpr_init_bug;
};
bool ac_query_gpu_info(int fd, void *dev_p,