mesa: add USAGE_DISABLE_MINMAX_CACHE flag to buffer UsageHistory
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 11 Jan 2016 20:46:39 +0000 (15:46 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 3 Feb 2016 13:03:59 +0000 (14:03 +0100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/mtypes.h
src/mesa/vbo/vbo_minmax_index.c

index 28aa781790bc8c20c3b5b565dc9c0a4ff84229aa..6099ae1c4636a9b71af9006de52972b75dd9291d 100644 (file)
@@ -1255,6 +1255,7 @@ typedef enum {
    USAGE_SHADER_STORAGE_BUFFER = 0x8,
    USAGE_TRANSFORM_FEEDBACK_BUFFER = 0x10,
    USAGE_PIXEL_PACK_BUFFER = 0x20,
+   USAGE_DISABLE_MINMAX_CACHE = 0x40,
 } gl_buffer_usage;
 
 
index 1aabab3434f4841234263cbeb9a03e0a9374bca7..47b0d9cf2a37aef3023994ecc3e117e7472bd48a 100644 (file)
@@ -78,7 +78,8 @@ vbo_use_minmax_cache(struct gl_buffer_object *bufferObj)
                                   USAGE_ATOMIC_COUNTER_BUFFER |
                                   USAGE_SHADER_STORAGE_BUFFER |
                                   USAGE_TRANSFORM_FEEDBACK_BUFFER |
-                                  USAGE_PIXEL_PACK_BUFFER))
+                                  USAGE_PIXEL_PACK_BUFFER |
+                                  USAGE_DISABLE_MINMAX_CACHE))
       return GL_FALSE;
 
    if ((bufferObj->Mappings[MAP_USER].AccessFlags &