Skip to contentSkip to conversation

drm/radeon: add a CS flag END_OF_FRAME

PATCH In review Marek Olšák 2 participants 2 messages Dec 2, 2012 – Dec 3, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon: add a CS flag END_OF_FRAME

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.

---
 include/uapi/drm/radeon_drm.h |    1 +
 1 file changed, 1 insertion(+)
include/uapi/drm/radeon_drm.h +1 -0
index 4766c0f..0c8a62c 100644
@@ -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
Signature · 6 lines
1.7.10.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Marek Olšák

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.

Looks good to me. Seems like it would be handy for a number of things.

Quoted 21 lines
---
 include/uapi/drm/radeon_drm.h |    1 +
 1 file changed, 1 insertion(+)
include/uapi/drm/radeon_drm.h +1 -1
index 4766c0f..0c8a62c 100644
@@ -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
--

1.7.10.4

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel