Remove osContextCount parameter from GraphicsAllocation

Change-Id: I23b650e97f107008b1122a1ecea48722fe129863
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-02-11 10:02:27 +01:00
committed by sys_ocldev
parent dc181defba
commit 12da1b0616
23 changed files with 141 additions and 139 deletions

View File

@@ -345,7 +345,7 @@ HWTEST_F(HwHelperTest, givenCreatedSurfaceStateBufferWhenAllocationProvidedThenU
uint64_t gpuAddr = 0x4000u;
size_t allocSize = size;
length.Length = static_cast<uint32_t>(allocSize - 1);
GraphicsAllocation allocation(cpuAddr, gpuAddr, 0u, allocSize, 0, false);
GraphicsAllocation allocation(cpuAddr, gpuAddr, 0u, allocSize, false);
allocation.gmm = new Gmm(allocation.getUnderlyingBuffer(), allocation.getUnderlyingBufferSize(), false);
ASSERT_NE(nullptr, allocation.gmm);
SURFACE_TYPE type = RENDER_SURFACE_STATE::SURFACE_TYPE_SURFTYPE_BUFFER;
@@ -383,7 +383,7 @@ HWTEST_F(HwHelperTest, givenCreatedSurfaceStateBufferWhenGmmAndAllocationCompres
void *cpuAddr = reinterpret_cast<void *>(0x4000);
uint64_t gpuAddr = 0x4000u;
size_t allocSize = size;
GraphicsAllocation allocation(cpuAddr, gpuAddr, 0u, allocSize, 0, false);
GraphicsAllocation allocation(cpuAddr, gpuAddr, 0u, allocSize, false);
allocation.gmm = new Gmm(allocation.getUnderlyingBuffer(), allocation.getUnderlyingBufferSize(), false);
ASSERT_NE(nullptr, allocation.gmm);
allocation.gmm->isRenderCompressed = true;
@@ -417,7 +417,7 @@ HWTEST_F(HwHelperTest, givenCreatedSurfaceStateBufferWhenGmmCompressionEnabledAn
void *cpuAddr = reinterpret_cast<void *>(0x4000);
uint64_t gpuAddr = 0x4000u;
size_t allocSize = size;
GraphicsAllocation allocation(cpuAddr, gpuAddr, 0u, allocSize, 0, false);
GraphicsAllocation allocation(cpuAddr, gpuAddr, 0u, allocSize, false);
allocation.gmm = new Gmm(allocation.getUnderlyingBuffer(), allocation.getUnderlyingBufferSize(), false);
ASSERT_NE(nullptr, allocation.gmm);
allocation.gmm->isRenderCompressed = true;
@@ -450,7 +450,7 @@ HWTEST_F(HwHelperTest, givenCreatedSurfaceStateBufferWhenGmmCompressionDisabledA
void *cpuAddr = reinterpret_cast<void *>(0x4000);
uint64_t gpuAddr = 0x4000u;
size_t allocSize = size;
GraphicsAllocation allocation(cpuAddr, gpuAddr, 0u, allocSize, 0, false);
GraphicsAllocation allocation(cpuAddr, gpuAddr, 0u, allocSize, false);
allocation.gmm = new Gmm(allocation.getUnderlyingBuffer(), allocation.getUnderlyingBufferSize(), false);
ASSERT_NE(nullptr, allocation.gmm);
allocation.setAllocationType(GraphicsAllocation::AllocationType::BUFFER_COMPRESSED);
@@ -483,7 +483,7 @@ HWTEST_F(HwHelperTest, givenCreatedSurfaceStateBufferWhenGmmAndAllocationCompres
void *cpuAddr = reinterpret_cast<void *>(0x4000);
uint64_t gpuAddr = 0x4000u;
size_t allocSize = size;
GraphicsAllocation allocation(cpuAddr, gpuAddr, 0u, allocSize, 0, false);
GraphicsAllocation allocation(cpuAddr, gpuAddr, 0u, allocSize, false);
allocation.gmm = new Gmm(allocation.getUnderlyingBuffer(), allocation.getUnderlyingBufferSize(), false);
ASSERT_NE(nullptr, allocation.gmm);
allocation.gmm->isRenderCompressed = true;

View File

@@ -676,12 +676,12 @@ HWCMDTEST_F(IGFX_GEN8_CORE, KernelCommandsTest, usedBindingTableStatePointersFor
// setup global memory
char globalBuffer[16];
GraphicsAllocation gfxGlobalAlloc(globalBuffer, castToUint64(globalBuffer), 0llu, sizeof(globalBuffer), 1u, false);
GraphicsAllocation gfxGlobalAlloc(globalBuffer, castToUint64(globalBuffer), 0llu, sizeof(globalBuffer), false);
program.setGlobalSurface(&gfxGlobalAlloc);
// setup constant memory
char constBuffer[16];
GraphicsAllocation gfxConstAlloc(constBuffer, castToUint64(constBuffer), 0llu, sizeof(constBuffer), 1u, false);
GraphicsAllocation gfxConstAlloc(constBuffer, castToUint64(constBuffer), 0llu, sizeof(constBuffer), false);
program.setConstantSurface(&gfxConstAlloc);
// create kernel