mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
programStateBaseAddress: improve code reuse
Another step towards cleaner callers of StateBaseAddressHelper<>::programStateBaseAddress. Export programming state base address into a separate function to improve code reuse and reduce copy-pasted fragments, which make code modifications or maintenance more and more difficult over time. Use specialization for gen-specific variations. Related-To: NEO-6774 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
b24ff7ffbc
commit
56cb1f757b
@ -144,7 +144,6 @@ class CommandStreamReceiverHw : public CommandStreamReceiver {
|
||||
void programL3(LinearStream &csr, uint32_t &newL3Config);
|
||||
void programPreamble(LinearStream &csr, Device &device, uint32_t &newL3Config);
|
||||
void programPipelineSelect(LinearStream &csr, PipelineSelectArgs &pipelineSelectArgs);
|
||||
void programAdditionalStateBaseAddress(LinearStream &csr, typename GfxFamily::STATE_BASE_ADDRESS &cmd, Device &device);
|
||||
void programEpilogue(LinearStream &csr, Device &device, void **batchBufferEndLocation, DispatchFlags &dispatchFlags);
|
||||
void programEpliogueCommands(LinearStream &csr, const DispatchFlags &dispatchFlags);
|
||||
void programMediaSampler(LinearStream &csr, DispatchFlags &dispatchFlags);
|
||||
|
Reference in New Issue
Block a user