diff options
| author | Jason Ekstrand <[email protected]> | 2021-07-23 12:21:38 -0500 |
|---|---|---|
| committer | Matthew Auld <[email protected]> | 2021-07-26 16:37:33 +0100 |
| commit | bf947c989c1642d89062a03121f30760dca10c06 (patch) | |
| tree | 94d788e6a8e5001e97d96386953ba0fa5d9f1e7e /tools/perf/scripts/python | |
| 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 <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Signed-off-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions