]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Split the ringbuffers from the rings (1/3)
authorOscar Mateo <oscar.mateo@intel.com>
Thu, 22 May 2014 13:13:34 +0000 (14:13 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 May 2014 21:02:16 +0000 (23:02 +0200)
commitafa4277571957023ce90a18698208baa7448a86c
tree13eedaf2b463f0cf21d76cfa559e087ac2fb3647
parent5b52ee7a5388e11f244c46df222898881303c241
drm/i915: Split the ringbuffers from the rings (1/3)

As advanced by the previous patch, the ringbuffers and the engine
command streamers belong in different structs. This is so because,
while they used to be tightly coupled together, the new Logical
Ring Contexts (LRC for short) have a ringbuffer each.

In legacy code, we will use the buffer* pointer inside each ring
to get to the pertaining ringbuffer (the actual switch will be
done in the next patch). In the new Execlists code, this pointer
will be NULL and we will use instead the one inside the context
instead.

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h