[Mesa-dev] [PATCH 7/7] vbo: cache/memoize the result of vbo_get_minmax_indices

Ian Romanick idr at freedesktop.org
Fri Jan 8 14:40:55 PST 2016


On 01/07/2016 04:57 PM, Nicolai Hähnle wrote:
> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
> index 4d625da..d4c41a7 100644
> --- a/src/mesa/main/mtypes.h
> +++ b/src/mesa/main/mtypes.h
> @@ -1283,6 +1283,10 @@ struct gl_buffer_object
>     GLuint NumMapBufferWriteCalls;
>  
>     struct gl_buffer_mapping Mappings[MAP_COUNT];
> +
> +   /** Memoization of min/max index computations for static index buffers */
> +   struct hash_table *MinMaxCache;
> +   GLboolean MinMaxCacheDirty;

Please use bool / true / false since this is not visible to applications.

>  };



More information about the mesa-dev mailing list