diff options
author | Marek Olšák <[email protected]> | 2015-08-08 14:02:02 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-04-19 18:10:30 +0200 |
commit | 7997b5f005d4051e84bf64d6d1294f3da5076e5a (patch) | |
tree | 0cb49d40a557127e90c7237d6c26ad0b44bd8118 /src/gallium/winsys/amdgpu/drm/amdgpu_cs.h | |
parent | e78170f388fdabf3b981839ae265632b974f5569 (diff) |
winsys/amdgpu: Add support for const IB.
v2: Use the correct IB to update request (Bas Nieuwenhuizen)
v3: Add preamble IB. (Bas Nieuwenhuizen)
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/winsys/amdgpu/drm/amdgpu_cs.h')
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_cs.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h index 888b85b77b1..4ed830b34b7 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h @@ -59,8 +59,17 @@ struct amdgpu_ib { unsigned used_ib_space; }; +enum { + IB_CONST_PREAMBLE = 0, + IB_CONST = 1, /* the const IB must be first */ + IB_MAIN = 2, + IB_NUM +}; + struct amdgpu_cs { struct amdgpu_ib main; /* must be first because this is inherited */ + struct amdgpu_ib const_ib; /* optional constant engine IB */ + struct amdgpu_ib const_preamble_ib; struct amdgpu_ctx *ctx; /* Flush CS. */ @@ -70,7 +79,7 @@ struct amdgpu_cs { /* amdgpu_cs_submit parameters */ enum ring_type ring_type; struct amdgpu_cs_request request; - struct amdgpu_cs_ib_info ib; + struct amdgpu_cs_ib_info ib[IB_NUM]; /* Buffers. */ unsigned max_num_buffers; |