diff options
author | Marek Olšák <[email protected]> | 2018-05-02 18:53:24 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-05-10 18:39:57 -0400 |
commit | e720cb61354167e5ff75202affe86185a18386ba (patch) | |
tree | 69b39bffd38ffa7215915786c4e8831147336e95 /src/gallium/drivers/radeonsi/si_get.c | |
parent | 3060f62340b2f232907db0c48b6c6c6eba3d1752 (diff) |
radeonsi: clean up the reset status query implementation
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_get.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_get.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index c31ab43cb42..cd3e63c73d7 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -203,9 +203,8 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param) return !SI_BIG_ENDIAN && sscreen->info.has_userptr; case PIPE_CAP_DEVICE_RESET_STATUS_QUERY: - return (sscreen->info.drm_major == 2 && - sscreen->info.drm_minor >= 43) || - sscreen->info.drm_major == 3; + return sscreen->info.has_gpu_reset_status_query || + sscreen->info.has_gpu_reset_counter_query; case PIPE_CAP_TEXTURE_MULTISAMPLE: /* 2D tiling on CIK is supported since DRM 2.35.0 */ |