[Intel-gfx] [PATCH] drm/i915: Use the precomputed value for whether to enable command parsing
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Thu Nov 24 12:26:18 UTC 2016
On to, 2016-11-24 at 11:31 +0000, Chris Wilson wrote:
> As i915.enable_cmd_parser is an unsafe option, make it read-only at
> runtime. Now that it is constant, we can use the value determined during
> initialisation as to whether we need the cmdparser at execbuffer time.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
> drivers/gpu/drm/i915/i915_cmd_parser.c | 21 ---------------------
> drivers/gpu/drm/i915/i915_drv.h | 1 -
> drivers/gpu/drm/i915/i915_params.c | 6 +++---
> drivers/gpu/drm/i915/i915_params.h | 2 +-
> drivers/gpu/drm/i915/intel_ringbuffer.h | 15 +++++++++++++++
Just remove the whole getter function. With that;
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Regards, joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
More information about the Intel-gfx
mailing list