Commit ea884f09 authored by Chris Wilson's avatar Chris Wilson

drm/i915/cmdparser: Check for SKIP descriptors first

If the command descriptor says to skip it, ignore checking for anyother
other conflict.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-37-chris@chris-wilson.co.uk
parent efdfd91f
...@@ -1046,6 +1046,9 @@ static bool check_cmd(const struct intel_engine_cs *engine, ...@@ -1046,6 +1046,9 @@ static bool check_cmd(const struct intel_engine_cs *engine,
const bool is_master, const bool is_master,
bool *oacontrol_set) bool *oacontrol_set)
{ {
if (desc->flags & CMD_DESC_SKIP)
return true;
if (desc->flags & CMD_DESC_REJECT) { if (desc->flags & CMD_DESC_REJECT) {
DRM_DEBUG_DRIVER("CMD: Rejected command: 0x%08X\n", *cmd); DRM_DEBUG_DRIVER("CMD: Rejected command: 0x%08X\n", *cmd);
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment