v3d/shim: include new ioctl parameters
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 25 Sep 2023 10:21:28 +0000 (12:21 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 10:47:58 +0000 (10:47 +0000)
Some new parameters added recently were missed in the DRM shim.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9880
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25370>

src/broadcom/drm-shim/v3d_noop.c

index fd92e88..8a27052 100644 (file)
@@ -122,6 +122,15 @@ v3d_ioctl_get_param(int fd, unsigned long request, void *arg)
         case DRM_V3D_PARAM_SUPPORTS_TFU:
                 gp->value = 1;
                 return 0;
+        case DRM_V3D_PARAM_SUPPORTS_CSD:
+                gp->value = 1;
+                return 0;
+        case DRM_V3D_PARAM_SUPPORTS_CACHE_FLUSH:
+                gp->value = 1;
+                return 0;
+        case DRM_V3D_PARAM_SUPPORTS_PERFMON:
+                gp->value = 1;
+                return 0;
         default:
                 break;
         }