]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: Use the precomputed value for whether to enable command parsing
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Nov 2016 12:58:51 +0000 (12:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Nov 2016 13:52:34 +0000 (13:52 +0000)
commit41736a8e3331a67445b271e73be39536c498659e
tree1128fddac2c5b545116b581c2734803406f22a06
parent9607ae79710afb453173b90d5bf564788a6e09b1
drm/i915: Use the precomputed value for whether to enable command parsing

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.

v2: Remove the inline for its single user, it is clear enough (and
shorter) without!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161124125851.6615-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_cmd_parser.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_execbuffer.c
drivers/gpu/drm/i915/i915_params.c
drivers/gpu/drm/i915/i915_params.h