aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJammy Zhou2015-05-29 05:59:59 -0500
committerAlex Deucher2015-08-05 12:47:50 -0500
commit40c53360437fec5faee83f0b64bb6756926d2fe0 (patch)
tree8b6a890d59082799ce18369ab00c9a0d12244189 /amdgpu/amdgpu.h
parentef9aa370bb3a5e1725998a4b31237ffc14a062b0 (diff)
downloadexternal-libdrm-40c53360437fec5faee83f0b64bb6756926d2fe0.tar.gz
external-libdrm-40c53360437fec5faee83f0b64bb6756926d2fe0.tar.xz
external-libdrm-40c53360437fec5faee83f0b64bb6756926d2fe0.zip
amdgpu: get rid of IB pool management v3
v1: by Jammy Zhou v2: remove bo wait when destroy IB by Jammy Zhou v3: more cleanups by Marek Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'amdgpu/amdgpu.h')
-rw-r--r--amdgpu/amdgpu.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h
index 302f1dc4..bef7bf58 100644
--- a/amdgpu/amdgpu.h
+++ b/amdgpu/amdgpu.h
@@ -56,14 +56,6 @@ struct drm_amdgpu_info_hw_ip;
56 */ 56 */
57#define AMDGPU_TIMEOUT_INFINITE 0xffffffffffffffffull 57#define AMDGPU_TIMEOUT_INFINITE 0xffffffffffffffffull
58 58
59/**
60 * The special flag to mark that this IB will re-used
61 * by client and should not be automatically return back
62 * to free pool by libdrm_amdgpu when submission is completed.
63 *
64 * \sa amdgpu_cs_ib_info
65*/
66#define AMDGPU_CS_REUSE_IB 0x2
67 59
68/*--------------------------------------------------------------------------*/ 60/*--------------------------------------------------------------------------*/
69/* ----------------------------- Enums ------------------------------------ */ 61/* ----------------------------- Enums ------------------------------------ */
@@ -969,9 +961,6 @@ int amdgpu_cs_alloc_ib(amdgpu_context_handle context,
969 * >0 - AMD specific error code\n 961 * >0 - AMD specific error code\n
970 * <0 - Negative POSIX Error code 962 * <0 - Negative POSIX Error code
971 * 963 *
972 * \note Libdrm_amdgpu will guarantee that it will correctly detect when it
973 * is safe to return IB to free pool
974 *
975 * \sa amdgpu_cs_alloc_ib() 964 * \sa amdgpu_cs_alloc_ib()
976 * 965 *
977*/ 966*/
@@ -1007,14 +996,6 @@ int amdgpu_cs_free_ib(amdgpu_ib_handle handle);
1007 * >0 - AMD specific error code\n 996 * >0 - AMD specific error code\n
1008 * <0 - Negative POSIX Error code 997 * <0 - Negative POSIX Error code
1009 * 998 *
1010 * \note It is assumed that by default IB will be returned to free pool
1011 * automatically by libdrm_amdgpu when submission will completed.
1012 * It is possible for UMD to make decision to re-use the same IB in
1013 * this case it should be explicitly freed.\n
1014 * Accordingly, by default, after submission UMD should not touch passed
1015 * IBs. If UMD needs to re-use IB then the special flag AMDGPU_CS_REUSE_IB
1016 * must be passed.
1017 *
1018 * \note It is required to pass correct resource list with buffer handles 999 * \note It is required to pass correct resource list with buffer handles
1019 * which will be accessible by command buffers from submission 1000 * which will be accessible by command buffers from submission
1020 * This will allow kernel driver to correctly implement "paging". 1001 * This will allow kernel driver to correctly implement "paging".