SYNOPSIS
- int intel_logical_ring_begin(struct drm_i915_gem_request * req, int num_dwords);
ARGUMENTS
req
-
- The request to start some new work for
num_dwords
- number of DWORDs that we plan to write to the ringbuffer.
DESCRIPTION
The ringbuffer might not be ready to accept the commands right away (maybe it needs to be wrapped, or wait a bit for the tail to be updated). This function takes care of that and also preallocates a request (every workload submission is still mediated through requests, same as it did with legacy ringbuffer submission).
RETURN
non-zero if the ringbuffer is not ready to be written to.
AUTHORS
Jesse Barnes <[email protected]>
Intel Corporation,
- Initial version
Laurent Pinchart <[email protected]>
Ideas on board SPRL,
- Driver internals
Daniel Vetter <[email protected]>
Intel Corporation,
- Contributions all over the place
Lukas Wunner <[email protected]>
- vga_switcheroo documentation
COPYRIGHT