Add support for PRELIM_I915_PARAM_SET_PAIR

This extension allows pairing two buffer objects so they can be
exported using a single dma-buf handle. When imported, a single
buffer object is created with a total size of the two buffer
objects.

Related-To: LOCI-3355

Sync to
https://github.com/intel-gpu/drm-uapi-helper/releases/tag/v2.0-rc15

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2022-09-20 07:07:59 +00:00
committed by Compute-Runtime-Automation
parent 3d0b6973fe
commit a3b3f3e86e
28 changed files with 322 additions and 46 deletions

View File

@@ -248,6 +248,10 @@ struct prelim_drm_i915_gem_context_create_ext_clone {
/* Recoverable pagefault support */
#define PRELIM_I915_PARAM_HAS_PAGE_FAULT (PRELIM_I915_PARAM | 7)
/* Implicit scale support */
#define PRELIM_I915_PARAM_HAS_SET_PAIR (PRELIM_I915_PARAM | 8)
/* End getparam */
struct prelim_drm_i915_gem_create_ext {
@@ -301,6 +305,7 @@ struct prelim_drm_i915_gem_object_param {
* .param = PRELIM_I915_OBJECT_PARAM | PRELIM_I915_PARAM_MEMORY_REGIONS
*/
#define PRELIM_I915_PARAM_MEMORY_REGIONS ((1 << 16) | 0x1)
#define PRELIM_I915_PARAM_SET_PAIR ((1 << 17) | 0x1)
__u64 param;
/* Data value or pointer */