intel_execlists_ctx_id — get the Execlists Context ID
u32 intel_execlists_ctx_id ( | struct intel_context * ctx, |
struct intel_engine_cs * engine) ; |
the old context ID we pass to userspace as a handler so that they can refer to a context, and the new context ID we pass to the ELSP so that the GPU can inform us of the context status via interrupts.
The context ID is a portion of the context descriptor, so we can just extract the required part from the cached descriptor.