mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
drm-shim/freedreno: Fix VM_BIND support.
We need to initialize the out fence. This was supposed to be in the merged code, but I failed to force-push before marging. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42103>
This commit is contained in:
parent
9da4fb526a
commit
fbd9c67e2a
1 changed files with 9 additions and 1 deletions
|
|
@ -184,6 +184,14 @@ msm_ioctl_gem_madvise(int fd, unsigned long request, void *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
msm_ioctl_vm_bind(int fd, unsigned long request, void *arg)
|
||||
{
|
||||
struct drm_msm_vm_bind *vm_bind = arg;
|
||||
vm_bind->fence_fd = -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static ioctl_fn_t driver_ioctls[] = {
|
||||
[DRM_MSM_GET_PARAM] = msm_ioctl_get_param,
|
||||
[DRM_MSM_SET_PARAM] = msm_ioctl_set_param,
|
||||
|
|
@ -197,7 +205,7 @@ static ioctl_fn_t driver_ioctls[] = {
|
|||
[DRM_MSM_SUBMITQUEUE_NEW] = msm_ioctl_noop,
|
||||
[DRM_MSM_SUBMITQUEUE_CLOSE] = msm_ioctl_noop,
|
||||
[DRM_MSM_SUBMITQUEUE_QUERY] = msm_ioctl_noop,
|
||||
[DRM_MSM_VM_BIND] = msm_ioctl_noop,
|
||||
[DRM_MSM_VM_BIND] = msm_ioctl_vm_bind,
|
||||
};
|
||||
|
||||
#define CHIPID(maj, min, rev, pat) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue