X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fmtypes.h;h=2802a0e3605bb57da908ab6860ce3d6ae428be2b;hb=d2bfa76045ae32c2191c8d2354413ef226ace4ca;hp=f3a16cc2d95a4675a6559d4151d952d2a33c77ae;hpb=65d3ef7cd4f3debbd51b8a8bc95b88fc32f18ded;p=mesa.git diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index f3a16cc2d95..2802a0e3605 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -4550,7 +4550,7 @@ struct gl_driver_flags uint64_t NewShaderConstants[MESA_SHADER_STAGES]; }; -struct gl_uniform_buffer_binding +struct gl_buffer_binding { struct gl_buffer_object *BufferObject; /** Start of uniform block data in the buffer */ @@ -4564,20 +4564,6 @@ struct gl_uniform_buffer_binding GLboolean AutomaticSize; }; -struct gl_shader_storage_buffer_binding -{ - struct gl_buffer_object *BufferObject; - /** Start of shader storage block data in the buffer */ - GLintptr Offset; - /** Size of data allowed to be referenced from the buffer (in bytes) */ - GLsizeiptr Size; - /** - * glBindBufferBase() indicates that the Size should be ignored and only - * limited by the current size of the BufferObject. - */ - GLboolean AutomaticSize; -}; - /** * ARB_shader_image_load_store image unit. */ @@ -4632,17 +4618,6 @@ struct gl_image_unit }; -/** - * Binding point for an atomic counter buffer object. - */ -struct gl_atomic_buffer_binding -{ - struct gl_buffer_object *BufferObject; - GLintptr Offset; - GLsizeiptr Size; - GLboolean AutomaticSize; -}; - /** * Shader subroutines storage */ @@ -4893,7 +4868,7 @@ struct gl_context * associated with uniform blocks by glUniformBlockBinding()'s state in the * shader program. */ - struct gl_uniform_buffer_binding + struct gl_buffer_binding UniformBufferBindings[MAX_COMBINED_UNIFORM_BUFFERS]; /** @@ -4902,7 +4877,7 @@ struct gl_context * glBindBufferBase(). They are associated with shader storage blocks by * glShaderStorageBlockBinding()'s state in the shader program. */ - struct gl_shader_storage_buffer_binding + struct gl_buffer_binding ShaderStorageBufferBindings[MAX_COMBINED_SHADER_STORAGE_BUFFERS]; /** @@ -4920,7 +4895,7 @@ struct gl_context /** * Array of atomic counter buffer binding points. */ - struct gl_atomic_buffer_binding + struct gl_buffer_binding AtomicBufferBindings[MAX_COMBINED_ATOMIC_BUFFERS]; /**