mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
aco: implement aco_is_gpu_supported using switch statement
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27952>
This commit is contained in:
parent
1585a5cc6d
commit
df6fe90926
1 changed files with 15 additions and 2 deletions
|
|
@ -433,8 +433,21 @@ aco_get_codegen_flags()
|
|||
bool
|
||||
aco_is_gpu_supported(const struct radeon_info* info)
|
||||
{
|
||||
/* Does not support compute only cards yet. */
|
||||
return info->gfx_level >= GFX6 && info->has_graphics;
|
||||
switch (info->gfx_level) {
|
||||
case GFX6:
|
||||
case GFX7:
|
||||
case GFX8:
|
||||
return true;
|
||||
case GFX9:
|
||||
return info->has_graphics; /* no CDNA support */
|
||||
case GFX10:
|
||||
case GFX10_3:
|
||||
case GFX11:
|
||||
case GFX11_5:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue