intel_lr_context_size(9) return the size of the context for an engine

SYNOPSIS

uint32_t intel_lr_context_size(struct intel_engine_cs * engine);

ARGUMENTS

engine

-- undescribed --

DESCRIPTION

Each engine may require a different amount of space for a context image, so when allocating (or copying) an image, this function can be used to find the right size for the specific engine.

RETURN

size (in bytes) of an engine-specific context image

NOTE

this size includes the HWSP, which is part of the context image in LRC mode, but does not include the "shared data page" used with GuC submission. The caller should account for this if using the GuC.

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