mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:20:26 +08:00
Fix dumping allocations when BCS copy is allowed
Change-Id: I0d56e0d2e8007e7dc1686fab0e40502b658c254e Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
@@ -42,6 +42,14 @@ constexpr auto nonSharedResource = 0u;
|
||||
class Gmm;
|
||||
class MemoryManager;
|
||||
|
||||
struct AubInfo {
|
||||
uint32_t aubWritable = std::numeric_limits<uint32_t>::max();
|
||||
uint32_t tbxWritable = std::numeric_limits<uint32_t>::max();
|
||||
bool allocDumpable = false;
|
||||
bool bcsDumpOnly = false;
|
||||
bool memObjectsAllocationWithWritableFlags = false;
|
||||
};
|
||||
|
||||
class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
public:
|
||||
enum class AllocationType {
|
||||
@@ -158,7 +166,10 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
bool isAubWritable(uint32_t banks) const;
|
||||
void setTbxWritable(bool writable, uint32_t banks);
|
||||
bool isTbxWritable(uint32_t banks) const;
|
||||
void setAllocDumpable(bool dumpable) { aubInfo.allocDumpable = dumpable; }
|
||||
void setAllocDumpable(bool dumpable, bool bcsDumpOnly) {
|
||||
aubInfo.allocDumpable = dumpable;
|
||||
aubInfo.bcsDumpOnly = bcsDumpOnly;
|
||||
}
|
||||
bool isAllocDumpable() const { return aubInfo.allocDumpable; }
|
||||
bool isMemObjectsAllocationWithWritableFlags() const { return aubInfo.memObjectsAllocationWithWritableFlags; }
|
||||
void setMemObjectsAllocationWithWritableFlags(bool newValue) { aubInfo.memObjectsAllocationWithWritableFlags = newValue; }
|
||||
@@ -240,6 +251,8 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
|
||||
bool isAllocatedInLocalMemoryPool() const { return (this->memoryPool == MemoryPool::LocalMemory); }
|
||||
|
||||
const AubInfo &getAubInfo() const { return aubInfo; }
|
||||
|
||||
OsHandleStorage fragmentsStorage;
|
||||
StorageInfo storageInfo = {};
|
||||
|
||||
@@ -255,12 +268,7 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
uint32_t residencyTaskCount = objectNotResident;
|
||||
uint32_t inspectionId = 0u;
|
||||
};
|
||||
struct AubInfo {
|
||||
uint32_t aubWritable = std::numeric_limits<uint32_t>::max();
|
||||
uint32_t tbxWritable = std::numeric_limits<uint32_t>::max();
|
||||
bool allocDumpable = false;
|
||||
bool memObjectsAllocationWithWritableFlags = false;
|
||||
};
|
||||
|
||||
struct SharingInfo {
|
||||
uint32_t reuseCount = 0;
|
||||
osHandle sharedHandle = Sharing::nonSharedResource;
|
||||
|
||||
Reference in New Issue
Block a user