[Mesa-dev,1/4] glxinfo: Print XFB, TBO, and UBO limits

Submitted by Fredrik Höglund on April 10, 2014, 1:51 a.m.

Details

Message ID 1397094701-2678-1-git-send-email-fredrik@kde.org
State New
Headers show

Not browsing as part of any series.

Commit Message

Fredrik Höglund April 10, 2014, 1:51 a.m.
---
 src/xdemos/glxinfo.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/xdemos/glxinfo.c b/src/xdemos/glxinfo.c
index a116e4a..a77e808 100644
--- a/src/xdemos/glxinfo.c
+++ b/src/xdemos/glxinfo.c
@@ -659,6 +659,28 @@  print_limits(const char *extensions, const char *oglstring)
       { 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];

Comments

On 04/09/2014 07:51 PM, Fredrik Höglund wrote:
> ---
>   src/xdemos/glxinfo.c | 22 ++++++++++++++++++++++
>   1 file changed, 22 insertions(+)
>

For the series:
Reviewed-by: Brian Paul <brianp@vmware.com>
Fredrik,

What happened to this series?

  -ilia

On Thu, Apr 10, 2014 at 10:09 AM, Brian Paul <brianp@vmware.com> wrote:
> On 04/09/2014 07:51 PM, Fredrik Höglund wrote:
>>
>> ---
>>   src/xdemos/glxinfo.c | 22 ++++++++++++++++++++++
>>   1 file changed, 22 insertions(+)
>>
>
> For the series:
> Reviewed-by: Brian Paul <brianp@vmware.com>
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
I happened to add some of this to glxinfo last week.  I'll rebase 
Fredrik's patch on the latest (refactored) glxinfo...

-Brian

On 06/22/2014 09:55 AM, Ilia Mirkin wrote:
> Fredrik,
>
> What happened to this series?
>
>    -ilia
>
> On Thu, Apr 10, 2014 at 10:09 AM, Brian Paul <brianp@vmware.com> wrote:
>> On 04/09/2014 07:51 PM, Fredrik Höglund wrote:
>>>
>>> ---
>>>    src/xdemos/glxinfo.c | 22 ++++++++++++++++++++++
>>>    1 file changed, 22 insertions(+)
>>>
>>
>> For the series:
>> Reviewed-by: Brian Paul <brianp@vmware.com>
>>
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev@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=7AkDBLSZUpKwIhRoyU%2BtcL3X0hHE%2Bt98ljxNbZMJOqo%3D%0A&s=1cd01825e8e2e5027733672375ac05e728d6886a8a184d5854054de2ffc4d802
On Sunday 22 June 2014, Ilia Mirkin wrote:
> Fredrik,
> 
> What happened to this series?

Ian suggested that we add a build-time dependency on current GL headers,
but I haven't gotten around to that yet. 

It's not needed for patches 1-3 though, so those could be pushed.

Fredrik