drm/i915: Simplify cmd-parser DISPATCH_SECURE check
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 4 May 2015 12:58:33 +0000 (14:58 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:03:09 +0000 (13:03 +0200)
i915_needs_cmd_parser already checks that for us.

Suggested-by: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/i915/i915_gem_execbuffer.c

index d2e21c549756acea95540ffeb2b4cfc022c22009..7ab63d9d7dc56bb98d7118c3b1f2d14207662f22 100644 (file)
@@ -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;
        }