diff options
author | Rob Clark <robdclark@chromium.org> | 2023-11-20 16:38:50 -0800 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2023-12-10 10:38:47 -0800 |
commit | 05d249352f1ae909230c230767ca8f4e9fdf8e7b (patch) | |
tree | e9256983156f7ae4ab3888d89d90b68f4bc3b2d4 /include/drm/drm_exec.h | |
parent | 3a48a40387e73e1a37428b11cb3ba56d4c108571 (diff) |
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 'include/drm/drm_exec.h')
-rw-r--r-- | include/drm/drm_exec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_exec.h b/include/drm/drm_exec.h index b5bf0b6da791..f1a66c048721 100644 --- a/include/drm/drm_exec.h +++ b/include/drm/drm_exec.h @@ -135,7 +135,7 @@ static inline bool drm_exec_is_contended(struct drm_exec *exec) return !!exec->contended; } -void drm_exec_init(struct drm_exec *exec, uint32_t flags); +void drm_exec_init(struct drm_exec *exec, uint32_t flags, unsigned nr); void drm_exec_fini(struct drm_exec *exec); bool drm_exec_cleanup(struct drm_exec *exec); int drm_exec_lock_obj(struct drm_exec *exec, struct drm_gem_object *obj); |