#define AMDGPU_TIMEOUT_INFINITE 0xffffffffffffffffull
/**
- * The special flag for GFX submission to identify that this is CE IB
- * \sa amdgpu_cs_ib_info
-*/
-#define AMDGPU_CS_GFX_IB_CE 0x1
-
-/**
* The special flag to mark that this IB will re-used
* by client and should not be automatically return back
* to free pool by libdrm_amdgpu when submission is completed.
chunk_data[i].ib_data.ip_type = ibs_request->ip_type;
chunk_data[i].ib_data.ip_instance = ibs_request->ip_instance;
chunk_data[i].ib_data.ring = ibs_request->ring;
-
- if (ib->flags & AMDGPU_CS_GFX_IB_CE)
- chunk_data[i].ib_data.flags = AMDGPU_IB_FLAG_CE;
+ chunk_data[i].ib_data.flags = ib->flags;
}
pthread_mutex_lock(&context->sequence_mutex);
/* GDS is used by this IB */
#define AMDGPU_IB_FLAG_GDS (1<<1)
+/* CE Preamble */
+#define AMDGPU_IB_FLAG_PREAMBLE (1<<2)
+
struct drm_amdgpu_cs_chunk_ib {
/**
* Handle of GEM object to be used as IB or 0 if it is already in
ptr[3] = 1;
ib_info[0].ib_handle = ib_result_ce.handle;
ib_info[0].size = 4;
- ib_info[0].flags = AMDGPU_CS_GFX_IB_CE;
+ ib_info[0].flags = AMDGPU_IB_FLAG_CE;
/* IT_WAIT_ON_CE_COUNTER */
ptr = ib_result.cpu;