mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-21 11:00:11 +01:00
Add a new buffer flag.
Fix up some comments.
This commit is contained in:
parent
3802f9adbf
commit
ae96e26419
1 changed files with 16 additions and 9 deletions
|
|
@ -696,21 +696,28 @@ typedef struct drm_ttm_arg {
|
||||||
* Status flags. Can be read to determine the actual state of a buffer.
|
* Status flags. Can be read to determine the actual state of a buffer.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Pinned buffer. */
|
/*
|
||||||
|
* Cannot evict this buffer. Not even with force. This type of buffer should
|
||||||
|
* only be available for root, and must be manually removed before buffer
|
||||||
|
* manager shutdown or swapout.
|
||||||
|
*/
|
||||||
#define DRM_BO_FLAG_NO_EVICT 0x00000010
|
#define DRM_BO_FLAG_NO_EVICT 0x00000010
|
||||||
/* Always keep a system memory shadow to a vram buffer */
|
/* Always keep a system memory shadow to a vram buffer */
|
||||||
#define DRM_BO_FLAG_SHADOW_VRAM 0x00000020
|
#define DRM_BO_FLAG_SHADOW_VRAM 0x00000020
|
||||||
/* When mapped for reading, make sure the buffer is cached even
|
/* The buffer is shareable with other processes */
|
||||||
if it means moving the buffer to system memory */
|
|
||||||
#define DRM_BO_FLAG_SHAREABLE 0x00000040
|
#define DRM_BO_FLAG_SHAREABLE 0x00000040
|
||||||
|
/* The buffer is currently cached */
|
||||||
|
#define DRM_BO_FLAG_CACHED 0x00000080
|
||||||
|
/* Make sure that every time this buffer is validated, it ends up on the same
|
||||||
|
* location. The buffer will also not be evicted when claiming space for
|
||||||
|
* other buffers. Basically a pinned buffer but it may be thrown out as
|
||||||
|
* part of buffer manager shutdown or swapout. Not supported yet.*/
|
||||||
|
#define DRM_BO_FLAG_NO_MOVE 0x00000100
|
||||||
|
|
||||||
|
/* Make sure the buffer is in cached memory when mapped for reading */
|
||||||
|
#define DRM_BO_FLAG_READ_CACHED 0x00080000
|
||||||
/* When there is a choice between VRAM and TT, prefer VRAM.
|
/* When there is a choice between VRAM and TT, prefer VRAM.
|
||||||
The default behaviour is to prefer TT. */
|
The default behaviour is to prefer TT. */
|
||||||
#define DRM_BO_FLAG_CACHED 0x00000080
|
|
||||||
/* The buffer is shareable with other processes */
|
|
||||||
|
|
||||||
|
|
||||||
#define DRM_BO_FLAG_READ_CACHED 0x00080000
|
|
||||||
/* The buffer is currently cached */
|
|
||||||
#define DRM_BO_FLAG_PREFER_VRAM 0x00040000
|
#define DRM_BO_FLAG_PREFER_VRAM 0x00040000
|
||||||
/* Bind this buffer cached if the hardware supports it. */
|
/* Bind this buffer cached if the hardware supports it. */
|
||||||
#define DRM_BO_FLAG_BIND_CACHED 0x0002000
|
#define DRM_BO_FLAG_BIND_CACHED 0x0002000
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue