mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
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:
committed by
Compute-Runtime-Automation
parent
f46f409cc4
commit
70cef0cfe8
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user