diff --git a/shared/source/memory_manager/graphics_allocation.cpp b/shared/source/memory_manager/graphics_allocation.cpp index 68eee7f857..528f6f3afb 100644 --- a/shared/source/memory_manager/graphics_allocation.cpp +++ b/shared/source/memory_manager/graphics_allocation.cpp @@ -142,7 +142,8 @@ void GraphicsAllocation::updateCompletionDataForAllocationAndFragments(uint64_t bool GraphicsAllocation::hasAllocationReadOnlyType() { if (allocationType == AllocationType::kernelIsa || allocationType == AllocationType::kernelIsaInternal || - allocationType == AllocationType::commandBuffer) { + allocationType == AllocationType::commandBuffer || + allocationType == AllocationType::ringBuffer) { return true; } diff --git a/shared/test/unit_test/memory_manager/graphics_allocation_tests.cpp b/shared/test/unit_test/memory_manager/graphics_allocation_tests.cpp index 41120c502a..2f6d4facbd 100644 --- a/shared/test/unit_test/memory_manager/graphics_allocation_tests.cpp +++ b/shared/test/unit_test/memory_manager/graphics_allocation_tests.cpp @@ -640,4 +640,10 @@ TEST(GraphicsAllocationTest, givenGraphicsAllocationsWhenAllocationTypeIsLinearS graphicsAllocation.hasAllocationReadOnlyTypeCallBase = true; graphicsAllocation.allocationType = AllocationType::linearStream; EXPECT_FALSE(graphicsAllocation.hasAllocationReadOnlyType()); +} +TEST(GraphicsAllocationTest, givenGraphicsAllocationsWhenAllocationTypeIsRingBufferThenAllocationHasReadonlyType) { + MockGraphicsAllocation graphicsAllocation; + graphicsAllocation.hasAllocationReadOnlyTypeCallBase = true; + graphicsAllocation.allocationType = AllocationType::ringBuffer; + EXPECT_TRUE(graphicsAllocation.hasAllocationReadOnlyType()); } \ No newline at end of file