From: Chris Forbes Date: Sat, 11 Oct 2014 23:27:31 +0000 (+1300) Subject: mesa: Mark buffer objects that are used as atomic counter buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bd6dfe93401ad6d6ba5018cbe167be8ce29d09d;p=mesa.git mesa: Mark buffer objects that are used as atomic counter buffers Signed-off-by: Chris Forbes Reviewed-by: Francisco Jerez --- diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index c92056aa352..d6483080c6e 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -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; } } diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 2a01508ed6b..9f44edac63b 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -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;