Skip to content

Commit ced22ff

Browse files
Enhance the list of one time AUB writable types.
Change-Id: I1eba658aa83e0d3e44009e7eca928f5916d6f9ce Signed-off-by: Mrozek, Michal <[email protected]>
1 parent 1518774 commit ced22ff

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

runtime/aub/aub_helper.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ class AubHelper : public NonCopyableOrMovableClass {
1717
public:
1818
static bool isOneTimeAubWritableAllocationType(const GraphicsAllocation::AllocationType &type) {
1919
switch (type) {
20+
case GraphicsAllocation::AllocationType::PIPE:
21+
case GraphicsAllocation::AllocationType::CONSTANT_SURFACE:
22+
case GraphicsAllocation::AllocationType::GLOBAL_SURFACE:
23+
case GraphicsAllocation::AllocationType::KERNEL_ISA:
24+
case GraphicsAllocation::AllocationType::PRIVATE_SURFACE:
25+
case GraphicsAllocation::AllocationType::SCRATCH_SURFACE:
2026
case GraphicsAllocation::AllocationType::BUFFER:
2127
case GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY:
2228
case GraphicsAllocation::AllocationType::BUFFER_COMPRESSED:

unit_tests/command_stream/aub_command_stream_receiver_1_tests.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,12 @@ HWTEST_F(AubCommandStreamReceiverTests, givenAubCommandStreamReceiverWhenWriteMe
724724
auto gfxAllocation = memoryManager->allocateGraphicsMemoryWithProperties(MockAllocationProperties{MemoryConstants::pageSize});
725725

726726
const GraphicsAllocation::AllocationType onlyOneTimeAubWritableTypes[] = {
727+
GraphicsAllocation::AllocationType::PIPE,
728+
GraphicsAllocation::AllocationType::CONSTANT_SURFACE,
729+
GraphicsAllocation::AllocationType::GLOBAL_SURFACE,
730+
GraphicsAllocation::AllocationType::KERNEL_ISA,
731+
GraphicsAllocation::AllocationType::PRIVATE_SURFACE,
732+
GraphicsAllocation::AllocationType::SCRATCH_SURFACE,
727733
GraphicsAllocation::AllocationType::BUFFER,
728734
GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY,
729735
GraphicsAllocation::AllocationType::BUFFER_COMPRESSED,

0 commit comments

Comments
 (0)