Mesa (main): broadcom/simulator: handle DRM_V3D_PARAM_SUPPORTS_MULTISYNC_EXT

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jan 24 11:52:18 UTC 2022


Module: Mesa
Branch: main
Commit: be11948a956f79d3e2567668a7454d0b03e02cf9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=be11948a956f79d3e2567668a7454d0b03e02cf9

Author: Iago Toral Quiroga <itoral at igalia.com>
Date:   Mon Jan 24 11:42:50 2022 +0100

broadcom/simulator: handle DRM_V3D_PARAM_SUPPORTS_MULTISYNC_EXT

Without this the simulator wrapper will abort upon seeing this
query, rendering the driver unusable in that context.

Also, it seems the simulator environment doesn't quite work with
multisync at present, so do not enable it until we figure out what
the issue is.

Reviewed-by: Melissa Wen <mwen at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14678>

---

 src/broadcom/simulator/v3dx_simulator.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/broadcom/simulator/v3dx_simulator.c b/src/broadcom/simulator/v3dx_simulator.c
index 07bbbe2f8c9..abc7f9196f1 100644
--- a/src/broadcom/simulator/v3dx_simulator.c
+++ b/src/broadcom/simulator/v3dx_simulator.c
@@ -269,6 +269,9 @@ v3dX(simulator_get_param_ioctl)(struct v3d_hw *v3d,
         case DRM_V3D_PARAM_SUPPORTS_PERFMON:
                 args->value = V3D_VERSION >= 41;
                 return 0;
+        case DRM_V3D_PARAM_SUPPORTS_MULTISYNC_EXT:
+                args->value = 0;
+                return 0;
         }
 
         if (args->param < ARRAY_SIZE(reg_map) && reg_map[args->param]) {



More information about the mesa-commit mailing list