Bug 103371 - glxinfo -l shows GL_INVALID_ENUM
Summary: glxinfo -l shows GL_INVALID_ENUM
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-20 09:34 UTC by Marc Dietrich
Modified: 2019-09-18 19:24 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Marc Dietrich 2017-10-20 09:34:25 UTC
glxinfo -l gives GL_INVALID_ENUM for GL_MAX_GEOMETRY_UNIFORM_BLOCKS, GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, GL_MAX_VERTEX_OUTPUT_COMPONENTS, and GL_MAX_FRAGMENT_INPUT_COMPONENTS; see output below. HW is RS880. Maybe uncritcal but ugly.

OpenGL limits:
    GL_MAX_ATTRIB_STACK_DEPTH = 16
    GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 16
    GL_MAX_CLIP_PLANES = 8
    GL_MAX_ELEMENTS_VERTICES = 3000
    GL_MAX_ELEMENTS_INDICES = 3000
    GL_MAX_EVAL_ORDER = 30
    GL_MAX_LIGHTS = 8
    GL_MAX_LIST_NESTING = 64
    GL_MAX_MODELVIEW_STACK_DEPTH = 32
    GL_MAX_NAME_STACK_DEPTH = 64
    GL_MAX_PIXEL_MAP_TABLE = 256
    GL_MAX_PROJECTION_STACK_DEPTH = 32
    GL_MAX_TEXTURE_STACK_DEPTH = 10
    GL_MAX_TEXTURE_SIZE = 8192
    GL_MAX_3D_TEXTURE_SIZE = 2048
    GL_MAX_ARRAY_TEXTURE_LAYERS = 2048
    GL_MAX_VIEWPORT_DIMS = 8192, 8192
    GL_ALIASED_LINE_WIDTH_RANGE = 1, 8192
    GL_SMOOTH_LINE_WIDTH_RANGE = 1, 8192
    GL_ALIASED_POINT_SIZE_RANGE = 1, 8192
    GL_SMOOTH_POINT_SIZE_RANGE = 0, 8192
    GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 8192
    GL_MAX_RECTANGLE_TEXTURE_SIZE_NV = 8192
    GL_MAX_TEXTURE_UNITS_ARB = 8
    GL_MAX_TEXTURE_LOD_BIAS_EXT = 16
    GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 16
    GL_MAX_DRAW_BUFFERS_ARB = 8
    GL_MAX_DUAL_SOURCE_DRAW_BUFFERS = 1
    GL_MAX_RENDERBUFFER_SIZE = 8192
    GL_MAX_COLOR_ATTACHMENTS = 8
    GL_MAX_SAMPLES = 8
    GL_MAX_TRANSFORM_FEEDBACK_BUFFERS = 4
    GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 128
    GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 4
    GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 128
    GL_MAX_COLOR_TEXTURE_SAMPLES = 8
    GL_MAX_DEPTH_TEXTURE_SAMPLES = 8
    GL_MAX_INTEGER_SAMPLES = 1
    GL_MAX_VERTEX_UNIFORM_BLOCKS = 12
    GL_MAX_FRAGMENT_UNIFORM_BLOCKS = 12
Mesa: User error: GL_INVALID_ENUM in glGetIntegerv(pname=GL_MAX_GEOMETRY_UNIFORM_BLOCKS)
    GL_MAX_COMBINED_UNIFORM_BLOCKS = 48
    GL_MAX_UNIFORM_BUFFER_BINDINGS = 48
    GL_MAX_UNIFORM_BLOCK_SIZE = 65536
    GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 212992
    GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 212992
Mesa: User error: GL_INVALID_ENUM in glGetIntegerv(pname=GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS)
    GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 256
    GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 2047
    GL_MAX_VERTEX_ATTRIB_BINDINGS = 16
    GL_NUM_COMPRESSED_TEXTURE_FORMATS = 10
        GL_COMPRESSED_RGB_S3TC_DXT1_EXT
        GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
        GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
        GL_COMPRESSED_RGB8_ETC2
        GL_COMPRESSED_RGBA8_ETC2_EAC
        GL_COMPRESSED_R11_EAC
        GL_COMPRESSED_RG11_EAC
        GL_COMPRESSED_SIGNED_R11_EAC
        GL_COMPRESSED_SIGNED_RG11_EAC
        GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
    GL_VERTEX_PROGRAM_ARB:
        GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_ATTRIBS_ARB = 16
        GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 16
        GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 1
        GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 1
        GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 256
    GL_FRAGMENT_PROGRAM_ARB:
        GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 256
        GL_MAX_PROGRAM_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_ATTRIBS_ARB = 32
        GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 32
        GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0
        GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0
        GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 4096
        GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 256
        GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 16384
        GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 16384
    GL_VERTEX_SHADER_ARB:
        GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 16384
        GL_MAX_VARYING_FLOATS_ARB = 128
        GL_MAX_VERTEX_ATTRIBS_ARB = 16
        GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 16
        GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 16
        GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 48
        GL_MAX_TEXTURE_COORDS_ARB = 8
Mesa: User error: GL_INVALID_ENUM in glGetIntegerv(pname=GL_MAX_VERTEX_OUTPUT_COMPONENTS)
    GL_FRAGMENT_SHADER_ARB:
        GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 16384
        GL_MAX_TEXTURE_COORDS_ARB = 8
        GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 16
Mesa: User error: GL_INVALID_ENUM in glGetIntegerv(pname=GL_MAX_FRAGMENT_INPUT_COMPONENTS)
Comment 1 Marc Dietrich 2018-02-22 10:35:48 UTC
additional info: this only happens on meson builds.
Comment 2 Emil Velikov 2018-02-22 10:45:28 UTC
glGetIntegerv throwing an GL_INVALID_ENUM indicates a more serious problem lurking in the shadows.

Did you set the texture-float toggle appropriately? It that doesn't help, please provide a complete configure line (both autotools and meson) so that people can investigate easier.
Comment 3 Marc Dietrich 2018-02-22 10:54:04 UTC
what do you mean by texture-float flag? in the meson configuration? I set "-Dtexture-float=true" at least. driconf isn't working anymore for me. meson config: 

    --buildtype=debug \
    -Db_ndebug=false \
    -Dgallium-drivers=r600,swrast \
    -Dplatforms=drm,x11,wayland \
    -Dvulkan-drivers= \
    -Dtexture-float=true \
    -Dgles1=true -Dgles2=true \
    -Dgallium-nine=true \
    -Dglvnd=true \
    -Ddri-drivers= \
    -Dosmesa=gallium \
    -Dshared-glapi=true \

hw is rs880 (ati hd2000 series).
Comment 4 Marc Dietrich 2018-02-22 12:46:47 UTC
happens only in compat context - digging deeper ...
Comment 5 Marc Dietrich 2018-02-22 13:49:51 UTC
ok, seems to be a false alarm. The (likely) valid error is only produces in debug builds (either meson or autotools). maybe glxinfo should not ask for these limits in compat context.
Comment 6 Marc Dietrich 2018-02-22 14:36:29 UTC
... or mesa should not expose ARB_uniform_buffer_object in compat (GL 3.0) context. I'm not an expert on this...
Comment 7 Marc Dietrich 2018-02-23 09:20:09 UTC
still looks fishy to be - reopened until some expert can comment on this.
Comment 8 GitLab Migration User 2019-09-18 19:24:23 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/614.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.