mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
Remove osContextCount parameter from GraphicsAllocation
Change-Id: I23b650e97f107008b1122a1ecea48722fe129863 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
dc181defba
commit
12da1b0616
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user