mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
gallium: Add PIPE_BUFFER_USAGE_DISCARD.
When passed to map() signals that the buffer's previous contents are not required, allowing the driver to allocate a new buffer if the current buffer can not be mapped immediately.
This commit is contained in:
parent
11f91936f2
commit
0521c2682a
1 changed files with 1 additions and 0 deletions
|
|
@ -204,6 +204,7 @@ enum pipe_texture_target {
|
|||
#define PIPE_BUFFER_USAGE_VERTEX (1 << 5)
|
||||
#define PIPE_BUFFER_USAGE_INDEX (1 << 6)
|
||||
#define PIPE_BUFFER_USAGE_CONSTANT (1 << 7)
|
||||
#define PIPE_BUFFER_USAGE_DISCARD (1 << 8)
|
||||
/** Pipe driver custom usage flags should be greater or equal to this value */
|
||||
#define PIPE_BUFFER_USAGE_CUSTOM (1 << 16)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue