]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/i915/cmdparser: Check for SKIP descriptors first
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:17:16 +0000 (17:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:37:00 +0000 (22:37 +0100)
If the command descriptor says to skip it, ignore checking for anyother
other conflict.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-37-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_cmd_parser.c

index 558077a25052b0a9c89e0779d86e06f974eac8eb..690aaf51d71546671f520174a56a3a4deb64947e 100644 (file)
@@ -1046,6 +1046,9 @@ static bool check_cmd(const struct intel_engine_cs *engine,
                      const bool is_master,
                      bool *oacontrol_set)
 {
+       if (desc->flags & CMD_DESC_SKIP)
+               return true;
+
        if (desc->flags & CMD_DESC_REJECT) {
                DRM_DEBUG_DRIVER("CMD: Rejected command: 0x%08X\n", *cmd);
                return false;