diff options
author | Marek Olšák <[email protected]> | 2019-06-11 22:49:18 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-06-14 13:31:18 -0400 |
commit | abe9a51d27049971c77a0072693511caf9b793e2 (patch) | |
tree | b020b10528853daf4b6660b89f7d973195d75226 /src/gallium/drivers/radeonsi/si_query.c | |
parent | bbbbea243aea8297a4b7006be9e8f8e85c493b81 (diff) |
ac: add radeon_info::is_amdgpu instead of checking drm_major == 3
and clean up
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_query.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_query.c b/src/gallium/drivers/radeonsi/si_query.c index fd0e07904aa..a2b5937d69f 100644 --- a/src/gallium/drivers/radeonsi/si_query.c +++ b/src/gallium/drivers/radeonsi/si_query.c @@ -1819,7 +1819,7 @@ static struct pipe_driver_query_info si_driver_query_list[] = { static unsigned si_get_num_queries(struct si_screen *sscreen) { /* amdgpu */ - if (sscreen->info.drm_major == 3) { + if (sscreen->info.is_amdgpu) { if (sscreen->info.chip_class >= GFX8) return ARRAY_SIZE(si_driver_query_list); else |