summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2023-11-21 01:38:50 +0100
committerRob Clark <robdclark@chromium.org>2023-12-10 19:38:47 +0100
commit05d249352f1ae909230c230767ca8f4e9fdf8e7b (patch)
treee9256983156f7ae4ab3888d89d90b68f4bc3b2d4 /drivers/gpu/drm/nouveau
parentdrm/msm/gem: Cleanup submit_cleanup_bo() (diff)
downloadlinux-05d249352f1ae909230c230767ca8f4e9fdf8e7b.tar.xz
linux-05d249352f1ae909230c230767ca8f4e9fdf8e7b.zip
drm/exec: Pass in initial # of objects
In cases where the # is known ahead of time, it is silly to do the table resize dance. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Christian König <christian.koenig@amd.com> Patchwork: https://patchwork.freedesktop.org/patch/568338/
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_uvmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_uvmm.c b/drivers/gpu/drm/nouveau/nouveau_uvmm.c
index dae3baf707a0..4f223c972c6a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_uvmm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_uvmm.c
@@ -1347,7 +1347,7 @@ nouveau_uvmm_bind_job_submit(struct nouveau_job *job,
}
}
- drm_exec_init(exec, vme->flags);
+ drm_exec_init(exec, vme->flags, 0);
drm_exec_until_all_locked(exec) {
ret = bind_lock_validate(job, exec, vme->num_fences);
drm_exec_retry_on_contention(exec);