diff options
| author | Jason Ekstrand <jason@jlekstrand.net> | 2021-07-23 12:21:38 -0500 |
|---|---|---|
| committer | Matthew Auld <matthew.auld@intel.com> | 2021-07-26 16:37:33 +0100 |
| commit | bf947c989c1642d89062a03121f30760dca10c06 (patch) | |
| tree | 94d788e6a8e5001e97d96386953ba0fa5d9f1e7e /scripts/gdb/linux/utils.py | |
| parent | 82ec88e11d46e3d981e2db854fa5ab037c2c0f1f (diff) | |
drm/i915/gem: Unify user object creation (v3)
Instead of hand-rolling the same three calls in each function, pull them
into an i915_gem_object_create_user helper. Apart from re-ordering of
the placements array ENOMEM check, there should be no functional change.
v2 (Matthew Auld):
- Add the call to i915_gem_flush_free_objects() from
i915_gem_dumb_create() in a separate patch
- Move i915_gem_object_alloc() below the simple error checks
v3 (Matthew Auld):
- Add __ to i915_gem_object_create_user and kerneldoc which warns the
caller that it's not validating anything.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210723172142.3273510-5-jason@jlekstrand.net
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions
