mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: override reset_stat IOCTL macro for prelim
Modified to return DRM_IOCTL_I915_GET_RESET_STATS of prelim headers as the macro values used for non-prelim is different from the prelim value due to sizeof() embedded in _IOWR() Related-To: GSD-5673 Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4e7f225ab1
commit
bf9805b0bb
@@ -802,6 +802,8 @@ unsigned int IoctlHelperPrelim20::getIoctlRequestValue(DrmIoctl ioctlRequest) co
|
||||
return PRELIM_DRM_IOCTL_I915_GEM_CLOS_FREE;
|
||||
case DrmIoctl::gemCacheReserve:
|
||||
return PRELIM_DRM_IOCTL_I915_GEM_CACHE_RESERVE;
|
||||
case DrmIoctl::getResetStats:
|
||||
return DRM_IOCTL_I915_GET_RESET_STATS;
|
||||
default:
|
||||
return IoctlHelperI915::getIoctlRequestValue(ioctlRequest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user