[Mesa-dev] [PATCH] glxinfo: Print XFB, TBO, and UBO limits
Brian Paul
brianp at vmware.com
Wed Jun 25 15:58:55 PDT 2014
On 06/23/2014 11:31 AM, Ilia Mirkin wrote:
> On Mon, Jun 23, 2014 at 9:48 AM, Brian Paul <brianp at vmware.com> wrote:
>> From: Fredrik Höglund <fredrik at kde.org>
>>
>> Updated patch for refactored glxinfo/wglinfo code by Brian Paul.
>
> There were more patches that added more things...
> https://urldefense.proofpoint.com/v1/url?u=http://patchwork.freedesktop.org/project/mesa/list/?q%3Dglxinfo&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=lGQMzzTgII0I7jefp2FHq7WtZ%2BTLs8wadB%2BiIj9xpBY%3D%0A&m=qh2FdVIl72gi%2Fhwz75mTjfleJ80diEiyBBNfwzf8x8I%3D%0A&s=9b05ef0f33a63919108fb6039c1901f726be7b8b5e789d8fd556fc53e5b5e1e8
OK, can I at least get an R-b on this one? Maybe you can update the
other patches.
> BTW, is the intention of glxinfo -l to print all limits, or is there
> some filter on what's useful?
I think people have added limits on an as-needed basis in the past.
I've been content with that.
-Brian
>
>>
>> Signed-off-by: Brian Paul <brianp at vmware.com>
>> ---
>> src/xdemos/glinfo_common.c | 22 ++++++++++++++++++++++
>> 1 file changed, 22 insertions(+)
>>
>> diff --git a/src/xdemos/glinfo_common.c b/src/xdemos/glinfo_common.c
>> index e6517d7..4864f58 100644
>> --- a/src/xdemos/glinfo_common.c
>> +++ b/src/xdemos/glinfo_common.c
>> @@ -522,6 +522,28 @@ print_limits(const char *extensions, const char *oglstring, int version,
>> { 1, GL_MAX_COLOR_ATTACHMENTS, "GL_MAX_COLOR_ATTACHMENTS", "GL_ARB_framebuffer_object" },
>> { 1, GL_MAX_SAMPLES, "GL_MAX_SAMPLES", "GL_ARB_framebuffer_object" },
>> #endif
>> +#if defined (GL_EXT_transform_feedback)
>> + { 1, GL_MAX_TRANSFORM_FEEDBACK_BUFFERS, "GL_MAX_TRANSFORM_FEEDBACK_BUFFERS", "GL_EXT_transform_feedback" },
>> + { 1, GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT, "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS", "GL_EXT_transform_feedback" },
>> + { 1, GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS", "GL_EXT_transform_feedback", },
>> + { 1, GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS", "GL_EXT_transform_feedback" },
>> +#endif
>> +#if defined (GL_ARB_texture_buffer_object)
>> + { 1, GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT, "GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT", "GL_ARB_texture_buffer_object" },
>> + { 1, GL_MAX_TEXTURE_BUFFER_SIZE, "GL_MAX_TEXTURE_BUFFER_SIZE", "GL_ARB_texture_buffer_object" },
>> +#endif
>> +#if defined (GL_ARB_uniform_buffer_object)
>> + { 1, GL_MAX_VERTEX_UNIFORM_BLOCKS, "GL_MAX_VERTEX_UNIFORM_BLOCKS", "GL_ARB_uniform_buffer_object" },
>> + { 1, GL_MAX_FRAGMENT_UNIFORM_BLOCKS, "GL_MAX_FRAGMENT_UNIFORM_BLOCKS", "GL_ARB_uniform_buffer_object" },
>> + { 1, GL_MAX_GEOMETRY_UNIFORM_BLOCKS, "GL_MAX_GEOMETRY_UNIFORM_BLOCKS" , "GL_ARB_uniform_buffer_object" },
>> + { 1, GL_MAX_COMBINED_UNIFORM_BLOCKS, "GL_MAX_COMBINED_UNIFORM_BLOCKS", "GL_ARB_uniform_buffer_object" },
>> + { 1, GL_MAX_UNIFORM_BUFFER_BINDINGS, "GL_MAX_UNIFORM_BUFFER_BINDINGS", "GL_ARB_uniform_buffer_object" },
>> + { 1, GL_MAX_UNIFORM_BLOCK_SIZE, "GL_MAX_UNIFORM_BLOCK_SIZE", "GL_ARB_uniform_buffer_object" },
>> + { 1, GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS, "GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS", "GL_ARB_uniform_buffer_object" },
>> + { 1, GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS, "GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS", "GL_ARB_uniform_buffer_object" },
>> + { 1, GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, "GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS", "GL_ARB_uniform_buffer_object" },
>> + { 1, GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, "GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT", "GL_ARB_uniform_buffer_object" },
>> +#endif
>> { 0, (GLenum) 0, NULL, NULL }
>> };
>> GLint i, max[2];
>> --
>> 1.7.10.4
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=lGQMzzTgII0I7jefp2FHq7WtZ%2BTLs8wadB%2BiIj9xpBY%3D%0A&m=qh2FdVIl72gi%2Fhwz75mTjfleJ80diEiyBBNfwzf8x8I%3D%0A&s=4ae3e738f9d92de12165d48f1ffaa29ce850c394c78718fdbdace4e45ce0ea8f
More information about the mesa-dev
mailing list