mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: Mark buffer objects that are used as atomic counter buffers
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
f1261db1ee
commit
7bd6dfe934
2 changed files with 2 additions and 0 deletions
|
|
@ -2770,6 +2770,7 @@ set_atomic_buffer_binding(struct gl_context *ctx,
|
|||
} else {
|
||||
binding->Offset = offset;
|
||||
binding->Size = size;
|
||||
bufObj->UsageHistory |= USAGE_ATOMIC_COUNTER_BUFFER;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1470,6 +1470,7 @@ struct gl_buffer_mapping {
|
|||
typedef enum {
|
||||
USAGE_UNIFORM_BUFFER = 0x1,
|
||||
USAGE_TEXTURE_BUFFER = 0x2,
|
||||
USAGE_ATOMIC_COUNTER_BUFFER = 0x4,
|
||||
} gl_buffer_usage;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue