mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
Remove isCleanLeftoverMemoryRequired() + refactor sampler support path
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6073702941
commit
52b63be026
@@ -86,7 +86,8 @@ class CommandStreamReceiverHw : public CommandStreamReceiver {
|
||||
const LinearStream *dsh,
|
||||
const LinearStream *ioh,
|
||||
const LinearStream *ssh,
|
||||
uint64_t generalStateBase);
|
||||
uint64_t generalStateBase,
|
||||
bool imagesSupported);
|
||||
|
||||
void collectStateBaseAddresIohPatchInfo(uint64_t commandBufferAddress, uint64_t commandOffset, const LinearStream &ioh);
|
||||
|
||||
|
||||
@@ -444,7 +444,8 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
|
||||
EncodeWA<GfxFamily>::encodeAdditionalPipelineSelect(commandStreamCSR, dispatchFlags.pipelineSelectArgs, false, hwInfo, isRcs());
|
||||
|
||||
if (DebugManager.flags.AddPatchInfoCommentsForAUBDump.get()) {
|
||||
collectStateBaseAddresPatchInfo(commandStream.getGraphicsAllocation()->getGpuAddress(), stateBaseAddressCmdOffset, dsh, ioh, ssh, newGSHbase);
|
||||
collectStateBaseAddresPatchInfo(commandStream.getGraphicsAllocation()->getGpuAddress(), stateBaseAddressCmdOffset, dsh, ioh, ssh, newGSHbase,
|
||||
device.getDeviceInfo().imageSupport);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -998,10 +999,11 @@ void CommandStreamReceiverHw<GfxFamily>::collectStateBaseAddresPatchInfo(
|
||||
const LinearStream *dsh,
|
||||
const LinearStream *ioh,
|
||||
const LinearStream *ssh,
|
||||
uint64_t generalStateBase) {
|
||||
uint64_t generalStateBase,
|
||||
bool imagesSupported) {
|
||||
|
||||
typedef typename GfxFamily::STATE_BASE_ADDRESS STATE_BASE_ADDRESS;
|
||||
if constexpr (GfxFamily::supportsSampler) {
|
||||
if (imagesSupported) {
|
||||
PatchInfoData dynamicStatePatchInfo = {dsh->getGraphicsAllocation()->getGpuAddress(), 0u, PatchInfoAllocationType::DynamicStateHeap, baseAddress, commandOffset + STATE_BASE_ADDRESS::PATCH_CONSTANTS::DYNAMICSTATEBASEADDRESS_BYTEOFFSET, PatchInfoAllocationType::Default};
|
||||
flatBatchBufferHelper->setPatchInfoData(dynamicStatePatchInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user