diff options
| author | Christian König <deathsimple@vodafone.de> | 2012-01-05 22:11:06 -0500 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2012-01-06 04:16:09 -0500 |
| commit | 93504fce28b1a387ec01f81b26637d237dca2b36 (patch) | |
| tree | 7544b4fd960cbcbbfc17dea87aadd129eecf7b45 /include/drm | |
| parent | 721604a15b934f0a8d1909acb8017f029128be2f (diff) | |
drm/radeon/kms: Add support for multi-ring sync in CS ioctl (v2)
Use semaphores to sync buffers across rings in the CS
ioctl. Add a reloc flag to allow userspace to skip
sync for buffers.
agd5f: port to latest CS ioctl changes.
v2: add ring lock/unlock to make sure changes hit the ring.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
| -rw-r--r-- | include/drm/radeon_drm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/radeon_drm.h b/include/drm/radeon_drm.h index d7079f42624b..2a807a5669bc 100644 --- a/include/drm/radeon_drm.h +++ b/include/drm/radeon_drm.h | |||
| @@ -917,6 +917,9 @@ struct drm_radeon_cs_chunk { | |||
| 917 | uint64_t chunk_data; | 917 | uint64_t chunk_data; |
| 918 | }; | 918 | }; |
| 919 | 919 | ||
| 920 | /* drm_radeon_cs_reloc.flags */ | ||
| 921 | #define RADEON_RELOC_DONT_SYNC 0x01 | ||
| 922 | |||
| 920 | struct drm_radeon_cs_reloc { | 923 | struct drm_radeon_cs_reloc { |
| 921 | uint32_t handle; | 924 | uint32_t handle; |
| 922 | uint32_t read_domains; | 925 | uint32_t read_domains; |
