mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 05:58:05 +02:00
intel/dev: provide a helper to detect bmg g31 device
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35966>
This commit is contained in:
parent
2c9bc313a0
commit
c65f5cd36d
1 changed files with 3 additions and 0 deletions
|
|
@ -83,6 +83,9 @@ extern "C" {
|
|||
|
||||
#define GFX_IP_VER(major, minor) ((major << 16) | minor)
|
||||
|
||||
#define BMG_G31_IP_VER GFX_IP_VER(20, 2)
|
||||
#define intel_device_info_is_bmg_g31(devinfo) (devinfo->gfx_ip_ver == BMG_G31_IP_VER)
|
||||
|
||||
static inline bool
|
||||
intel_device_info_slice_available(const struct intel_device_info *devinfo,
|
||||
int slice)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue