mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
iris: Add comments to BO_ALLOC flags
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28864>
This commit is contained in:
parent
7a1779edc7
commit
a51c64ac5c
1 changed files with 25 additions and 11 deletions
|
|
@ -348,17 +348,31 @@ struct iris_bo {
|
|||
};
|
||||
};
|
||||
|
||||
#define BO_ALLOC_PLAIN 0
|
||||
#define BO_ALLOC_ZEROED (1<<0)
|
||||
#define BO_ALLOC_COHERENT (1<<1)
|
||||
#define BO_ALLOC_SMEM (1<<2)
|
||||
#define BO_ALLOC_SCANOUT (1<<3)
|
||||
#define BO_ALLOC_NO_SUBALLOC (1<<4)
|
||||
#define BO_ALLOC_LMEM (1<<5)
|
||||
#define BO_ALLOC_PROTECTED (1<<6)
|
||||
#define BO_ALLOC_SHARED (1<<7)
|
||||
#define BO_ALLOC_CAPTURE (1<<8)
|
||||
#define BO_ALLOC_CPU_VISIBLE (1<<9)
|
||||
/* No special attributes. */
|
||||
#define BO_ALLOC_PLAIN 0
|
||||
/* Content is set to 0, only done in cache and slabs code paths. */
|
||||
#define BO_ALLOC_ZEROED (1<<0)
|
||||
/* Allocate a cached and coherent BO, this has a performance cost in
|
||||
* integrated platforms without LLC.
|
||||
* Should only be used in BOs that will be written and read from CPU often.
|
||||
*/
|
||||
#define BO_ALLOC_COHERENT (1<<1)
|
||||
/* Place BO only on smem. */
|
||||
#define BO_ALLOC_SMEM (1<<2)
|
||||
/* BO can be sent to display. */
|
||||
#define BO_ALLOC_SCANOUT (1<<3)
|
||||
/* No sub-allocation(slabs). */
|
||||
#define BO_ALLOC_NO_SUBALLOC (1<<4)
|
||||
/* Place BO only on lmem. */
|
||||
#define BO_ALLOC_LMEM (1<<5)
|
||||
/* Content is protected, can't be mapped and needs special handling. */
|
||||
#define BO_ALLOC_PROTECTED (1<<6)
|
||||
/* BO can be exported to other applications. */
|
||||
#define BO_ALLOC_SHARED (1<<7)
|
||||
/* BO will be captured in the KMD error dump. */
|
||||
#define BO_ALLOC_CAPTURE (1<<8)
|
||||
/* Can be mapped. */
|
||||
#define BO_ALLOC_CPU_VISIBLE (1<<9)
|
||||
|
||||
/**
|
||||
* Allocate a buffer object.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue