diff options
author | Marek Olšák <marek.olsak@amd.com> | 2021-10-19 23:30:07 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-10-25 19:53:17 +0000 |
commit | d3a134bbd7edee1bc5d4e7d936c547162753a827 (patch) | |
tree | ffe8c5d2ee3346247692c2a6196d13fa93a926b1 /src/mesa/main | |
parent | 1813bb59174a8f6e60a4f7aff2ac9af81a8810f5 (diff) |
mesa: remove USAGE_ELEMENT_ARRAY_BUFFER because it's unused and adding overhead
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13513>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/arrayobj.c | 2 | ||||
-rw-r--r-- | src/mesa/main/bufferobj.c | 3 | ||||
-rw-r--r-- | src/mesa/main/mtypes.h | 1 |
3 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 1537178a1e4..01a7c9b99fc 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -1260,8 +1260,6 @@ vertex_array_element_buffer(struct gl_context *ctx, GLuint vaobj, GLuint buffer, if (!bufObj) return; - - bufObj->UsageHistory |= USAGE_ELEMENT_ARRAY_BUFFER; } else { bufObj = NULL; } diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 486aac31a8a..7dcf38a3075 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -131,9 +131,6 @@ get_buffer_target(struct gl_context *ctx, GLenum target) ctx->Array.ArrayBufferObj->UsageHistory |= USAGE_ARRAY_BUFFER; return &ctx->Array.ArrayBufferObj; case GL_ELEMENT_ARRAY_BUFFER_ARB: - if (ctx->Array.VAO->IndexBufferObj) - ctx->Array.VAO->IndexBufferObj->UsageHistory - |= USAGE_ELEMENT_ARRAY_BUFFER; return &ctx->Array.VAO->IndexBufferObj; case GL_PIXEL_PACK_BUFFER_EXT: return &ctx->Pack.BufferObj; diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index ca349f4bb47..c54e1664540 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1354,7 +1354,6 @@ typedef enum USAGE_TRANSFORM_FEEDBACK_BUFFER = 0x10, USAGE_PIXEL_PACK_BUFFER = 0x20, USAGE_ARRAY_BUFFER = 0x40, - USAGE_ELEMENT_ARRAY_BUFFER = 0x80, USAGE_DISABLE_MINMAX_CACHE = 0x100, } gl_buffer_usage; |