drm/i915/guc: Extract GuC stage desc pool creation into a helper
authorMichał Winiarski <[email protected]>
Wed, 25 Oct 2017 20:00:10 +0000 (22:00 +0200)
committerChris Wilson <[email protected]>
Thu, 26 Oct 2017 20:35:21 +0000 (21:35 +0100)
commit89922d0145755b0d22906925e9bac9dc78524fc3
treed2a94f03a163a9d96147625355a5877d7e1d6328
parent21e8860ef467001330368eceeb855fde46ab1dec
drm/i915/guc: Extract GuC stage desc pool creation into a helper

Since it's a two-step process, we can have a cleaner error handling in
the caller if we do the allocations in a helper.

Signed-off-by: Michał Winiarski <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Daniele Ceraolo Spurio <[email protected]>
Cc: Jeff McGee <[email protected]>
Cc: Michal Wajdeczko <[email protected]>
Cc: Oscar Mateo <[email protected]>
Reviewed-by: Daniele Ceraolo Spurio <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_guc_submission.c