In some of the drm functions there is a pattern
to store array in unique_ptr and pass it's length
as an argument. This commit simplifies this.
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
Use structs defined in ioctl_helper.h instead of
i915 dependent ones to avoid conflicts between
different kernels
Related-To: NEO-6149
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
Related-To: NEO-6510
Check which prelim version is being used.
Select proper IoctlHelper based on that version.
If no version found, switch to upstream instead.
Source of prelim headers:
https://github.com/intel-gpu/drm-uapi-helper
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
Related-To: NEO-6472
This helper class is not used only for local memory.
IoctlHelper is more appropriate.
Signed-off-by: Szymon Morek <szymon.morek@intel.com>