[Intel-gfx] [PATCH] drm/i915: Create dumb buffer from LMEM

Chris Wilson chris at chris-wilson.co.uk
Thu Sep 19 20:05:09 UTC 2019


Quoting Ramalingam C (2019-09-19 19:04:33)
> When LMEM is supported, dumb buffer preferred to be created from LMEM.
> 
> This is developed on top of v3 LMEM series
> https://patchwork.freedesktop.org/series/56683/.
> 
> Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
> cc: Matthew Auld <matthew.auld at intel.com>
> ---
>  drivers/gpu/drm/i915/i915_gem.c | 18 ++++++++++++++----
>  1 file changed, 14 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> index e458507b1558..c0decbd020ce 100644
> --- a/drivers/gpu/drm/i915/i915_gem.c
> +++ b/drivers/gpu/drm/i915/i915_gem.c
> @@ -161,7 +161,7 @@ static int
>  i915_gem_create(struct drm_file *file,
>                 struct drm_i915_private *dev_priv,
>                 u64 *size_p,
> -               u32 *handle_p)
> +               u32 *handle_p, enum intel_region_id mem_region)

General pattern is to keep outparams last.
-Chris


More information about the Intel-gfx mailing list