mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 21:00:16 +01:00
panfrost: make DRM version panfrost/panthor conditional on drm-shim
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31542>
This commit is contained in:
parent
6a6a8c6cff
commit
e965dfd90b
1 changed files with 2 additions and 1 deletions
|
|
@ -302,11 +302,11 @@ drm_shim_driver_init(void)
|
|||
|
||||
/* panfrost uses the DRM version to expose features, instead of getparam. */
|
||||
shim_device.version_major = 1;
|
||||
shim_device.version_minor = 1;
|
||||
shim_device.version_patchlevel = 0;
|
||||
|
||||
if (is_csf_based) {
|
||||
shim_device.driver_name = "panthor";
|
||||
shim_device.version_minor = 2;
|
||||
shim_device.driver_ioctls = panthor_driver_ioctls;
|
||||
shim_device.driver_ioctl_count = ARRAY_SIZE(panthor_driver_ioctls);
|
||||
|
||||
|
|
@ -326,6 +326,7 @@ drm_shim_driver_init(void)
|
|||
render_node_minor);
|
||||
} else {
|
||||
shim_device.driver_name = "panfrost";
|
||||
shim_device.version_minor = 1;
|
||||
shim_device.driver_ioctls = panfrost_driver_ioctls;
|
||||
shim_device.driver_ioctl_count = ARRAY_SIZE(panfrost_driver_ioctls);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue