mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
v3dv: check CPU queue availability
Include a check to assure that the kernel driver supports the CPU queue. Also, indicate that, currently, the simulator doesn't have support for the CPU queue. Signed-off-by: Maíra Canal <mcanal@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26448>
This commit is contained in:
parent
2589998e05
commit
e162308298
3 changed files with 7 additions and 0 deletions
|
|
@ -279,6 +279,9 @@ v3dX(simulator_get_param_ioctl)(struct v3d_hw *v3d,
|
|||
case DRM_V3D_PARAM_SUPPORTS_MULTISYNC_EXT:
|
||||
args->value = 1;
|
||||
return 0;
|
||||
case DRM_V3D_PARAM_SUPPORTS_CPU_QUEUE:
|
||||
args->value = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (args->param < ARRAY_SIZE(reg_map) && reg_map[args->param]) {
|
||||
|
|
|
|||
|
|
@ -849,6 +849,9 @@ create_physical_device(struct v3dv_instance *instance,
|
|||
goto fail;
|
||||
}
|
||||
|
||||
device->caps.cpu_queue =
|
||||
v3d_has_feature(device, DRM_V3D_PARAM_SUPPORTS_CPU_QUEUE);
|
||||
|
||||
device->caps.multisync =
|
||||
v3d_has_feature(device, DRM_V3D_PARAM_SUPPORTS_MULTISYNC_EXT);
|
||||
|
||||
|
|
|
|||
|
|
@ -200,6 +200,7 @@ struct v3dv_physical_device {
|
|||
} options;
|
||||
|
||||
struct {
|
||||
bool cpu_queue;
|
||||
bool multisync;
|
||||
bool perfmon;
|
||||
} caps;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue