diff options
author | Jerome Glisse <glisse@freedesktop.org> | 2008-03-10 23:35:07 +0100 |
---|---|---|
committer | John Doe <glisse@freedesktop.org> | 2008-03-10 23:35:07 +0100 |
commit | a7dc4d08b9b4f8fe6fcaa4c778f6dd3718d1e36a (patch) | |
tree | b287fd9fbbcc9d546552863f93f264c4e48bdffd /shared-core/radeon_ms_drm.h | |
parent | 75c9e0d3462f04766d490fac5cc93569957a8365 (diff) |
rradeon_ms: rework fence code and bring radeon ms up to date
Diffstat (limited to 'shared-core/radeon_ms_drm.h')
-rw-r--r-- | shared-core/radeon_ms_drm.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/shared-core/radeon_ms_drm.h b/shared-core/radeon_ms_drm.h index 842d5331..39c050ad 100644 --- a/shared-core/radeon_ms_drm.h +++ b/shared-core/radeon_ms_drm.h @@ -30,16 +30,23 @@ #ifndef __RADEON_MS_DRM_H__ #define __RADEON_MS_DRM_H__ -/* fence definitions */ -/* The only fence class we support */ -#define DRM_RADEON_FENCE_CLASS_ACCEL 0 -/* Fence type that guarantees read-write flush */ -#define DRM_RADEON_FENCE_TYPE_RW 2 -/* cache flushes programmed just before the fence */ -#define DRM_RADEON_FENCE_FLAG_FLUSHED 0x01000000 +/* Fence + * We have only one fence class as we submit command through th + * same fifo so there is no need to synchronize buffer btw different + * cmd stream. + * + * Set DRM_RADEON_FENCE_FLAG_FLUSHED if you want a flush with + * emission of the fence + * + * For fence type we have the native DRM EXE type and the radeon RW + * type. + */ +#define DRM_RADEON_FENCE_CLASS_ACCEL 0 +#define DRM_RADEON_FENCE_TYPE_RW 2 +#define DRM_RADEON_FENCE_FLAG_FLUSHED 0x01000000 /* radeon ms ioctl */ -#define DRM_RADEON_EXECBUFFER 0x00 +#define DRM_RADEON_EXECBUFFER 0x00 struct drm_radeon_execbuffer_arg { uint64_t next; |