summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-08-21 11:21:05 +0200
committerSamuel Pitoiset <[email protected]>2019-08-27 08:04:36 +0200
commit20c5db02b570b946e6f029a0b5112df5376d010f (patch)
tree2f6d9b9b82a61625d78ad96a13fb100ea2cf9fc1 /src/amd/common
parentb55919cf2a181636cb655162a6a8f127d0b06a1b (diff)
ac: add has_tc_compat_zrange_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.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 720abb5469a..3f3a236ba80 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -470,6 +470,9 @@ bool ac_query_gpu_info(int fd, void *dev_p,
info->has_gfx9_scissor_bug = info->family == CHIP_VEGA10 ||
info->family == CHIP_RAVEN;
+ info->has_tc_compat_zrange_bug = info->chip_class >= GFX8 &&
+ 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++)
diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h
index 0b62e37b67e..0f802216bdc 100644
--- a/src/amd/common/ac_gpu_info.h
+++ b/src/amd/common/ac_gpu_info.h
@@ -159,6 +159,7 @@ struct radeon_info {
/* Hardware bugs. */
bool has_gfx9_scissor_bug;
+ bool has_tc_compat_zrange_bug;
};
bool ac_query_gpu_info(int fd, void *dev_p,