drm/i915: execlist request keeps ptr/ref to gem_request
Add a reference and pointer from the execlist queue item to the associated gem request. For execlist requests that don't have a request, create one as a placeholder. Issue: VIZ-4274 v1: Rebase after upstream of "Replace seqno values with request structures" patchset. Signed-off-by: Nick Hoath <nicholas.hoath@intel.com> Reviewed-by: Thomas Daniel <thomas.daniel@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:

committad av
Daniel Vetter

förälder
16f3f658e5
incheckning
2d12955a3e
@@ -39,7 +39,9 @@ void intel_logical_ring_cleanup(struct intel_engine_cs *ring);
|
||||
int intel_logical_rings_init(struct drm_device *dev);
|
||||
|
||||
int logical_ring_flush_all_caches(struct intel_ringbuffer *ringbuf);
|
||||
void intel_logical_ring_advance_and_submit(struct intel_ringbuffer *ringbuf);
|
||||
void intel_logical_ring_advance_and_submit(
|
||||
struct intel_ringbuffer *ringbuf,
|
||||
struct drm_i915_gem_request *request);
|
||||
/**
|
||||
* intel_logical_ring_advance() - advance the ringbuffer tail
|
||||
* @ringbuf: Ringbuffer to advance.
|
||||
@@ -110,6 +112,8 @@ struct intel_ctx_submit_request {
|
||||
struct list_head execlist_link;
|
||||
|
||||
int elsp_submitted;
|
||||
|
||||
struct drm_i915_gem_request *request;
|
||||
};
|
||||
|
||||
void intel_lrc_irq_handler(struct intel_engine_cs *ring);
|
||||
|
Referens i nytt ärende
Block a user