panfrost: Record architecture major version
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 21 Oct 2020 21:17:41 +0000 (17:17 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 23 Oct 2020 14:48:23 +0000 (14:48 +0000)
commitf4ecc432bf7603b86935580785a3015fc92d1b15
tree270d2493e3c81bc2046cd8442398e568f0b57633
parent81b28ebcb5a3801216e752cfda2e600bbc7bcb10
panfrost: Record architecture major version

This tends to be easier to work with than the raw GPU ID and needs some
special casing for Midgard vs Bifrost/Valhall.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
src/panfrost/lib/pan_device.h
src/panfrost/lib/pan_props.c