mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02: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. */
|
/* panfrost uses the DRM version to expose features, instead of getparam. */
|
||||||
shim_device.version_major = 1;
|
shim_device.version_major = 1;
|
||||||
shim_device.version_minor = 1;
|
|
||||||
shim_device.version_patchlevel = 0;
|
shim_device.version_patchlevel = 0;
|
||||||
|
|
||||||
if (is_csf_based) {
|
if (is_csf_based) {
|
||||||
shim_device.driver_name = "panthor";
|
shim_device.driver_name = "panthor";
|
||||||
|
shim_device.version_minor = 2;
|
||||||
shim_device.driver_ioctls = panthor_driver_ioctls;
|
shim_device.driver_ioctls = panthor_driver_ioctls;
|
||||||
shim_device.driver_ioctl_count = ARRAY_SIZE(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);
|
render_node_minor);
|
||||||
} else {
|
} else {
|
||||||
shim_device.driver_name = "panfrost";
|
shim_device.driver_name = "panfrost";
|
||||||
|
shim_device.version_minor = 1;
|
||||||
shim_device.driver_ioctls = panfrost_driver_ioctls;
|
shim_device.driver_ioctls = panfrost_driver_ioctls;
|
||||||
shim_device.driver_ioctl_count = ARRAY_SIZE(panfrost_driver_ioctls);
|
shim_device.driver_ioctl_count = ARRAY_SIZE(panfrost_driver_ioctls);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue