]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
drm/radeon: add a CS flag END_OF_FRAME
authorMarek Olšák <maraeo@gmail.com>
Sun, 2 Dec 2012 20:03:33 +0000 (21:03 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 8 Dec 2012 00:48:20 +0000 (19:48 -0500)
No version bump is required because setting the flag on older DRM has
no effect.

This only reserves the bit and doesn't use it. I assume we will use it
for buffer eviction heuristics.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
include/uapi/drm/radeon_drm.h

index 4766c0f6a83801846a35375ddbbe4355c16dbba7..0c8a62c543f7ae72b0086175f0df7a04f70479e6 100644 (file)
@@ -913,6 +913,7 @@ struct drm_radeon_gem_va {
 /* The first dword of RADEON_CHUNK_ID_FLAGS is a uint32 of these flags: */
 #define RADEON_CS_KEEP_TILING_FLAGS 0x01
 #define RADEON_CS_USE_VM            0x02
+#define RADEON_CS_END_OF_FRAME      0x04 /* a hint from userspace which CS is the last one */
 /* The second dword of RADEON_CHUNK_ID_FLAGS is a uint32 that sets the ring type */
 #define RADEON_CS_RING_GFX          0
 #define RADEON_CS_RING_COMPUTE      1