diff options
author | Marek Olšák <[email protected]> | 2016-10-15 13:57:59 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-30 14:44:33 +0200 |
commit | 68d6d097f15dbe17c1d0c8cb57157d9fd0005bdc (patch) | |
tree | ece1db330f02f6ca1a1cbb6b82006c3ca2063656 /src/gallium/winsys | |
parent | 5691e14735eda27afe1f2ede369b80127b90f6a1 (diff) |
radeonsi/gfx9: add GFX9 and VEGA10 enums
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c index 37e01403113..25f08ef0acd 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c @@ -219,7 +219,9 @@ static bool do_winsys_init(struct amdgpu_winsys *ws, int fd) goto fail; } - if (ws->info.family >= CHIP_TONGA) + if (ws->info.family >= CHIP_VEGA10) + ws->info.chip_class = GFX9; + else if (ws->info.family >= CHIP_TONGA) ws->info.chip_class = VI; else if (ws->info.family >= CHIP_BONAIRE) ws->info.chip_class = CIK; @@ -303,6 +305,9 @@ static bool do_winsys_init(struct amdgpu_winsys *ws, int fd) case CHIP_POLARIS12: ws->family = FAMILY_VI; ws->rev_id = VI_POLARIS12_V_A0; + case CHIP_VEGA10: + ws->family = FAMILY_AI; + ws->rev_id = AI_VEGA10_P_A0; break; default: fprintf(stderr, "amdgpu: Unknown family.\n"); |