L3 programming refactor 2/n

- Rename misnamed test function
- Adjust 2 tests, so they use CSR size getters instead of hardcoded values
- Move getSizeRequiredPreambleCS() into CommandStreamReceiverHw class
- Improve PreambleHelper size estimating

Change-Id: I3f292d50e08f3d10d190c9f8722e1f0498481154
This commit is contained in:
Maciej Dziuban
2018-04-20 13:55:54 +02:00
committed by sys_ocldev
parent fb97a5c747
commit 44d35b3534
13 changed files with 85 additions and 52 deletions

View File

@@ -60,6 +60,7 @@ class CommandStreamReceiverHw : public CommandStreamReceiver {
size_t getRequiredCmdStreamSize(const DispatchFlags &dispatchFlags);
size_t getRequiredCmdStreamSizeAligned(const DispatchFlags &dispatchFlags);
size_t getRequiredCmdSizeForPreamble() const;
size_t getCmdSizeForPreemption(const DispatchFlags &dispatchFlags) const;
size_t getCmdSizeForL3Config() const;
size_t getCmdSizeForPipelineSelect() const;
@@ -107,6 +108,4 @@ class CommandStreamReceiverHw : public CommandStreamReceiver {
std::unique_ptr<KmdNotifyHelper> kmdNotifyHelper;
};
template <typename GfxFamily>
size_t getSizeRequiredPreambleCS(const Device &device);
} // namespace OCLRT