mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Create a wrapper struct for drm_i915_reg_read
Related-To: NEO-6852 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
987ef450d1
commit
40e00e5c08
@ -18,6 +18,10 @@ uint32_t IoctlHelper::ioctl(Drm *drm, unsigned long request, void *arg) {
|
||||
return drm->ioctl(request, arg);
|
||||
}
|
||||
|
||||
static_assert(sizeof(RegisterRead) == sizeof(drm_i915_reg_read));
|
||||
static_assert(offsetof(RegisterRead, offset) == offsetof(drm_i915_reg_read, offset));
|
||||
static_assert(offsetof(RegisterRead, value) == offsetof(drm_i915_reg_read, val));
|
||||
|
||||
static_assert(sizeof(ExecObject) == sizeof(drm_i915_gem_exec_object2));
|
||||
|
||||
void IoctlHelper::fillExecObject(ExecObject &execObject, uint32_t handle, uint64_t gpuAddress, uint32_t drmContextId, bool bindInfo, bool isMarkedForCapture) {
|
||||
|
Reference in New Issue
Block a user