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_get.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_get.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_get.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 40a54b34c4f..c1bddca1a66 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -628,7 +628,7 @@ static int si_get_video_param(struct pipe_screen *screen, return true; if (sscreen->info.family < CHIP_CARRIZO || sscreen->info.family >= CHIP_VEGA10) return false; - if (!(sscreen->info.drm_major == 3 && sscreen->info.drm_minor >= 19)) { + if (!(sscreen->info.is_amdgpu && sscreen->info.drm_minor >= 19)) { RVID_ERR("No MJPEG support for the kernel version\n"); return false; } @@ -920,7 +920,7 @@ static void si_query_memory_info(struct pipe_screen *screen, info->device_memory_evicted = ws->query_value(ws, RADEON_NUM_BYTES_MOVED) / 1024; - if (sscreen->info.drm_major == 3 && sscreen->info.drm_minor >= 4) + if (sscreen->info.is_amdgpu && sscreen->info.drm_minor >= 4) info->nr_device_memory_evictions = ws->query_value(ws, RADEON_NUM_EVICTIONS); else |