diff options
author | Samuel Pitoiset <[email protected]> | 2019-08-20 17:38:43 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-08-27 08:04:32 +0200 |
commit | b55919cf2a181636cb655162a6a8f127d0b06a1b (patch) | |
tree | 0ce551c02ef42f3cf09a63353cbcfa0b688da196 /src/amd/common | |
parent | 2b9c371575a83437f4150ee83843fab3271d3978 (diff) |
ac: add has_gfx9_scissor_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.c | 3 | ||||
-rw-r--r-- | src/amd/common/ac_gpu_info.h | 3 |
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 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, |