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:
Alyssa Rosenzweig 2021-07-19 14:20:34 -04:00 committed by Marge Bot
parent 18dedd80db
commit dc569585a6

View file

@ -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