mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 06:30:40 +02:00
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>
This commit is contained in:
parent
1813bb5917
commit
d3a134bbd7
4 changed files with 0 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -408,8 +408,6 @@ bufferobj_data(struct gl_context *ctx,
|
|||
*/
|
||||
if (st_obj->Base.UsageHistory & USAGE_ARRAY_BUFFER)
|
||||
ctx->NewDriverState |= ST_NEW_VERTEX_ARRAYS;
|
||||
/* if (st_obj->Base.UsageHistory & USAGE_ELEMENT_ARRAY_BUFFER) */
|
||||
/* ctx->NewDriverState |= TODO: Handle indices as gallium state; */
|
||||
if (st_obj->Base.UsageHistory & USAGE_UNIFORM_BUFFER)
|
||||
ctx->NewDriverState |= ST_NEW_UNIFORM_BUFFER;
|
||||
if (st_obj->Base.UsageHistory & USAGE_SHADER_STORAGE_BUFFER)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue