From b55919cf2a181636cb655162a6a8f127d0b06a1b Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 20 Aug 2019 17:38:43 +0200 Subject: ac: add has_gfx9_scissor_bug to ac_gpu_info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák --- src/amd/common/ac_gpu_info.c | 3 +++ src/amd/common/ac_gpu_info.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/amd/common') diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index b56460f8b32..720abb5469a 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -467,6 +467,9 @@ bool ac_query_gpu_info(int fd, void *dev_p, info->cpdma_prefetch_writes_memory = info->chip_class <= GFX8; + info->has_gfx9_scissor_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 a1d4d142493..0b62e37b67e 100644 --- a/src/amd/common/ac_gpu_info.h +++ b/src/amd/common/ac_gpu_info.h @@ -156,6 +156,9 @@ struct radeon_info { /* Tile modes. */ uint32_t si_tile_mode_array[32]; uint32_t cik_macrotile_mode_array[16]; + + /* Hardware bugs. */ + bool has_gfx9_scissor_bug; }; bool ac_query_gpu_info(int fd, void *dev_p, -- cgit v1.2.3