mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 11:58:10 +02:00
pan/bi: Add quirks for Mali G78
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
This commit is contained in:
parent
18dedd80db
commit
dc569585a6
1 changed files with 9 additions and 4 deletions
|
|
@ -51,8 +51,10 @@ bifrost_get_quirks(unsigned product_id)
|
|||
case 0x72:
|
||||
case 0x74:
|
||||
return 0;
|
||||
case 0x92:
|
||||
return BIFROST_NO_PRELOAD;
|
||||
default:
|
||||
unreachable("Unknown Bifrost GPU ID");
|
||||
unreachable("Unknown Bifrost/Valhall GPU ID");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -62,9 +64,12 @@ bifrost_get_quirks(unsigned product_id)
|
|||
static inline unsigned
|
||||
bifrost_lanes_per_warp(unsigned product_id)
|
||||
{
|
||||
unsigned major = product_id >> 12;
|
||||
assert(major == 6 || major == 7);
|
||||
return (major == 7) ? 8 : 4;
|
||||
switch (product_id >> 12) {
|
||||
case 6: return 4;
|
||||
case 7: return 8;
|
||||
case 9: return 16;
|
||||
default: unreachable("Invalid Bifrost/Valhall GPU major");
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue