summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-08-23 08:50:06 +0200
committerSamuel Pitoiset <[email protected]>2019-08-27 08:04:44 +0200
commit1bf2572dff511562cc23b3d9e920e101f0aea134 (patch)
tree5b389ccf9cc0fcc1456d4b7df81906f00fa0626c /src/amd/common
parent021feb1bf61b06f813d41eb34831e620c9bc91bf (diff)
ac: add has_msaa_sample_loc_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/common')
-rw-r--r--src/amd/common/ac_gpu_info.c5
-rw-r--r--src/amd/common/ac_gpu_info.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 49ad93407ec..b366dc6be19 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -483,6 +483,11 @@ bool ac_query_gpu_info(int fd, void *dev_p,
info->has_tc_compat_zrange_bug = info->chip_class >= GFX8 &&
info->chip_class <= GFX9;
+ info->has_msaa_sample_loc_bug = (info->family >= CHIP_POLARIS10 &&
+ info->family <= CHIP_POLARIS12) ||
+ 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 f676600e5b9..ba09f38edb8 100644
--- a/src/amd/common/ac_gpu_info.h
+++ b/src/amd/common/ac_gpu_info.h
@@ -161,6 +161,7 @@ struct radeon_info {
/* Hardware bugs. */
bool has_gfx9_scissor_bug;
bool has_tc_compat_zrange_bug;
+ bool has_msaa_sample_loc_bug;
};
bool ac_query_gpu_info(int fd, void *dev_p,