From: Daniel Vetter Date: Mon, 4 May 2015 12:58:33 +0000 (+0200) Subject: drm/i915: Simplify cmd-parser DISPATCH_SECURE check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6b8a4bc1ece2469ceef55f3c9423afdcb3b95c8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/i915: Simplify cmd-parser DISPATCH_SECURE check i915_needs_cmd_parser already checks that for us. Suggested-by: Mika Kuoppala Cc: Mika Kuoppala Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c index d2e21c549756..7ab63d9d7dc5 100644 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c @@ -1559,8 +1559,7 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data, * don't want that set when the command parser is * enabled. */ - if (USES_PPGTT(dev)) - dispatch_flags |= I915_DISPATCH_SECURE; + dispatch_flags |= I915_DISPATCH_SECURE; exec_start = 0; }