*/
 
 #include "i915_drv.h"
+#include "intel_ringbuffer.h"
 
 /**
  * DOC: batch buffer command parser
                return;
        }
 
-       engine->needs_cmd_parser = true;
+       engine->flags |= I915_ENGINE_NEEDS_CMD_PARSER;
 }
 
 /**
  */
 void intel_engine_cleanup_cmd_parser(struct intel_engine_cs *engine)
 {
-       if (!engine->needs_cmd_parser)
+       if (!intel_engine_needs_cmd_parser(engine))
                return;
 
        fini_hash_table(engine);
 
        /* If the command parser is not enabled, report 0 - unsupported */
        for_each_engine(engine, dev_priv, id) {
-               if (engine->needs_cmd_parser) {
+               if (intel_engine_needs_cmd_parser(engine)) {
                        active = true;
                        break;
                }
 
 
 static inline bool eb_use_cmdparser(const struct i915_execbuffer *eb)
 {
-       return eb->engine->needs_cmd_parser && eb->batch_len;
+       return intel_engine_needs_cmd_parser(eb->engine) && eb->batch_len;
 }
 
 static int eb_create(struct i915_execbuffer *eb)
 
 
        struct intel_engine_hangcheck hangcheck;
 
-       bool needs_cmd_parser;
+#define I915_ENGINE_NEEDS_CMD_PARSER BIT(0)
+       unsigned int flags;
 
        /*
         * Table of commands the command parser needs to know about
        } stats;
 };
 
+static inline bool intel_engine_needs_cmd_parser(struct intel_engine_cs *engine)
+{
+       return engine->flags & I915_ENGINE_NEEDS_CMD_PARSER;
+}
+
 static inline void
 execlists_set_active(struct intel_engine_execlists *execlists,
                     unsigned int bit)