Create enum values for I915 tiling mode

Related-To: NEO-6852, NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-06-21 17:41:40 +02:00
committed by Compute-Runtime-Automation
parent f46f409cc4
commit 70cef0cfe8
12 changed files with 44 additions and 27 deletions

View File

@@ -177,7 +177,7 @@ class DrmMockCustom : public Drm {
uint32_t setTilingHandle = 0;
uint32_t setTilingStride = 0;
//DRM_IOCTL_I915_GEM_GET_TILING
uint32_t getTilingModeOut = I915_TILING_NONE;
uint32_t getTilingModeOut = 0;
uint32_t getTilingHandleIn = 0;
//DRM_IOCTL_PRIME_FD_TO_HANDLE
uint32_t outputHandle = 0;

View File

@@ -17,16 +17,14 @@
class TestedBufferObject : public BufferObject {
public:
using BufferObject::handle;
using BufferObject::tilingMode;
TestedBufferObject(Drm *drm) : BufferObject(drm, 3, 1, 0, 1) {
}
TestedBufferObject(Drm *drm, size_t size) : BufferObject(drm, 3, 1, size, 1) {
}
void tileBy(uint32_t mode) {
this->tilingMode = mode;
}
void fillExecObject(ExecObject &execObject, OsContext *osContext, uint32_t vmHandleId, uint32_t drmContextId) override {
BufferObject::fillExecObject(execObject, osContext, vmHandleId, drmContextId);
execObjectPointerFilled = &execObject;