diff --git a/src/panfrost/bifrost/bi_quirks.h b/src/panfrost/bifrost/bi_quirks.h index ea674df9be1..aec92918071 100644 --- a/src/panfrost/bifrost/bi_quirks.h +++ b/src/panfrost/bifrost/bi_quirks.h @@ -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