mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
Graphics Allocation cleanup.
- remove one constructor - start using mock graphics allocation in tests Change-Id: Idb8f4a35dbc2cae8d6bf667bab5542d8e91d6e0d
This commit is contained in:

committed by
sys_ocldev

parent
f9ba697587
commit
7ece16ee7a
@ -19,6 +19,7 @@
|
||||
#include "unit_tests/libult/mock_gfx_family.h"
|
||||
#include "unit_tests/mocks/mock_device.h"
|
||||
#include "unit_tests/mocks/mock_gmm.h"
|
||||
#include "unit_tests/mocks/mock_graphics_allocation.h"
|
||||
#include "runtime/platform/platform.h"
|
||||
|
||||
#include "GL/gl.h"
|
||||
@ -253,7 +254,7 @@ TEST_F(GmmTests, givenTilableImageWhenEnableForceLinearImagesThenYTilingIsDisabl
|
||||
}
|
||||
|
||||
TEST_F(GmmTests, givenZeroRowPitchWhenQueryImgFromBufferParamsThenCalculate) {
|
||||
GraphicsAllocation bufferAllocation(nullptr, 4096);
|
||||
MockGraphicsAllocation bufferAllocation(nullptr, 4096);
|
||||
|
||||
cl_image_desc imgDesc{};
|
||||
imgDesc.image_type = CL_MEM_OBJECT_IMAGE2D;
|
||||
@ -269,7 +270,7 @@ TEST_F(GmmTests, givenZeroRowPitchWhenQueryImgFromBufferParamsThenCalculate) {
|
||||
}
|
||||
|
||||
TEST_F(GmmTests, givenNonZeroRowPitchWhenQueryImgFromBufferParamsThenUseUserValue) {
|
||||
GraphicsAllocation bufferAllocation(nullptr, 4096);
|
||||
MockGraphicsAllocation bufferAllocation(nullptr, 4096);
|
||||
|
||||
cl_image_desc imgDesc{};
|
||||
imgDesc.image_type = CL_MEM_OBJECT_IMAGE2D;
|
||||
|
Reference in New Issue
Block a user