Skip to content

Commit

Permalink
drm/i915: Simplify cmd-parser DISPATCH_SECURE check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Vetter committed May 8, 2015
1 parent dfb601e commit c6b8a4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/i915/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c6b8a4b

Please sign in to comment.